调用invokeMethod时出错
可能是什么问题?
invokeMethod(op,
"write",
inArgs, //input argument array -> Passing a string
null);
这个异常的原因可能是什么?
java.io.IOException XMLERROR: java.io.IOException at javax.wbem.client.adapter.http.CIMClientXML.call(CIMClientXML.java:391) at javax.wbem.client.adapter.http.CIMClientXML.getResponse(CIMClientXML.java:510) at javax.wbem.client.adapter.http.CIMClientXML.getFirstResponse(CIMClientXML.java:548) at javax.wbem.client.adapter.http.CIMClientXML.invokeMethod(CIMClientXML.java:991) at javax.wbem.client.CIMClient.invokeMethod(CIMClient.java:1715) at com.novell.nps.gadgets.SMS.SMSPluginClient.write(SMSPluginClient.java:454) at com.novell.nps.gadgets.SMS.VirtualFile.write(VirtualFile.java:529) at com.novell.nps.gadgets.SMS.SMDRConfigGadget.getSMDRMainFormSubmitData(SMDRConfigGadget.java:1200) at com.novell.nps.gadgets.SMS.SMDRConfigGadget.execute(SMDRConfigGadget.java:233) at com.novell.emframe.dev.Task.execute(Task.java:505) at com.novell.nps.gadgetManager.BaseGadgetInstance.processRequest(BaseGadgetInstance.java:858) at com.novell.nps.gadgetManager.BaseGadgetInstance.handleAction(BaseGadgetInstance.java:2384) at com.novell.nps.gadgetManager.GadgetManager.processInstanceRequest(GadgetManager.java:1606) at com.novell.nps.gadgetManager.GadgetManager.processServiceRequest(GadgetManager.java:1062) at com.novell.nps.PortalServlet.handleFrameService(PortalServlet.java:505) at com.novell.nps.PortalServlet.processRequest(PortalServlet.java:373) at com.novell.nps.PortalServlet.doPost(PortalServlet.java:279) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at com.novell.emframe.fw.servlet.AuthenticatorServlet.service(AuthenticatorServlet.java:332) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.novell.emframe.fw.filter.CrossScriptingFilter.doFilter(CrossScriptingFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:530) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:736)
What could be the problem?
invokeMethod(op,
"write",
inArgs, //input argument array -> Passing a string
null);
And waht could be the reason for this exception?
java.io.IOException XMLERROR: java.io.IOException at javax.wbem.client.adapter.http.CIMClientXML.call(CIMClientXML.java:391) at javax.wbem.client.adapter.http.CIMClientXML.getResponse(CIMClientXML.java:510) at javax.wbem.client.adapter.http.CIMClientXML.getFirstResponse(CIMClientXML.java:548) at javax.wbem.client.adapter.http.CIMClientXML.invokeMethod(CIMClientXML.java:991) at javax.wbem.client.CIMClient.invokeMethod(CIMClient.java:1715) at com.novell.nps.gadgets.SMS.SMSPluginClient.write(SMSPluginClient.java:454) at com.novell.nps.gadgets.SMS.VirtualFile.write(VirtualFile.java:529) at com.novell.nps.gadgets.SMS.SMDRConfigGadget.getSMDRMainFormSubmitData(SMDRConfigGadget.java:1200) at com.novell.nps.gadgets.SMS.SMDRConfigGadget.execute(SMDRConfigGadget.java:233) at com.novell.emframe.dev.Task.execute(Task.java:505) at com.novell.nps.gadgetManager.BaseGadgetInstance.processRequest(BaseGadgetInstance.java:858) at com.novell.nps.gadgetManager.BaseGadgetInstance.handleAction(BaseGadgetInstance.java:2384) at com.novell.nps.gadgetManager.GadgetManager.processInstanceRequest(GadgetManager.java:1606) at com.novell.nps.gadgetManager.GadgetManager.processServiceRequest(GadgetManager.java:1062) at com.novell.nps.PortalServlet.handleFrameService(PortalServlet.java:505) at com.novell.nps.PortalServlet.processRequest(PortalServlet.java:373) at com.novell.nps.PortalServlet.doPost(PortalServlet.java:279) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at com.novell.emframe.fw.servlet.AuthenticatorServlet.service(AuthenticatorServlet.java:332) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.novell.emframe.fw.filter.CrossScriptingFilter.doFilter(CrossScriptingFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:530) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:736)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你谈论 Java Reflection 时,这是无关紧要的。您无法将 4000 字节的参数传递给方法。您可以传递的最大值为 8 个字节。因为这是 Java 中最大数据类型的大小:
long
、double
。即使数组也是 4 个字节,因为它是一个对象,由内存指针表示。所以,我认为你必须在其他地方寻找你的问题......
When you are talking about Java Reflection, this is irrelevant. You can't pass an argument of 4000 bytes to a method. The maximum you can pass is 8 bytes. Because of this is the size of the biggest datatypes in Java:
long
,double
. Even an array is 4 bytes, because of it is an Object, which is represented by a memory pointer.So, I think you have to search your problem somewhere else...