免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4559 | 回复: 6
打印 上一主题 下一主题

关于java代码访问unix权限问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-17 18:57 |只看该作者 |倒序浏览
小弟我在工作中遇到一个问题,大致是这样的情况。我做了一个影像上传系统,在weblogic上发布,这个影像系统是用awt做的,我在本地windows系统下发布,上传照片没有任何问题。但是到我们的服务器上发布(服务器是unix系统)正常,但是传照片的时候就会报错,错误信息是:

org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.
org.codehaus.xfire.fault.XFireFault: Couldn't send message.
        at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
        at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)
        at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
        at org.codehaus.xfire.client.Client.invoke(Client.java:336)
        at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
        at $Proxy13.countFileSizeByBussNo(Unknown Source)
        at cn.com.sinosoft.fileuploader.RemoteImageList.uploadFiles(RemoteImageList.java:509)
        at cn.com.sinosoft.fileuploader.RemotePanel$2.drop(RemotePanel.java:121)
        at java.awt.dnd.DropTarget.drop(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
        at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.codehaus.xfire.XFireException: Couldn't send message.
        at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)
        at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:4
        at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        ... 30 more
Caused by: java.net.SocketException: Unknown proxy type : HTTP
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369)
        at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
        ... 32 more



我也上网查了一下,好像是unix权限的问题,但是我一直没找到如何去解决这个问题,我们是用xml做的接口。所以我想问问,unix有什么关于权限的限制吗?或者是什么其他原因导致的。很急~~~

论坛徽章:
0
2 [报告]
发表于 2009-03-17 19:45 |只看该作者

自己顶

up  高手们帮帮忙

论坛徽章:
0
3 [报告]
发表于 2009-03-17 21:03 |只看该作者

再顶

是我没说明白,还是这个问题太弱智???大家给个回话啊!

论坛徽章:
0
4 [报告]
发表于 2009-03-18 00:40 |只看该作者
what is the window configuration, such as OS, xfire, weblogic? then what is the unix configuration? Therefore we can locate the root casuse. Currently your description is too simple.

论坛徽章:
0
5 [报告]
发表于 2009-03-18 17:19 |只看该作者
应该是 文件路径什么的错误吧,

你也可以用root权限试一试

论坛徽章:
0
6 [报告]
发表于 2009-03-19 19:36 |只看该作者
我想应该我们配置的weblogic的用户去登陆unix吧,那如何将我们这个weblogic连接unix的用户更改我所要的权限呢?

论坛徽章:
0
7 [报告]
发表于 2009-03-24 16:25 |只看该作者
你的unix中有weblogic这个用户吗?   我觉得问题可能在于启动weblogic的那个系统用户没有对目标目录有写操作的权限造成的!    你可以换成root启动weblogic,然后试下看看! 如果可以,再对你的用户赋权!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP