Flex 4.5 - java.lang.IllegalArgumentException: argument type mismatch

0 down vote favorite
I am having a problem when sending a soap request from a flex  4.5 application to a coldfusion 9 web service created using a CFC.
The  most annoying thing it is only an intermittent problem but I can't work  out what is wrong.
There a many methods within the web service of which Flex has no  issue, but these are mainly ones that read data.  The one I am having a  problem with is one that is writing back to the web service.
The issue only arises when I have to restart the Coldfusion service  for some reason, which is quite often as the development machine is my  laptop.  It has now also happened when I have moved the Flex app to a  development server for testing and as it's hosted I can't restart the  services easily.
I get the response below every time.  I have tried tracing the call  through the Flash Builder Network monitor and building a dummy call  using the same data, all to no avail.
I have tried stripping out all of the code and then rebuilding it,  which takes a long time as I am using custom types in ColdFusion.
Also , if I cfinvoke the method through a CFM page, it works fine. It  is only when trying to call it through a SOAP request through Flex 4.5.
It will then suddenly start working again however and then it is fine  until I restart the CF services again.
I can't tell what I triggers it  to start working again.
Does something initialise it in ColdFusion and then it's fine ???.  I am  really struggling with this and any help would be appreciated.
I have a  sample SOAP request that I trapped in the Network Monitor and also the  WSDL if needed.
java.lang.IllegalArgumentException: argument type mismatch
    <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.utils.BeanPropertyDescriptor.set(BeanPropertyDescriptor.java:142)
at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:75)
at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at coldfusion.xml.rpc.CFCProvider.invoke(CFCProvider.java:54)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at coldfusion.xml.rpc.CFCServlet.doAxisPost(CFCServlet.java:270)
at coldfusion.filter.AxisFilter.invoke(AxisFilter.java:43)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:356)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:138)
at coldfusion.xml.rpc.CFCServlet.doPost(CFCServlet.java:289)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)</ns1:stackTrace>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/" xmlns:soapenv
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org2001/XMLSchema-instance">Darren-LT</ns2:hostname>

Someone suggested it could be a serialisation issue but I I'm not sure how to go about checking that.
Any suggestions ?

