MarshalException

Hello

I get this error when I am accessing a Web Service:

java.rmi.MarshalException: object of the item describing the details of SOAP fault is not available.

Is that what someone has encountered this error? I am using 2 other Web Services that work very well.

The error appears after the operation.invoke line.

The mistake was about the QName of an element which was not exactly the same as the WSDL document.

And another error has been resolved too.

The second error was created by a value zero in one of the items I received.

I changed the Web Service to send an empty string or a dummy value for int instead of Nile.

Hope that will help you.

If you use Java Wireless Toolkit to generate the stub and understand where your error is.

http://Java.Sun.com/products/sjwtoolkit/

Tags: BlackBerry Developers

Similar Questions

  • Newbie: Call a webservice poster java.rmi.MarshalException

    Hi all

    does anyone know a solution for this:

    I developed a java application with eclipse java BlackBerry plugin 1.1.2. This application calls a Web service and get the response. And then, I get an exception

    java.rmi.MarshalException: there are elements of the SOAP body.

    I searched the Knowledge Base but did not find a tip. And I really didn't know where this error message wants to guide me. Help, please.

    Thanks for any help in advance.

    Concerning

    Andreas

    Hi Andreas,

    I saw that in your SOAP load is a field named body. Rename this field, and then try again.

    Andreas

  • Consume Webservice - java.io.IOException: General socket error

    Hey,.

    I'm trying to consume a webservice ( www.webservicex.net, but also tried other forecasts) with a smart blackberry phone, but I still have a java.io.IOException.

    I generated stubs with the Java Wireless Toolkit 2.5.2. Now, I call the heel of the Java application.

    My MDS is running and are configured for use with my proxy. I can view each page with the built-in browser.

    The call of the stub works like this:

    public class BB_WeatherStart extends MainScreen {
    
       public BB_WeatherStart() throws RemoteException {
        com.weather.WeatherForecasts weather = null;
        WeatherForecastSoap_Stub stub = new WeatherForecastSoap_Stub();
        weather = stub.getWeatherByZipCode("10024");
    
        LabelField longi = new LabelField();
        longi.setText("Longitüde" + weather.getLongitude());
        add(longi);
    
        LabelField status = new LabelField();
        status.setText("Status" + weather.getStatus());
        add(status);
       }
    
    }
    

    The instantiation of the stub works, but the call of the method getWeatherByZipCode returns this exception.

    This is the code for the method:

    public com.weather.WeatherForecasts getWeatherByZipCode(java.lang.String zipCode) throws java.rmi.RemoteException {
    
       Object[] inputObject = new Object[1];
       inputObject[0] = zipCode;
    
       Operation op = Operation.newInstance(_qname_GetWeatherByZipCode, _type_GetWeatherByZipCode, _type_GetWeatherByZipCodeResponse);
       _prepOperation(op);
       op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "http://209.162.186.60/GetWeatherByZipCode;deviceSide=true");
    
       Object resultObj;
       try {
          resultObj = op.invoke(inputObject);
       } catch (JAXRPCException e) {
        throw e;
       }
    
    //Snip.. the Rest of the method is never reached ;)
    
    }
    

    The Exception is thrown in the call to op.invoke (inputObject);

    I also tried the hostname instead of IP address, but then I get a j "" ava.io.IOException: bad DNS address "and if I try without the"; " deviceSide = true' I get the message "Local port: 19780 APN:"rim.net.gprs"APN username: password 'null' AFN: there is no connection"null"

    Thanks for your help

    Tina

    After watching a little I don't think that the original problem was with the connection I think it is related to a null value returned by the web service.  I generated a set of stubs from the web service, you were using and tried with the same result as you.  I got a version of 4.5 and made some settings (I don't specifically know who he was) and the error has become ' java.rmi.MarshalException: nillable not element of array in response type is not met. ".  Went up to version 4.7 and here it works very well.  If you run this with a test tool web service call, you see a null of WeatherData to the bottom element which is the likely culprit.  I read somewhere that BB do not have NULL values in some earlier versions.

    hope that helps.

    T

  • autoinventory scan

    I'm trying to run an autoinventory AC-shell
    I run shell hq, connection to localhost and run
    "autoinventory start - name_of_client of the platform" take all default values and returns

    Select the types of servers to search (enter zero to search all):
    1: agent HQ
    > 1
    Press ENTER to start the analysis.
    java.rmi.MarshalException: marshaling of arguments error. nested exception is:
    java.io.NotSerializableException: org.hyperic.hq.autoinventory.ScanConfigurationCore
    at sun.rmi.server.UnicastRef.invoke (unknown Source)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke (unknown Source)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:119)
    at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
    at org.hyperic.txsnatch.ProxySnatch.invoke(ProxySnatch.java:39)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
    at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
    to $Proxy5.startScan (Unknown Source)
    at org.hyperic.hq.bizapp.client.shell.ClientShell_autoinventory_remote.startRemoteScan(ClientShell_autoinventory_remote.java:97)
    at org.hyperic.hq.bizapp.client.shell.ClientShell_autoinventory_remote.processCommand(ClientShell_autoinventory_remote.java:71)
    at org.hyperic.hq.bizapp.client.shell.ClientShell_autoinventory_command.processCommand(ClientShell_autoinventory_command.java:80)
    at org.hyperic.util.shell.MultiwordShellCommand.processCommand(MultiwordShellCommand.java:83)
    at org.hyperic.hq.bizapp.client.shell.ClientShell.processCommand(ClientShell.java:169)
    at org.hyperic.util.shell.ShellBase.handleCommand(ShellBase.java:326)
    at org.hyperic.util.shell.ShellBase.handleCommand(ShellBase.java:280)
    at org.hyperic.util.shell.ShellBase.run(ShellBase.java:260)
    at org.hyperic.hq.bizapp.client.shell.ClientShell.main(ClientShell.java:370)
    Caused by: java.io.NotSerializableException: org.hyperic.hq.autoinventory.ScanConfigurationCore
    at java.io.ObjectOutputStream.writeObject0 (unknown Source)
    at java.io.ObjectOutputStream.writeArray (unknown Source)
    at java.io.ObjectOutputStream.writeObject0 (unknown Source)
    at java.io.ObjectOutputStream.writeObject (unknown Source)
    to org.jboss.invocation.MarshalledValue. < init > (MarshalledValue.java:57)
    at org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:479)
    at java.io.ObjectOutputStream.writeExternalData (unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject (unknown Source)
    at java.io.ObjectOutputStream.writeObject0 (unknown Source)
    at java.io.ObjectOutputStream.writeObject (unknown Source)
    at sun.rmi.server.UnicastRef.marshalValue (unknown Source)
    ... more than 20
    org.hyperic.util.shell.ShellCommandExecException: could not launch the scan.

    Anyone know what causes this and how to fix it?

    TIA

    A similar bug was recorded:
    http://JIRA.Hyperic.com/browse/HHQ-506

    Thank you very much

    -Lorenzo

Maybe you are looking for