Similar Messages

  • RisPort problems - argument type mismatch

    Hi!
    I'm trying to get a list of devices via RisPort. I copied example from http://www.cisco.com/univercd/cc/td/doc/product/voice/vpdd/cdd/5_0/ccmdev/ccmdvch2.htm chapter Real-Time Information (RisPort)
    Selecting Cisco Unified CallManager Real-Time Information , but service returning following xml:
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.IllegalArgumentException: argument type mismatch</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">CUCM6</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
    And my question is: How can I recognize, which argument? There are no any notes or details :-(
    Many thanks for your ideas!!
    ps. or is it posible to get that list any other way? (CUM6)

    check your gmail~i sent my code to your email!
    here is the xml String:
    String strSoapMsg="<?xml version=\"1.0\" encoding=\"utf-8\"?>"+
    "http://schemas.xmlsoap.org/soap/envelope/\" "+
    "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "+
    "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"+
    ""+
    "http://schemas.xmlsoap.org/soap/encoding/\">"+
    ""+
    ""+
    ""+
    "http://schemas.xmlsoap.org/soap/encoding/\" "+
    "xsi:type=\"ns1:CmSelectionCriteria\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" "+
    "xmlns:ns1=\"tns:CmSelectionCriteria\">"+
    "2000"+
    ""+
    "Name"+
    ""+
    ""+
    ""+
    ""+

  • Erro java.lang.IllegalArgumentException: can't parse argument number

    We are trying to making an HTTPS post using the SOAP adapter (sending XML message) and have been receiving an error in the MDT. If we open the message details and click the audit log instead of seeing the steps in the audit log we have an error that says "java.lang.IllegalArgumentException: can't parse argument number".
    The full stack trace: java.lang.IllegalArgumentException: can't parse argument number
         at java.text.MessageFormat.makeFormat(MessageFormat.java:1323)
         at java.text.MessageFormat.applyPattern(MessageFormat.java:447)
         at java.text.MessageFormat.(MessageFormat.java:347)
         at java.text.MessageFormat.format(MessageFormat.java:800)
         at jsp_auditlog1236632324953._jspService(jsp_auditlog1236632324953.java:274)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
         at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
         at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Any help would be appreciated.
    Joe

    hi,
    seems you are tryin to conver to integer an string.
    if the data type is OK and the WS is sender, regenerate it and try again
    Thanks
    Rodrigo

  • Getting Error: java.lang.IllegalArgumentException: can't parse argument 0

    HI All,
    I am implementing the Message Pool in NWDS.
    I have two InputFields: Firstname and Lastname.
    and i have a method name: CheckMandatory which takes one argument as String.
    I have implemented this Method in the StartView. Now when i am leaving this fields empty and pressing the Go Button.
    Then i am getting the Following Error:
       java.lang.IllegalArgumentException: can't parse argument number 0
    So pls help me out......
    Regards,
    Dhruv Shah

    Hi,
    THis is the Stack Trace:
    java.lang.IllegalArgumentException: can't parse argument number  0
         at java.text.MessageFormat.makeFormat(MessageFormat.java:1323)
         at java.text.MessageFormat.applyPattern(MessageFormat.java:447)
         at java.text.MessageFormat.<init>(MessageFormat.java:347)
         at java.text.MessageFormat.format(MessageFormat.java:800)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeFormatter.format(DataTypeFormatter.java:80)
         at com.sap.tc.webdynpro.progmodel.controller.MessageItem.getMessage(MessageItem.java:211)
         at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.InputFieldAdapter$DataTip.setMessage(InputFieldAdapter.java:1156)
         at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.InputFieldAdapter.getAssociatedAdapters(InputFieldAdapter.java:1323)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:299)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.MatrixLayoutRenderer.renderMatrixLayoutCellFragment(MatrixLayoutRenderer.java:729)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.MatrixLayoutRenderer.renderMatrixLayoutRowFragment(MatrixLayoutRenderer.java:346)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.MatrixLayoutRenderer.renderMatrixLayoutFragment(MatrixLayoutRenderer.java:302)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.MatrixLayoutRenderer.render(MatrixLayoutRenderer.java:71)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:516)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:61)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:45)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:555)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:346)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:255)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:157)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:425)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    Regards,
    Dhruv Shah

  • Java.lang.IllegalArgumentException: Cannot invoke beans

    in 1 jsp page
    <logic:iterate id="msgg" name="messages">
    <tr>
    <td>${msgg.messageNumber}</td>
    <td>${msgg.from[0]}</td>
    ** <td><html:link action="msgbody?message=${msgg.message}">${msgg.subject}</html:link> </td>
    <td>${msgg.sentDate}</td>
    </tr>
    </logic:iterate>
    ${msgg.message} which will return javax.mail.Message object
    By clicking in the link(above shown as **) it will go to msgbody action and should set
    message property of bean with javax.mail.Message object
    for msg body action my bean is
    package beans;
    import javax.mail.Message;
    import org.apache.struts.action.ActionForm;
    public class MsgBn extends ActionForm {
    private Message message;
    public Message getMessage() {
    return message;
    public void setMessage(Message message) {
    this.message = message;
    i am getting following exception plz suggest me solutions
    java.lang.IllegalArgumentException: Cannot invoke beans.MsgBn.setMessage - argument type mismatch
    org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1778)
    org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
    org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
    org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
    org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
    org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
    org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
    org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)

    Of course it's a String. It's being passed as a request parameter. Request parameters are always Strings.
    It looks like something needs to be held in the session maybe?

  • Error in web service execution java.lang.IllegalArgumentException

    Hi All,
    I am getting the following error at the runtime when calling the web service.
    java.lang.IllegalArgumentException: can't parse argument number http://sapdctm.dfs.poc.lexmark.com
    Please help.
    Thanks in advance.
    Raktim
    part of wsdl file:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <!--  Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-b02-.
      -->
    - <!--  Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-b02-.
      -->
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.sapdctm.dfs.poc.lexmark.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DctmUploadService" targetNamespace="http://ws.sapdctm.dfs.poc.lexmark.com/">
    - <types>
    - <xsd:schema>
      <xsd:import namespace="http://ws.sapdctm.dfs.poc.lexmark.com/" schemaLocation="http://dlxkrecm01.lex.lexmark.com:9080/services/sapdctm/DctmUploadService?xsd=1" />
      </xsd:schema>
    - <xsd:schema>
      <xsd:import namespace="http://sapdctm.dfs.poc.lexmark.com" schemaLocation="http://dlxkrecm01.lex.lexmark.com:9080/services/sapdctm/DctmUploadService?xsd=2" />
      </xsd:schema>
    - <xsd:schema>
      <xsd:import namespace="http://rt.fs.documentum.emc.com/" schemaLocation="http://dlxkrecm01.lex.lexmark.com:9080/services/sapdctm/DctmUploadService?xsd=3" />
      </xsd:schema>
      </types>
    - <message name="uploadContent">
      <part element="tns:uploadContent" name="parameters" />
      </message>
    Edited by: Raktim Banerjee on Dec 24, 2009 11:47 AM

    hi Raktim
    i am also stuck up with same error.
    although such an argument is declared in web service,  when i execute the web service it throws exception saying java.lang.IllegalArgumentException.
    did you get any solution for this, coz i tried restarting the java server but it didnt help.
    please help.
    Regards,
    Deepak Salokhe

  • Java.lang.IllegalArgumentException when trying to create debug setting

    Hello all,
    I have just performed an install of EHP1 on a W2K3 EE machine, and I'm trying to setup to debug my Web Dynpro app on the Java server.  I have defined the system instance correctly SAP AS Java in the Window --> Preferences --> SAP AS Java section. My Web Dynpro app deploys and runs without problems.
    However, when I use Run -> Open Debug Dialog and then click on "Run on Server" and use the "New launch configuration" option, I get a message box stating "java.lang.IllegalArgumentException (check log file)".
    So I switch to Plug-in Development perspective and take a look at the log file. The exception appears in the list of messages; double-clicking the exception provides this data:
    Severity: Error
    Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    Exception Stack Trace:
    java.lang.IllegalArgumentException
         at org.eclipse.wst.server.core.internal.ResourceManager.getServer(ResourceManager.java:758)
         at org.eclipse.wst.server.core.ServerCore.findServer(ServerCore.java:286)
         at org.eclipse.wst.server.ui.internal.RunOnServerLaunchConfigurationTab.initializeFrom(RunOnServerLaunchConfigurationTab.java:105)
         at org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom(AbstractLaunchConfigurationTabGroup.java:86)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:143)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:784)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:658)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:676)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:637)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:613)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:975)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$4.selectionChanged(LaunchConfigurationsDialog.java:570)
         at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
         at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
         at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
         at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
         at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
         at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1133)
         at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:387)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:391)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:333)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:82)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:90)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
         at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
         at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Session Data:
    eclipse.buildId=M20080221-1800
    I've done some hunting around the internet for this error and I did find a problem that looks quite similar under a JBOSS forum: https://jira.jboss.org/jira/browse/JBIDE-3689 ("Creating new run configuration of type Run in Server fails with exception, jbds eclipse.buildId=1.1.0.GA"). The information presented there is almost exactly what I'm seeing:
    <cut>
    Steps to Recreate:
    1. From Run menu, select "Open Run Dialog..." or "Open Debug Dialog..."
    2. Right click on "Run on Server"
    3. Select "New"
    What you see is an "Error" dialog of Reason "java.lang.IllegalArgumentException".
    The error log records the following:
    Error
    Thu Jan 29 08:13:48 PST 2009
    Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    </cut>
    In the JBOSS case, the response is:
    <cut>
    It is is a known bug in WTP 2.x and in WTP 3.x this option does not exist anymore thus you should just use Run As -> Run in Server.
    Marked as out of date since latest version of WTP 3 has the fix.
    </cut>
    I have the EHP1 installed on a couple other servers where this is not happening. Anyone run into this before?
    Alternatively, anyone know how I can check the WTP of the SAP-specific eclipse released as the EHP1 developer studio?
    Thanks very much,
    Andy

    Hi Andy,
    I think there is a very siple proces which you need to follow for debug. Please have a look:-
    Please check you mentioned the correct server and instance name. As you are saying that all you applications are running fine therefore I think you would have mentioned all the required parameters correctly.
    After checking all these things, follow the steps below:-
    1) From the menu in NWDS -> Click on the Debug symbol. Select "Open Debug Dialoug".
    2) Right click on the "Remote Java Application" and select New.
    3) Clickon the Source tab. Check whether you application is included under the Defualt folder. Only those projects will be debugged which are under this folder.
    4) If you application is not there. Click on Add-> Java Project -> Select your Project - > OK. Doing this will add your project in debug instance.
    5) Go to Connect tab. Mention the Host name (Same as server name you have mentioned under Window --> Preferences --> SAP AS Java ) AND the Message server port. Please note that this server port is diffrent from the http port.
    6) Just click on Debug.
    I hope after all these steps debug should work. If not please revert back.
    Thanks and Regards,
    Pravesh

  • Invoking web service from EJB3 throw java.lang.IllegalArgumentException

    I used JAX-WS to develop a web service and deployed it on webloigc 10.3.5. The web service was invoked from web application and it worked fine. However, when I tried to invoke the web service from a stateless session bean, java.lang.IllegalArgumentException was thrown out and complained that "*interface gov.fema.web.nimcast.service.client.UpdateEmailPortType is not visible from class loader*". I tried following three ways to solve the problem
    1. put the web service client artifacts under APP-INF/classes of the EAR
    2. bundle the web service client artifacts into a jar file and put it under APP-INF/lib of the EAR
    3. put the web service client artifacts into the same jar file of the EJB
    However, none of the above approaches worked out, every time same exception thrown out.
    I used following commands in my ant script to generate the web service client artifacts
    <path id="deploypathref">
    <fileset dir="${wl.server}">
    <include name="server/lib/weblogic.jar"/>
    <include name="server/lib/weblogic_sp.jar"/>
    <include name="server/lib/xqrl.jar"/>
    <include name="server/lib/webservices.jar"/>
    <include name="../modules/features/weblogic.server.modules_10.3.3.0.jar"/>
    </fileset>
    </path>
    <taskdef name="clientgen"
    classname="weblogic.wsee.tools.anttasks.ClientGenTask" >
         <classpath refid="deploypathref"/>
    </taskdef>
    <clientgen
                   wsdl="http://${wls.hostname}:${wls.port}/nimscast/UpdateEmailService?WSDL"
                   destDir="${path.service}/src"
                   packageName="gov.fema.web.nimcast.service.client"
                   type="JAXWS"/>
                   <javac
                   srcdir="${path.service}/src" destdir="${path.assembly}/ear/APP-INF/classes"
                   includes="**/*.java"/>
    and following is the detail information from the stack trace:
    Caused By: java.lang.IllegalArgumentException: interface gov.fema.web.nimcast.service.client.UpdateEmailPortType is not visible from class loader
         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
         at weblogic.wsee.jaxws.spi.ClientInstance.createProxyInstance(ClientInstance.java:143)
         at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:855)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
         at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
         at javax.xml.ws.Service.getPort(Service.java:92)
         at gov.fema.web.nimcast.service.client.UpdateEmailService.getUpdateEmailPortTypePort(Unknown Source)
         at gov.fema.prepcast.beans.UserManagement.updateUserEmailInNimscast(UserManagement.java:622)
         at gov.fema.prepcast.beans.UserManagement.changeUserProfileInfo(UserManagement.java:324)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy144.changeUserProfileInfo(Unknown Source)
         at gov.fema.prepcast.beans.UserManagement_dinn8k_UserManagementLocalImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
         at gov.fema.prepcast.beans.UserManagement_dinn8k_UserManagementLocalImpl.changeUserProfileInfo(Unknown Source)
         at gov.fema.prepcast.actions.secret.UpdateUserAction.saveProfileInfo(UpdateUserAction.java:287)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
         at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
         at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
         at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
         at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
         at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Edited by: 938276 on Jul 25, 2012 7:55 AM

    No you haven't, because
    Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType a relevant class can still not be found and Java really is not going to lie to you; this class is not on your application's classpath so it is either missing or put in the wrong place. Note that missing classes can be caused by you forgetting to properly redeploying your application - its usually something silly like that. Figure out what you did wrong and correct your mistake.
    The fact that you have to mention that you "setup the classpath" is questionable; in web applications you don't touch the classpath at all. So what exactly did you do?

  • Mail Receiver Error:  java.lang.IllegalArgumentException: can't parse argum

    Hi everybody,
    I get the error in mail receiver CC:
    java.lang.IllegalArgumentException: can't parse argument number
    My Payload looks like this:
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>The subject</Subject>
      <From>mailadress</From>
      <To>mailadress</To>
      <Content_Type>multipart/mixed; boundary="AaBb--984dfgeSSd3532"</Content_Type>
    - <Content_Description>
      <attachment filename="Filename.txt">content_of_attachment</attachment>
      </Content_Description>
      <Content_Disposition>attachment</Content_Disposition>
      <Content>Constant</Content>
      </ns1:Mail>
    Any ideas?
    Regards
    Mario

    Hi Mario..
    Go thru this thread for it.
    Error Catagory : XI_J2EE_ADAPTER_MAIL
    Regards

  • Error processing XML request, java.lang.IllegalArgumentException

    Hi all,
    In my code I can successfully connect to server and send the content which is an XML content:
    param = java.net.URLEncoder.encode(s, "UTF-8");
    java.io.PrintWriter out = new java.io.PrintWriter(connection.getOutputStream());
    out.print(param);
    Read the response from server:
    java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(connection.getInputStream()));
    while((input = in.readLine()) != null)
    response += input + "\r";
    System.out.println("Client : received : "+response);
    Following is the response I receive from server:
    Client : received : <html><h1>Error processing XML request</h1>java.lang.IllegalArgumentException: No xml request posted</html>
    Has anybody know what the problem is? Why this error is issued?
    Any help is greatly appreciated.

    Dear legosa,
    Thanks so much for the replies. What you wrote makes absolute sence, w/o flush() or close(), it seems that I'm sending only balnk to output!
    I don't know how can I fix the 500 Internal Server Error; below is my complete code that does this part, can you tell me if you see sth. wrong in this code?
    param = java.net.URLEncoder.encode(aTrans.xmlDoc, "UTF-8");
    url = new URL("https://xml.test.surepay.com");
    connection = (HttpURLConnection)url.openConnection();                    
    connection.setDoInput(true);
    connection.setDoOutput(true);
    connection.setUseCaches(false);
    connection.setRequestMethod("POST");
    connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
    String sLen = "" + param.length();
    connection.setRequestProperty("Content-length", sLen);
    connection.setRequestProperty("Accept", "text/plain");
    connection.connect();
    System.out.println("Client : Connected");
    java.io.PrintWriter out = new java.io.PrintWriter(connection.getOutputStream());
    System.out.println("Client : Writing Content");
    out.print(param);
    out.close();
    System.out.println(connection.getURL());          
    System.out.println(connection.getResponseCode() + " " + connection.getResponseMessage());
    System.out.println(connection.getURL());
    System.out.println("Client : Waiting for response from Server");
    java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(connection.getInputStream()));
    System.out.println("Client : Opened input stream");
    while((input = in.readLine()) != null)
    response += input + "\r";
    System.out.println("Client : received : "+response);

  • XML Validation - java.lang.IllegalArgumentException:

    Hello Friends,
    I am trying to validate the XML file generated using Java -JAXP 2.0/3.0 ,but whenever i tried to run this program i get the following error .
    I tried running this code in jdk 1.4 and jdk 1.5 versions ..but the same error persists .
    java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
         at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:118)
         at com.globeop.test.ValidateXML.main(ValidateXML.java:43)
    java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaSource
         at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:118)
         at com.globeop.test.ValidateXML.main(ValidateXML.java:48)
    I am sending you the sample code ..
    mport java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.DOMException;
    import org.w3c.dom.Document;
    * @author pgawai
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class ValidateXML {
         static final String JAXP_SCHEMA_LANGUAGE ="http://java.sun.com/xml/jaxp/properties/schemaLanguage";
         static final String W3C_XML_SCHEMA ="http://www.w3.org/2001/XMLSchema";
         static final String JAXP_SCHEMA_SOURCE ="http://java.sun.com/xml/jaxp/properties/schemaSource";
         static final String schemaSource = "D:/Dev/GoML/goml-2-02.xsd";
         public static void main(String rgs[]){
              try {
                   DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                   dbf.setNamespaceAware(true);
                   dbf.setValidating(true);
                   try{
                   dbf.setAttribute(JAXP_SCHEMA_LANGUAGE,W3C_XML_SCHEMA);
                   }catch(IllegalArgumentException x){
                        x.printStackTrace();
                   dbf.setAttribute(JAXP_SCHEMA_SOURCE, new File(schemaSource));
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   db.setErrorHandler( new SimpleErrorHandler() );
                   Document doc = db.parse(new File("D:/deals-messages/new-message/bondsnew.xml"));
              } catch(DOMException de) {
                   de.printStackTrace();
              catch(Exception e){
                   e.printStackTrace();
    I would appreciate ,if u could suggest me somethin on this bug or any alternate solution to validate the XML.
    Regards
    Clayzer

    Hello Friends,
    I am trying to validate the XML file generated using Java -JAXP 2.0/3.0 ,but whenever i tried to run this program i get the following error .
    I tried running this code in jdk 1.4 and jdk 1.5 versions ..but the same error persists .
    java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
         at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:118)
         at com.globeop.test.ValidateXML.main(ValidateXML.java:43)
    java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaSource
         at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:118)
         at com.globeop.test.ValidateXML.main(ValidateXML.java:48)
    I am sending you the sample code ..
    mport java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.DOMException;
    import org.w3c.dom.Document;
    * @author pgawai
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class ValidateXML {
         static final String JAXP_SCHEMA_LANGUAGE ="http://java.sun.com/xml/jaxp/properties/schemaLanguage";
         static final String W3C_XML_SCHEMA ="http://www.w3.org/2001/XMLSchema";
         static final String JAXP_SCHEMA_SOURCE ="http://java.sun.com/xml/jaxp/properties/schemaSource";
         static final String schemaSource = "D:/Dev/GoML/goml-2-02.xsd";
         public static void main(String rgs[]){
              try {
                   DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                   dbf.setNamespaceAware(true);
                   dbf.setValidating(true);
                   try{
                   dbf.setAttribute(JAXP_SCHEMA_LANGUAGE,W3C_XML_SCHEMA);
                   }catch(IllegalArgumentException x){
                        x.printStackTrace();
                   dbf.setAttribute(JAXP_SCHEMA_SOURCE, new File(schemaSource));
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   db.setErrorHandler( new SimpleErrorHandler() );
                   Document doc = db.parse(new File("D:/deals-messages/new-message/bondsnew.xml"));
              } catch(DOMException de) {
                   de.printStackTrace();
              catch(Exception e){
                   e.printStackTrace();
    I would appreciate ,if u could suggest me somethin on this bug or any alternate solution to validate the XML.
    Regards
    Clayzer

  • JDBC stored procedure / java.lang.IllegalArgumentException

    Hi,
    I have created a JDBC adapter to access for a Oracle DB and the connection works successfully. I have tested the posting into the DB via xml-format and it works also fine.
    Accordingly i added a stored procedure (SP) into the xml-format and i get following error in the communication channel (in Pi monitoring the message is fine - no error):
    com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request
    in sax parser: Error when executing statement for table/stored proc.
    'em_end_load' (structure 'STATEMENT_StoreProcedure'):
    java.lang.IllegalArgumentException
    SP in DB:
    PROCEDURE em_end_load
        p_1                      IN  VARCHAR2,
        p_2                      IN  VARCHAR2    DEFAULT NULL,
        p_3                      IN  NUMBER,
        p_4                      IN  VARCHAR2    DEFAULT NULL,
        p_time                      IN  DATE        DEFAULT NULL
    AS
    I'm not sure if i have to use an output parameter, because in the description of the SP i read following:
    USAGE
         To compile from the SQL*Plus prompt:
         SQL> start [folder spec]/sp_em_end_load.pls
         To run from the SQL*Plus prompt:
         SQL> exec em_em_end_load
    PARAMETERS
         INPUT
            p_1
            p_2
            p_3
            p_4
          p_5
          p_6
         OUTPUT
            p_error_msg
    I have created in PI the data type for SP as follow:
                             value
    MT_JDBC
      STATEMENT_SP          0..1
         action          required     EXECUTE
         table          0..1          em_end_load
         p_1          1..1          010
           type          optional     VARCHAR
         p2               1..1          main
           type          optional     VARCHAR
         p3               1..1          100
           type          optional     VARCHAR
         p4               1..1          load
           type          optional     VARCHAR
         p5               1..1          26.04.2010
           type          optional     DATE
         p_error_msg     0..1          
           isInput          optional     1
           type          otpional     VARCHAR
    What is wrong with the processing of this SP? Could anyone help me?
    Regards,
    Lutz

    Sorry the explanation of the data type was a little bit misunderstanding:
    data type in PI:
    MT_JDBC
    -STATEMENT_SP           0..1
    --action                required        EXECUTE
    --table                 0..1            em_end_load
    --p_1                   1..1            010
    ---type                 optional        VARCHAR
    --p_2                   1..1            main
    ---type                 optional        VARCHAR
    --p_3                   1..1            100
    ---type                 optional        VARCHAR
    --p_4                   1..1            load
    ---type                 optional        VARCHAR
    --p_time                1..1            26.04.2010
    ---type                 optional        DATE
    --p_error_msg           0..1
    ---isInput              optional        1
    ---type                 optional        VARCHAR
    ...but the names of the parameters are identical - that i have checked several times.

  • Java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping

    Hi,
    I have an FOP application which presents the data retrieved from database in a PDF format.
    Now when Iam trying to deploy the FOP application to OC4J and I get the following error.
    java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping is not an ElementMapping
         at org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
         at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
         at org.apache.fop.apps.Driver.<init>(Driver.java:222)
         at org.appfuse.fop.FOPHelper.createPDF(FOPHelper.java:48)
         at FOPServlet.execute(FOPServlet.java:168)
         at FOPServlet.doPost(FOPServlet.java:109)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    I believe its the problem with the class loaders.
    I even configured my orion-web.xml to load the local classes and following is the conf file:
    <orion-web-app
         deployment-version="9.0.4.0.0"
         temporary-directory="./temp"
         internationalize-resources="false"
         default-mime-type="application/octet-stream"
         servlet-webdir="/servlet/"
    >
         <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="false" />
    </orion-web-app>
    I have loaded the most stable jar files(fop-0.20.5) required for the generation of PDF.
    The same application runs well in JDeveloper(10.1.2.0.0)
    Could somebody help me out with this.
    Its very urgent.
    Need to be able to deploy this by evening.
    Thanks
    Sridhar
    Message was edited by:
    Sridhar

    This means the code loading the element mappings does not recognize
    the SVGElementMapping as an ElementMapping, as it expects. The most
    likely reason is that they are loaded from different class loaders -That was the reason of my simple suggestion above.
    There are many ways that you can try now.
    One way is to put all libraries in your war into ORACLE_HOME/j2ee/home/applib. Also remove the following line
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="false" />
    since this search-local-classes-first is problematic sometimes.
    It might be nice if you can verify that the classloader that loads SVGElementMapping is different from the one that loads Elementmapping at that point of code.
    Now Could somebody help me out as this is the problem of OC4J .Hmm, I would not say "problem of OC4J". A usage error or a false incompatibility at worst. "False" because there should be many normal and standard ways to make it work.

  • EJB3.0:JPA :java.lang.IllegalArgumentException

    Im pretty new to this, so Im trying to post everything you need to understand my problem,try to be more clear, i'm in lack of ideas in this problem, even it sounds like a classic
    /*Bean class*/
    public class BookCatalogBean implements Serializable, BookCatalogInterface {
    @PersistenceContext(unitName="EntityBean")
    // @PersistenceContext
    EntityManager em;
    protected BookBank book;
    protected Collection <BookBank> pmnList;
    public void addBook(String title, String author, double price) {
    // Initialize the form
    if (book == null)
    book = new BookBank(title, author, price);
    em.persist(book);
    public Collection <BookBank>getAllBooks() {
    System.out.println("BookCatalogInterface.java:getAllBooks");
    pmnList=em.createQuery("from BookBank book ").getResultList();
    System.out.println("BookCatalogInterface.java:getAllBooks...111:"+pmnList);
    return pmnList;
    /*and this is another class BookBank.java */
    package entity.library;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Table;
    import java.util.Collection;
    import javax.persistence.*;
    import java.io.Serializable;
    @Entity
    @Table(name="BookBank")
    public class BookBank implements Serializable {
    long id;
    /*variable declaration*/
    public BookBank() {
    super();
    public BookBank(String title, String author, double price) {
    super();
    this.title = title;
    this.author = author;
    this.price = price;
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    // Getter and setter methods for the defined properties..
    and I am getting error :-
    BookCatalogInterface.java:getAllBooks
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Syntax error parsing the query [from entity.library.ConfPmno conf ], line 1, column 0: unexpected token [from].
    Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );]); nested exception is: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Syntax error parsing the query [from entity.library.ConfPmno conf ], line 1, column 0: unexpected token [from].
    Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );])
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Syntax error parsing the query [from BookBank book ], line 1, column 0: unexpected token [from].
    Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );])
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1328)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:93)
    at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:91)
    at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:80)
    at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:26)
    at $Proxy140.createQuery(Unknown Source)
    at entity.library.ConfPmnoBean.getAllBooks(ConfPmnoBean.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proc
    persistent.xml :-
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="EntityBean" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>DB_DS</jta-data-source>
    <non-jta-data-source>DB_DS</non-jta-data-source>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.logging.level" value="FINEST"/>
    </properties>
    </persistence-unit>
    </persistence>
    I am not able to resolve the issue,getting error while calling getAllBooks method(createQuery line) of BookCatalogBean.java file.
    Any help is much appreciated,Please suggest solution

    Try using:
    em.createQuery("select book from BookBank book").getResultList();instead of
    em.createQuery("from BookBank book ").getResultList();The "from Entity e" only works for the Hibernate query language not the JPA query language.
    Also in your persistence.xml, define only one data-source: a jta-data-source or a non-jta-data-source.

  • JDeveloper design-time exception (java.lang.IllegalArgumentException)

    Using JDev 11.1.1.3; to speed up the chart renders in pages, we've switched the chart from dynamic-size to fixed-size which brings the chart in 1 - 2 seconds quicker which is good, but in order to continue supporting expand/reduce functionality (requested by user via af:commandImageLink press) the width on the chart is set via EL or managed-bean. Either way, now when we load up the page in JDeveloper we get ...
    13/09/2010 4:27:19 PM oracle.adfinternal.view.faces.bi.renderkit.imageView.ImageViewRenderer
    WARNING: Exception in parsing the inlineStyle.
    java.lang.IllegalArgumentException: Invalid length: #{viewScope.AdminActivity.trend1Width}
         at oracle.adfinternal.view.faces.bi.util.CSSStyleUtils.parseLength(CSSStyleUtils.java:645)
    ... appearing in the Messages - Log view for each chart when switching the editor to Design mode.
    Is there some way to turn this off, or is it considered a bug to be fixed, or should we (despite the fact the run-time works) consider this bad design. (NB: client rates performance highly and the improvement delivered here important).
    Thanks,

    Hi,
    exception:java.lang.IllegalArgumentException.1 .This means that u passed an illegal or inappropriate argument to some method.
    page first loads then the error appears, if I go to
    next page and come back to the initial page, then the
    applet works!2. This means that the value of the argument u are passing changes between init,start,stop of the Applets methods.
    3.So u should be checking the values of the arg are passing .
    Hope it helps
    Cheers!

Maybe you are looking for