WebService java.lang.NullPointerException

help me please. the java.lang.NullPointerException happens when i try to set a string in to the array reg
i don't know if the problem is because the array dimencion is 1.
i don't think so but im with that problem for many time. and maybe is just simple but i don't see it.
mOc.setMENSAJE_ID(" ");
mOc.setVERSION(ver);
mOc.setESTAMPA_PETICION(new java.util.Date());
com.ing.mx.seguros.autos.sisamovil.ws.coninfSISAMovil.PETICION_SECC peticion = new com.ing.mx.seguros.autos.sisamovil.ws.coninfSISAMovil.PETICION_SECC();
CONSULTA_APOYO_REG[] reg=new CONSULTA_APOYO_REG[1];
reg[0].setSINIESTRO_ING(siniestro);
CONSULTA_APOYOS apoyo = new CONSULTA_APOYOS();
apoyo.setCONSULTA_APOYO_REG(reg);
peticion.setCONSULTA_APOYOS(apoyo);
entrada.setPETICION_SECC(peticion);
entrada.setMENSAJE_SECC(mOc);
code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi Krishna,
Please have a look at these..
/people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
/thread/34142 [original link is broken]
"call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryExceptio
Error while Testing SOAP Adapter In XI
cheers,
Prashanth

Similar Messages

  • File 2 Webservice : "java.lang.NullPointerException"

    Hello guys,
    I have this following scenario : File to WS; everything config looks fine , but i am gettingthis error
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.lang.NullPointerException</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please suggest
    Krishna

    Hi Krishna,
    Please have a look at these..
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
    /thread/34142 [original link is broken]
    "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryExceptio
    Error while Testing SOAP Adapter In XI
    cheers,
    Prashanth

  • Java.lang.NullPointerException returned from webservice

    Hi I have an axis client which sends an image attachment to an axis webservice, however I am returned with a null pointer exception,
    this is my client,
    package chapter5;
    import java.net.URL;
    import org.apache.axis.client.Service;
    import org.apache.axis.client.Call;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory;
    import org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.namespace.QName;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    public class AttachmentServiceClient{
         public AttachmentServiceClient(){}
         public static void main(String args[]){
              try{
                   String filename = "D:\\images\\products\\r.jpg";
                   //create the data for the attached file
                   DataHandler dhSource = new DataHandler(new FileDataSource(filename));
                   String endpointURL = "http://localhost:8080/axis/services/AttachmentService";
                   String methodName = "addImage";
                   Service service = new Service();
                   Call call = (Call)service.createCall();
                   call.setTargetEndpointAddress(new URL(endpointURL));
                   call.setOperationName(new QName("AttachmentService",methodName));
                   call.addParameter("sku",XMLType.XSD_STRING,ParameterMode.PARAM_MODE_IN);
                   QName qname = new QName("AttachmentService","DataHandler");
                   call.addParameter("image",qname,ParameterMode.PARAM_MODE_IN);
                   //register the datahandler
                   call.registerTypeMapping(dhSource.getClass(),qname,JAFDataHandlerSerializerFactory.class,JAFDataHandlerDeserializerFactory.class);
                   call.setReturnType(XMLType.XSD_STRING);
                   Object[] params = new Object[]{"SKU-111",dhSource};
                   String result = (String)call.invoke(params);
                   System.out.println("The response: "+result);
    ;          }catch(Exception e){
                   System.err.println(e.toString());
    this is my webservice,
    package chapter5;
    import javax.activation.DataHandler;
    import java.io.FileOutputStream;
    import java.io.File;
    import java.io.BufferedInputStream;
    public class SparePartAttachmentService{
         public SparePartAttachmentService(){}
         public String addImage(String sku,DataHandler dataHandler){
              System.out.println("trying");
              try{
                   String filepath = "c:/wrox-axis/"+sku+"-image.jpg";
                   FileOutputStream fout = new FileOutputStream(new File(filepath));
                   BufferedInputStream in = new BufferedInputStream(dataHandler.getInputStream());
                   while(in.available()!=0){
                        fout.write(in.read());
              }catch(Exception e){
                   return e.toString();
              return "Image: "+sku+" has been added successfully!!";
    I did a test by stripping out the attachment being sent by the client and just let it send the string,
    then in the webservice I stripped out the lines for the attachment and just returned the string and it worked ok, so it has been deployed correctly.
    I have the Java Activation framework both in tomcat commons and my webapps lib dir.
    I'm pretty sure the error is being thrown here,
    public String addImage(String sku,DataHandler dataHandler){
    any help would be greatly appreciated,
    thank you,
    JP.

    Ok, I have now successfully got the stack trace to show where the exception bubbled, Im suprised its in the axis client as I assumed it was in the webservice, but this whole exercise has been extremely beneficial,
    anyway this is the client code again and the stack trace error, I now think the problem lies within the JAF, possibly, however, im doing something incorrectly,
    package chapter5;
    import java.net.URL;
    import org.apache.axis.client.Service;
    import org.apache.axis.client.Call;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory;
    import org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.namespace.QName;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.activation.DataSource;
    import java.io.File;
    public class AttachmentServiceClient{
         public AttachmentServiceClient(){}
         public static void main(String args[]){
              try{
                   String filename = "D:\\javaDev\\utilities\\coldfusionMX\\Java\\javapetstore\\r.jpg";
                   //create the data for the attached file
                   DataHandler dhSource = new DataHandler(new FileDataSource(new File(filename)));
                   String endpointURL = "http://localhost:8080/axis/services/AttachmentService";
                   String methodName = "addImage";
                   Service service = new Service();
                   Call call = (Call)service.createCall();
                   call.setTargetEndpointAddress(new URL(endpointURL));
                   call.setOperationName(new QName("AttachmentService",methodName));
                   call.addParameter("sku",XMLType.XSD_STRING,ParameterMode.PARAM_MODE_IN);
                   QName qname = new QName("AttachmentService","DataHandler");
                   call.addParameter("image",qname,ParameterMode.PARAM_MODE_IN);
                   //register the datahandler
                   call.registerTypeMapping(dhSource.getClass(),qname,JAFDataHandlerSerializerFactory.class,JAFDataHandlerDeserializerFactory.class);
                   call.setReturnType(XMLType.XSD_STRING);
                   Object[] params = new Object[]{"SKU-111",dhSource};
                   try{
                        String result = (String)call.invoke(params);
                        System.out.println("The response: "+result);
                   }catch(Exception f){
                        f.getStackTrace();
                        f.printStackTrace();
              }catch(Exception e){
                   System.err.println("error");
    stack trace
    C:\wrox-axis>java chapter5.AttachmentServiceClient
    java.lang.NullPointerException
    at org.apache.axis.AxisFault.makeFault(Unknown Source)
    at org.apache.axis.SOAPPart.getAsString(Unknown Source)
    at org.apache.axis.SOAPPart.getAsBytes(Unknown Source)
    at org.apache.axis.Message.getContentLength(Unknown Source)
    at org.apache.axis.transport.http.HTTPSender.invoke(Unknown Source)
    at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
    at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
    at org.apache.axis.SimpleChain.invoke(Unknown Source)
    at org.apache.axis.client.AxisClient.invoke(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at chapter5.AttachmentServiceClient.main(AttachmentServiceClient.java:45
    Caused by: java.lang.NullPointerException
    at org.apache.axis.encoding.ser.JAFDataHandlerSerializer.serialize(Unkno
    wn Source)
    at org.apache.axis.encoding.SerializationContextImpl.serializeActual(Unk
    nown Source)
    at org.apache.axis.encoding.SerializationContextImpl.serialize(Unknown S
    ource)
    at org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(Unk
    nown Source)
    at org.apache.axis.message.SOAPEnvelope.outputImpl(Unknown Source)
    at org.apache.axis.message.MessageElement.output(Unknown Source)
    ... 13 more

  • Error in file-webservice- file (Error: java.lang.NullPointerException)

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have  used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    1 communication channel for sender file
    1 for receiver soap
    1 for receiver file
    Error: java.lang.NullPointerException
    What could be the reason for this error
    thanks a lot
    Ramya

    Hi Tanaya,
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Now, the error is internal server error.What can I do about this?
    thanks a lot
    Ramya

  • Java.lang.NullPointerException while invoking Weblogic10 Webservice JAX-RPC

    hello,
    I'm facing this Eception while invoking the Webservice
    10/03/2009 01:39:19 Ú gosi.business.batch.financialaccounting.gosiSambaRets.controller.SambaClient callUploadPayment
    SEVERE: null
    java.lang.NullPointerException
    at com.bea.staxb.buildtime.internal.bts.XmlTypeName.findTypeIn(XmlTypeName.java:555)
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder.getTypeNamed(AnonymousTypeFinder.java:73)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.createBindingTypeFrom(Deploytime109MappingHelper.java:1088)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.processTypeMappings(Deploytime109MappingHelper.java:519)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBindingFileFrom109dd(Deploytime109MappingHelper.java:266)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>(Deploytime109MappingHelper.java:166)
    at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.createRuntimeBindings(RuntimeBindingsBuilderImpl.java:86)
    at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java:709)
    at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:409)
    at weblogic.wsee.ws.WsFactory.createClientService(WsFactory.java:45)
    at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl.java:154)
    at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:122)
    at com.samba.service.client.GosiPaymentSambaServices_Impl.<init>(Unknown Source)
    at com.samba.service.client.GosiPaymentSambaServices_Impl.<init>(Unknown Source)
    please can some one help me??

    user564706 wrote:
    Hi support,
    I installed cluster
    I installed Oracle ASM home
    using netca from ASM hom i cretaed listener
    Then while invoking dbca from ASM home to cretae asm instance i got the error:
    exceptio in thread "main" java.lang.NullPointerException
    at
    oracle.sysman.assistants....
    so using netca from asm home i deleted the listener and invokded dbca from asm home and it looks for the listener and since it is not there it automatically cretaes (after i confirm ok)and the asm instance cretaed.
    so is it the normal behaviour.What is the version?
    Why you are using DBCA from ASM_HOME ?
    you can use ASMCA from ASM_HOME if 11g.
    DBCA to create database from RDBMS_HOME/ORACLE_HOME
    You have very bad stats of your profile.
    user564706      
         Newbie
    Handle:      user564706
    Status Level:      Newbie
    Registered:      Mar 19, 2007
    Total Posts:      258
    Total Questions:      202 (200 unresolved)
    Out of 202 questions only 2 resolved, please check may be those also unresolved ;-)
    Keep the forum clean, close all your threads as answered. Read Etiquette. https://forums.oracle.com/forums/ann.jspa?annID=718
    Edited by: CKPT on Feb 22, 2012 6:56 AM

  • Weblogic 10 - SEVERE: null java.lang.NullPointerException

    I'm facing this Error while invoking a webservice
    SEVERE: null
    java.lang.NullPointerException
    at com.bea.staxb.buildtime.internal.bts.XmlTypeName.findTypeIn(XmlTypeName.java:555)
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder.getTypeNamed(AnonymousTypeFinder.java:73)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.createBindingTypeFrom(Deploytime109MappingHelper.java:1088)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.processTypeMappings(Deploytime109MappingHelper.java:519)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBindingFileFrom109dd(Deploytime109MappingHelper.java:266)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>(Deploytime109MappingHelper.java:166)
    at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.createRuntimeBindings(RuntimeBindingsBuilderImpl.java:86)
    at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java:709)
    at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:409)
    at weblogic.wsee.ws.WsFactory.createClientService(WsFactory.java:45)
    at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl.java:154)
    at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:122)
    at com.samba.service.client.GosiPaymentSambaServices_Impl.<init>(Unknown Source)
    at com.samba.service.client.GosiPaymentSambaServices_Impl.<init>(Unknown Source)
    can Any body Help me through this?

    Hi,
    Resource adapter is not available remotely - with your JNDI context
    ctx.lookup("tangosol.coherenceTx");will return null. Instead of using resource adapter remotely you can implement a session bean, deploy it on a WLS instance and invoke it remotely.
    Regards,
    Dimitri

  • Receive java.lang.NullPointerException (JCA-12563) on SCA with Stored Procedure dbAdapter (SOA Suite 12.1.3)

    Hi,
    I'm new to the Oracle SOA Suite and have been creating very simple SCA WebServices (async and sync) prototypes to INSERT, UPDATE and Poll Oracle 9i and 11g databases. So far, everything works and passes the tests from EM.
    I cannot get the Stored Procedure WebService to test successfully as I receive the error message below regardless of JNDI configuration for XA, non-XA, Last Logging Resource, Support Global Transactions,PlatformClassName, etc...  The Outbound Connection Pool is setup correctly as the other DML tests have worked fine.
    BINDING.JCA-12563
    Exception occurred when binding was invoked.
    Exception occurred during invocation of JCA binding: "JCA Binding execute of Reference operation 'dbReference' failed due to: Interaction processing error.
    Error while processing the execution of the IFSAPP.TEST_SOA_API API interaction.
    An error occurred while processing the interaction for invoking the IFSAPP.TEST_SOA_API API. Cause: java.lang.NullPointerException
    Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.  This exception is considered not retriable, likely due to a modelling mistake.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    Caused by: BINDING.JCA-12563
    Exception occurred when binding was invoked.
    Exception occurred during invocation of JCA binding: "JCA Binding execute of Reference operation 'callAPI' failed due to: Interaction processing error.
    Error while processing the execution of the IFSAPP.TEST_SOA_API API interaction.
    An error occurred while processing the interaction for invoking the IFSAPP.TEST_SOA_API API. Cause: java.lang.NullPointerException
    Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.  This exception is considered not retriable, likely due to a modelling mistake.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
       at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:569)
        at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeJcaReference(JCAInteractionInvoker.java:724)
        at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.invokeAsyncJcaReference(JCAInteractionInvoker.java:689)
        at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAEndpointInteraction.performAsynchronousInteraction(JCAEndpointInteraction.java:628)
        at oracle.integration.platform.blocks.adapter.AdapterReference.post(AdapterReference.java:325)
        ... 84 more
    Caused by: BINDING.JCA-11812
    Interaction processing error.
    Error while processing the execution of the IFSAPP.TEST_SOA_API API interaction.
    An error occurred while processing the interaction for invoking the IFSAPP.TEST_SOA_API API. Cause: java.lang.NullPointerException
    Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.  This exception is considered not retriable, likely due to a modelling mistake.
        at oracle.tip.adapter.db.exceptions.DBResourceException.createNonRetriableException(DBResourceException.java:690)
        at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:656)
        at oracle.tip.adapter.db.sp.SPUtil.createResourceException(SPUtil.java:180)
        at oracle.tip.adapter.db.sp.SPInteraction.executeStoredProcedure(SPInteraction.java:183)
        at oracle.tip.adapter.db.DBInteraction.executeStoredProcedure(DBInteraction.java:1302)
        at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:307)
        at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker.executeJcaInteraction(JCAInteractionInvoker.java:415)
    Caused by: java.lang.NullPointerException
        at oracle.tip.adapter.db.sp.SPInteraction.executeStoredProcedure(SPInteraction.java:162)
        ... 91 more
    The SP SCA is the simplest possible application I can think of...  The WebService accepts a single INT, calls BPEL>Receive>Assign>Invoke>dbAdapter(Stored Procedure) that accepts a single IN INTEGER parameter in an Oracle 11g database.
    Steps I've used to create the SP SCA. (Create Empty SOA Application)
    1.) Create Database Adapter in External References swim lane.
    2.) Set JNDI and Connection.
    3.) Browse to Oracle Procedure...click through Wizard and accept all defaults.
       CREATE OR REPLACE PROCEDURE TEST_SOA_API (
         wo_order_no_ IN INTEGER)
       IS
       BEGIN
         INSERT INTO TEST_TMP VALUES (wo_order_no_);
       END;
    4.) WSDL, XSD, JCA are automatically generated. 
    5.) Create BPEL Process Component and select Template "Base on a WSDL".  I choose the WSDL created from the Database Adapter wizard.
    6.) The "Exposed Service" is automatically created and everything is wired.
    7.) I deploy to my CompactDomain (running on a local Oracle12 db).  No errors.
    8.) I login to EM and Test the WebService..and ALWAYS receive the error message above.
    I've tried BPEL Process and Mediator as components to simply pass the single incoming INT parameter to the SP DbAdapter and tried every combination I can think of with DataSource/DbAdapter Deployment through the Admin console.  I used the same exact steps above for INSERT, UPDATE, Polling and have had no issues so I cannot figure out why I'm not receiving java.NullPointer exception or why I'm receiving the XML/XSD malformation error.
    Stuck now...anyone have an idea what I'm doing wrong or simply tell me I'm an idiot and shouldn't do SP's this way?
    FYI.  I've turned on logging for the oracle.soa.adapter.db class to TRACE: 32(FINEST).  Not much help to me
    [2015-04-02T09:03:55.706-05:00] [AdminServer] [WARNING] [ADF_FACES-00007] [oracle.adf.view.rich.render.RichRenderer] [tid: 118] [userId: weblogic] [ecid: 852497f1-b648-4cac-9cee-05e7972ce68e-00000788,0] [APP: em] [DSID: 0000KluHqzk0NuGayxyWMG1L7K52000003] Attempt to synchronized unknown key: viewportSize.
    [2015-04-02T09:05:23.971-05:00] [AdminServer] [TRACE] [] [oracle.soa.adapter.db.outbound] [tid: 115] [userId: <anonymous>] [ecid: 852497f1-b648-4cac-9cee-05e7972ce68e-000007db,1:17474] [APP: soa-infra] [oracle.soa.tracking.FlowId: 250004] [oracle.soa.tracking.InstanceId: 1270014] [oracle.soa.tracking.SCAEntityId: 90004] [composite_name: OraclePLSQL2!1.0] [FlowId: 0000KluSpyP0NuGayxyWMG1L7K52000007] [SRC_CLASS: oracle.tip.adapter.db.sp.AbstractStoredProcedure] [SRC_METHOD: execute]  [composite_version: 1.0] [reference_name: dbReference] BEGIN IFSAPP.TEST_SOA_API(WO_ORDER_NO_=>?); END;
    [2015-04-02T09:05:23.972-05:00] [AdminServer] [TRACE] [] [oracle.soa.adapter.db.outbound] [tid: 115] [userId: <anonymous>] [ecid: 852497f1-b648-4cac-9cee-05e7972ce68e-000007db,1:17474] [APP: soa-infra] [oracle.soa.tracking.FlowId: 250004] [oracle.soa.tracking.InstanceId: 1270014] [oracle.soa.tracking.SCAEntityId: 90004] [composite_name: OraclePLSQL2!1.0] [FlowId: 0000KluSpyP0NuGayxyWMG1L7K52000007] [SRC_CLASS: oracle.tip.adapter.db.sp.AbstractStoredProcedure] [SRC_METHOD: execute]  [composite_version: 1.0] [reference_name: dbReference] Bindings [WO_ORDER_NO_=>INTEGER(2343)]
    WSDL
    <wsdl:definitions
         name="dbReference"
         targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/OraclePLSQL2/OraclePLSQL2/dbReference"
         xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/OraclePLSQL2/OraclePLSQL2/dbReference"
         xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
         xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
         xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
        >
      <plt:partnerLinkType name="dbReference_plt" >
        <plt:role name="dbReference_role" >
          <plt:portType name="tns:dbReference_ptt" />
        </plt:role>
      </plt:partnerLinkType>
        <wsdl:types>
         <schema xmlns="http://www.w3.org/2001/XMLSchema">
           <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference"
                   schemaLocation="../Schemas/dbReference_sp.xsd" />
         </schema>
        </wsdl:types>
        <wsdl:message name="args_in_msg">
            <wsdl:part name="InputParameters" element="db:InputParameters"/>
        </wsdl:message>
        <wsdl:portType name="dbReference_ptt">
            <wsdl:operation name="dbReference">
                <wsdl:input message="tns:args_in_msg"/>
            </wsdl:operation>
        </wsdl:portType>
    </wsdl:definitions>
    XSD
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference" elementFormDefault="qualified">
       <element name="InputParameters">
          <complexType>
             <sequence>
                <element name="WO_ORDER_NO_" type="int" db:index="1" db:type="INTEGER" minOccurs="0" nillable="true"/>
             </sequence>
          </complexType>
       </element>
    </schema>
    Payload XML
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
            <soap:Body>
                    <ns1:InputParameters xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/sp/dbReference">
                            <ns1:WO_ORDER_NO_>667</ns1:WO_ORDER_NO_>
            </ns1:InputParameters>
        </soap:Body>
    </soap:Envelope>

    An even simpler request:
    Can someone create an SCA that simply accepts a single INT parameter and calls a Stored Procedure (Oracle) that inserts this INT into a table?  Maybe upload the project folder structure in a zip? 
    Seems someone with experience on this platform could execute this task in 10-15 minutes.
    CREATE TABLE TEST_TMP (WO_ORDER_NO INT);
       CREATE OR REPLACE PROCEDURE TEST_SOA_API (
         wo_order_no_ IN INTEGER)
       IS
       BEGIN
         INSERT INTO TEST_TMP VALUES (wo_order_no_);
       END;

  • SOAP Receiver Adapter Error in XI RWB - java.lang.NULLPointerException

    Hi,
    We have a asynchronous scenario in SAP-XI, where we are sending the PO data from SRM to third party (Hubspan / TNT). Proxy is being used at Sender side and SOAP Adapter is used for Receiver Communication Channel.
    u2022SRM is sending around 1000 messages through background job and around 995 or 996 messages are being processed successfully and showing the proper XML payload as well in RWB. But 4-5 messages are getting failed in XI RWB for u2018java.lang.NullPointerExceptionu2019. For these failed messages we are not able to see the XML payload as well in XI RWB while these messages are showing successful status in MONI in SRM and XI and we are able to see the payload as well in MONI. The webservice is restarting and trying to send the payload three times in RWB, but it is getting the same Nullexception error.
    04.11.2011 16:45:49.715 Success Delivering to channel: CC_B2B_HUBSPAN_RCV
    04.11.2011 16:45:49.715 Success MP: Entering module processor
    04.11.2011 16:45:49.715 Success MP: Processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
    04.11.2011 16:45:49.716 Success SOAP: request message entering the adapter with user J2EE_GUEST
    04.11.2011 16:45:49.716 Success SOAP: Target url: https://connect.hubspan.net/mh/server/tp=NMHG/ssid=DAA6F0E9AC1000BD03A41B363BBFD676
    04.11.2011 16:45:49.999 Error SOAP: call failed: java.lang.NullPointerException
    04.11.2011 16:45:49.999 Success SOAP: sending a delivery error ack ...
    04.11.2011 16:45:49.999 Success SOAP: sent a delivery error ack
    04.11.2011 16:45:49.999 Error SOAP: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException
    04.11.2011 16:45:49.999 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException
    04.11.2011 16:45:50.000 Error Exception caught by adapter framework: null
    04.11.2011 16:45:50.022 Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException.
    04.11.2011 16:45:50.037 Success The message status set to WAIT.
    u2022If we are resending the failed message from XI RWB, it is getting failed again with the same error. On the other hand if we are initiating the message again from SRM to Hubspan for the same PO, it is getting processed successfully in RWB but still not showing XML payload in RWB.
    u2022If we are getting the payload from XI MONI for the failed message and doing a test with component monitoring in RWB, it is working fine.
    Please help me to solve this issue.
    Thanks
    Sumit

    Hi Sumit,
    From my experience, when you transfer  SAP POs through PI to external webservice, there should be some validation happens at the webservice layer of the target system before the web service passes the original information to  their application layer. The validation can be anything like checking the Vendor address, Checking the correctness of the order ...etc etc . So i would suggest to ask your external web service folks to check if they have any validation in place before they pass the data to their application layer.
    As you said only some POs/XMLs are failing, i strongly feel that this could be the issue.
    Please note if you receive response code other than 200 from webservice, SOAP adapter treats that as error and send the same message back to AE.
    Normally webservices won't send 200 code for any validation error
    PS: you can still try to use XMLSpy to post the failed message to the web service to know the exact cause.

  • SOAP fault message : java.lang.NullPointerException

    Hi,
    After calling the Webservice from XI, got error message as
    java.lang.NullPointerException
    What might be the problem.
    Thanks in Advance!
    Regards,
    Sreenivas.

    Hi,
    In RWB, am getting SOAP resopnse error
    and in SXMB_MONI, getting inbound message as
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <INVALID_INPUT>
      <description>java.lang.NullPointerException</description>
      </INVALID_INPUT>
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="UNKNOWN">APPLICATION_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>application fault</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="">INVALID_INPUT</SAP:ApplicationFaultMessage>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Regards,
    Sreenivas.

  • Error: java.lang.NullPointerException  in BI Broadcasting

    I am having this issue when I am trying Email broadcasting form SAP BI Query and set the filter navigation for one of the characteristic value. Any Idea???
    When I execute the Information broadcasting it gives following message
    Error: java.lang.NullPointerException
    Thanks,
    Addy

    Hi Janine,
    The query works in Java Web and in BEx Excel analyzer. This query even works in the BI email broadcasting for different filter value for the same characteristic in the filter navigation tab setting in broadcasting.
    The same filter value works in Broadcasting when I am broadcasting the query as Excel attachment but does not work when I try to do a PDF report.
    The popup error message is this:
    Execution of Broadcast Setting
       Setting Z_ORD_PTYP_SM_INT_YN_WK were started from the BEx Broadcaster
            Processing for user USERID, language EN
              Processing setting Z_ORD_PTYP_SM_INT_YN_WK
                Error: java.lang.NullPointerException
    When I checked the log file here is the Java Log
    #1.5#0023AEFCB3200030000001F4000003D000047DAE57A2B7C0#1264087654806#com.sap.ip.bi.base.application.message.impl.MessageBase#sap.com/com.sap.prt.application.rfcframework#com.sap.ip.bi.base.application.message.impl.MessageBase#adadsena#13065##sap-bip_BIP_4188451##0a4b90f006a111dfad9f0023aefcb320#SAPEngine_Application_Thread[impl:3]_33##0#0#Error#1#/Applications/BI#Plain###A message was generated:
    ERROR
    Error while processing the control query
    Message: Error while processing the control query
    Stack trace: com.sap.ip.bi.broadcasting.runtime.BroadcastingException: Error while processing the control query
                    at com.sap.ip.bi.broadcasting.runtime.impl.precalculation.PrecPageAssembler.processControlQuery(PrecPageAssembler.java:559)
                    at com.sap.ip.bi.broadcasting.runtime.impl.precalculation.PrecPageAssembler.run(PrecPageAssembler.java:186)
                    at com.sap.ip.bi.broadcasting.runtime.impl.ProducerPrecalculation.produce(ProducerPrecalculation.java:409)
                    at com.sap.ip.bi.broadcasting.runtime.RfcListenerRSRD_X_PRODUCE.handleRequest(RfcListenerRSRD_X_PRODUCE.java:130)
                    at com.sap.ip.bi.portalrfc.dispatcher.services.BIServicesRfcDispatcherService.doHandleRequest(BIServicesRfcDispatcherService.java:239)
                    at com.sap.ip.bi.portalrfc.services.BIRfcService.handleRequest(BIRfcService.java:247)
                    at com.sapportals.portal.prt.service.rfc.RFCEngineService.handleEvent(RFCEngineService.java:345)
                    at com.sapportals.portal.prt.service.rfc.PRTRFCBean.processFunction(PRTRFCBean.java:37)
                    at com.sapportals.portal.prt.service.rfc.PRTRFCRemoteObjectImpl0_0.processFunction(PRTRFCRemoteObjectImpl0_0.java:118)
                    at sun.reflect.GeneratedMethodAccessor851.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
                    at $Proxy129.processFunction(Unknown Source)
                    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:324)
                    at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:284)
                    at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219)
                    at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
                    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:104)
                    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: EXPORT XFA exception when calling the PDF object after 180596 msec
                    at com.sap.ip.bi.export.xfa.impl.Document.writePxxToByte(Document.java:687)
                    at com.sap.ip.bi.export.xfa.impl.Document.writePdfToByte(Document.java:709)
                    at com.sap.ip.bi.export.xfa.impl.PDFConverter.getBinaryContent(PDFConverter.java:160)
                    at com.sap.ip.bi.export.impl.ExportController.getBinaryContent(ExportController.java:863)
                    at com.sap.ip.bi.export.controller.ExportResult.getExportResult(ExportResult.java:103)
                    at com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:73)
                    at com.sap.ip.bi.webapplications.pageexport.broadcasterapi.PageExport.createExportResult(PageExport.java:212)
                    at com.sap.ip.bi.webapplications.pageexport.broadcasterapi.PageExport.getPdfForPage(PageExport.java:236)
                    at com.sap.ip.bi.webapplications.pageexport.broadcasterapi.PageExport.getExports(PageExport.java:253)
                    at com.sap.ip.bi.broadcasting.runtime.impl.precalculation.PrecPageAssembler.processPage(PrecPageAssembler.java:260)
                    at com.sap.ip.bi.broadcasting.runtime.impl.precalculation.PrecPageAssembler.processControlQuery(PrecPageAssembler.java:556)
                    ... 24 more
    Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
                    java.net.SocketTimeoutException: Read timed out
                    at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:408)
                    at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:337)
                    at com.sap.ip.bi.export.xfa.impl.Document.writePxxToByte(Document.java:648)
                    ... 34 more
    Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
                    java.net.SocketTimeoutException: Read timed out
                    at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:84)
                    at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:94)
                    at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:385)
                    ... 36 more
    Caused by: java.net.SocketTimeoutException: Read timed out
                    at java.net.SocketInputStream.socketRead0(Native Method)
                    at java.net.SocketInputStream.read(SocketInputStream.java:129)
                    at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
                    at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
                    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.readLine(HTTPSocket.java:889)
                    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getInputStream(HTTPSocket.java:375)
                    at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getResponseCode(HTTPSocket.java:284)
                    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.HTTPTransport.getResponseCode(HTTPTransport.java:415)
                    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.outputMessage(MimeHttpBinding.java:563)
                    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1444)
                    at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:77)
                    ... 38 more
    com.sap.ip.bi.broadcasting.runtime.BroadcastingException ErrProcessControlQuery#
    #1.5#0023AEFCB320000E000000000000028800047DAECCE1F4B6#1264089621987#com.sap.security.core.persistence##com.sap.security.core.persistence.[cf=com.sap.security.core.persistence.datasource.imp.LDAPMasterCheck][md=checkAvailability][cl=57038]#######SAPEngine_System_Thread[impl:5]_67##0#0#Error##Plain###Main server available again#
    #1.5#0023AEFCB320000F000000000000028800047DAECCEB0B7D#1264089622581#com.sap.security.core.umap.imp.UserMappingUtils##com.sap.security.core.umap.imp.UserMappingUtils.getMasterSystem()#######SAPEngine_System_Thread[impl:5]_30##0#0#Error##Plain###Cannot provide the current ABAP master system because the responsible system landscape is currently not available.#
    #1.5#0023AEFCB3200010000000000000028800047DAECCF17BBE#1264089623003#com.sap.caf.um.metadata.imp.MetaDataTools##com.sap.caf.um.metadata.imp.MetaDataTools.MetaDataTools()#######SAPEngine_System_Thread[impl:5]_53##0#0#Info#1#/System/Server#Plain###sap.com caf/um/metadata/imp MAIN_APL70VAL_C 1528581#
    #1.5#0023AEFCB3200011000000010000028800047DAECCF2B562#1264089623081#com.sap.engine.services.security##com.sap.engine.services.security#######SAPEngine_System_Thread[impl:5]_99##0#0#Error#1#/System/Security#Plain###migrateSystemRole() {#
    #1.5#0023AEFCB3200011000000030000028800047DAECCF2C102#1264089623081#com.sap.engine.services.security##com.sap.engine.services.security#######SAPEngine_System_Thread[impl:5]_99##0#0#Error#1#/System/Security#Plain###migrateSystemRole() } OK#
    #1.5#0023AEFCB3200012000000000000028800047DAECCF4D943#1264089623222#com.sap.caf.um.relgroups.imp.persistence.DataSource##com.sap.caf.um.relgroups.imp.persistence.DataSource.DataSource()#######SAPEngine_System_Thread[impl:5]_15##0#0#Info#1#/System/Server#Plain###sap.com caf/um/relgroups/imp MAIN_APL70P19_C 2877021#
    #1.5#0023AEFCB3200013000000000000028800047DAECCF4E368#1264089623222#com.sap.tc.lm.ctc.confs.service.ServiceFrame##com.sap.tc.lm.ctc.confs.service.ServiceFrame#######SAPEngine_System_Thread[impl:5]_72##0#0#Info#1#/System/Server/CTC#Plain###Starting Configuration util service...#
    #1.5#0023AEFCB3200013000000010000028800047DAECCF617AD#1264089623300#com.sap.tc.lm.ctc.confs.service.ServiceFrame##com.sap.tc.lm.ctc.confs.service.ServiceFrame#######SAPEngine_System_Thread[impl:5]_72##0#0#Info#1#/System/Server/CTC#Plain###Configuration util service started successfully.#
    #1.5#0023AEFCB3200012000000010000028800047DAECCF9715F#1264089623519#com.sap.caf.um.relgroups.imp.principals.RelGroupFactory##com.sap.caf.um.relgroups.imp.principals.RelGroupFactory.RelGroupFactory()#######SAPEngine_System_Thread[impl:5]_15##0#0#Info#1#/System/Server#Plain###sap.com caf/um/relgroups/imp MAIN_APL70P19_C 2877021#
    #1.5#0023AEFCB3200014000000000000028800047DAECCFA84EF#1264089623597#com.sapportals.trex.tns.TNSClient##com.sapportals.trex.tns.TNSClient#######SAPEngine_System_Thread[impl:5]_34##0#0#Error##Plain###verifyNameServerAddress: NameServer = tcpip://<nameserverhost>:<nameserverport> caught exception: java.net.MalformedURLException: For input string: "<nameserverport>"#
    #1.5#0023AEFCB3200014000000010000028800047DAECCFA999F#1264089623597#com.sapportals.trex.tns.TNSClient##com.sapportals.trex.tns.TNSClient#######SAPEngine_System_Thread[impl:5]_34##0#0#Error##Plain###Invalid Entry for nameserver: tcpip://<nameserverhost>:<nameserverport> caught Exception: com.sapportals.trex.TrexException: TREX Name Server (including back-up servers) is down or not accessable.  (Errorcode 7217)#
    #1.5#0023AEFCB3200014000000020000028800047DAECCFAA3AE#1264089623597#com.sapportals.trex.tns.TNSClient##com.sapportals.trex.tns.TNSClient#######SAPEngine_System_Thread[impl:5]_34##0#0#Error##Plain###verifyNameServerAddress: NameServer = tcpip://<nameserverhost>:<nameserverport> caught exception: java.net.MalformedURLException: For input string: "<nameserverport>"#
    #1.5#0023AEFCB3200014000000030000028800047DAECCFAA48A#1264089623612#com.sapportals.trex.tns.TNSClient##com.sapportals.trex.tns.TNSClient#######SAPEngine_System_Thread[impl:5]_34##0#0#Error##Plain###Invalid Entry for nameserver: tcpip://<nameserverhost>:<nameserverport> caught Exception: com.sapportals.trex.TrexException: TREX Name Server (including back-up servers) is down or not accessable.  (Errorcode 7217)#
    #1.5#0023AEFCB3200015000000000000028800047DAECDDEEF82#1264089638566#System.err##System.err####n/a##1e36f46006a611dfa01a0023aefcb320#Thread[Thread-64,5,SAPEngine_System_Thread[impl:5]_Group]##0#0#Error##Plain###com.sap.security.core.server.userstore.UserstoreException: Could not get user dfrench
                    at com.sap.security.core.server.userstore.UserContextUME.engineGetUserInfo(UserContextUME.java:198)
                    at com.sap.engine.services.security.userstore.context.UserContext.getUserInfo(UserContext.java:102)
                    at com.sap.engine.services.security.server.AuthorizationContextImpl.getUserFromRole(AuthorizatiMessage: Error: java.lang.NullPointerException
    Stack trace: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error: java.lang.NullPointerException
                    at com.sap.ip.bi.portalrfc.dispatcher.services.BIServicesRfcDispatcherService.doHandleRequest(BIServicesRfcDispatcherService.java:277)

  • Java.lang.NullPointerException in 8.1 with soap doc literal binding

    hi,
    scenario:
    1) web service with soap doc literal binding on external server. web service
    is expecting a complex input argument
    2) generate web service control in weblogic 8.1 (sp1) workshop
    3) wrote jws file to use the web service control
    4) run test and hit the following call stack
    NOTE: this is only encountered when the web service is expecting a complex input
    argument. if the web service is expecting a simple input argument, it works fine
    java.lang.NullPointerException at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:90)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:337) at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307) at
    com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349) at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307) at
    com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349) at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
    at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
    at com.bea.wlw.runtime.jws.call.SoapCall.<init>(SoapCall.java:150) at com.bea.wlw.runtime.jws.call.SoapHttpCall.<init>(SoapHttpCall.java:61)
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:559)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420) at
    com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393) at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
    at $Proxy8.DocLitQueryByExample(Unknown Source) at doc_lit_bs.bs_doc_litControlTest.DocLitQueryByExample(bs_doc_litControlTest.jws:31)
    is there a workaround to the problem?

    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=4270
    Bolei wrote:
    >
    hi,
    scenario:
    1) web service with soap doc literal binding on external server. web service
    is expecting a complex input argument
    2) generate web service control in weblogic 8.1 (sp1) workshop
    3) wrote jws file to use the web service control
    4) run test and hit the following call stack
    NOTE: this is only encountered when the web service is expecting a complex input
    argument. if the web service is expecting a simple input argument, it works fine
    java.lang.NullPointerException at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:90)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:337) at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307) at
    com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349) at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307) at
    com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349) at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
    at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
    at com.bea.wlw.runtime.jws.call.SoapCall.<init>(SoapCall.java:150) at com.bea.wlw.runtime.jws.call.SoapHttpCall.<init>(SoapHttpCall.java:61)
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:559)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420) at
    com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393) at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
    at $Proxy8.DocLitQueryByExample(Unknown Source) at doc_lit_bs.bs_doc_litControlTest.DocLitQueryByExample(bs_doc_litControlTest.jws:31)
    is there a workaround to the problem?

  • SOAP to IDOC scenario:  java.lang.NullPointerException

    Our trading partners currently post their xml files directly to our Integration Engine, where they are converted to idocs and posted to ECC.  I am now trying to change this scenario to a SOAP to IDoc scenario so that we can process the files through the Adapter Engine using HTTPS.  But I am running into an error when trying to post an xml file and I'm wondering what I am missing.
    My SOAP communication channel is configured as follows:
    Transport protocol:  HTTP
    Message protocol:  SOAP 1.1
    Adapter engine:  Integration Server
    HTTP Security Level:  HTTP
    Do Not Use Soap Envelope:  *Checked*
    Default interface and namespace have been specified
    QoS:  Exactly Once
    If I post an xml file to this channel using the RWB test tool, I receive message java.lang.NullPointerException.  However, I can find the message via the Message Monitoring in the RWB, with versions for both the AE and IE, each with status Successful.  The idoc is created and successfully posted to ECC.
    If I post this same file to the same URL using a third-party tool, I get the same error message along with more details (listed below).  Futhermore, a message does *not* show up in the RWB and thus does not get converted to an idoc and posted to ECC.
    Any ideas???  Thank you.
      <?xml version="1.0" ?>
    - <!--  see the documentation
      -->
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    - <SOAP:Body>
    - <SOAP:Fault>
      <faultcode>SOAP:Server</faultcode>
      <faultstring>Server Error</faultstring>
    - <detail>
    - <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
      <context>XIAdapter</context>
      <code>ADAPTER.JAVA_EXCEPTION</code>
    - <text>
    - <![CDATA[
    java.lang.NullPointerException
         at com.sap.aii.messaging.net.MIMEInputSource.decodeContentType(MIMEInputSource.java:425)
         at com.sap.aii.messaging.net.MIMEInputSource.readBody(MIMEInputSource.java:323)
         at com.sap.aii.messaging.net.MIMEServletInputSource.parse(MIMEServletInputSource.java:58)
         at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:381)
         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: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)
      ]]>
      </text>
      </s:SystemError>
      </detail>
      </SOAP:Fault>
      </SOAP:Body>
      </SOAP:Envelope>

    Here's the message log found in End-to-End monitoring from RWB test post (different from third-party tool message):
    java.lang.NullPointerException
         at com.sap.plaf.frog.FrogScrollPaneUI$1.propertyChange(FrogScrollPaneUI.java:113)
         at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
         at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
         at java.awt.Component.firePropertyChange(Unknown Source)
         at javax.swing.JScrollPane.setHorizontalScrollBar(Unknown Source)
         at javax.swing.plaf.basic.BasicComboPopup.createScroller(Unknown Source)
         at javax.swing.plaf.basic.BasicComboPopup.<init>(Unknown Source)
         at com.sap.plaf.frog.FrogComboPopup.<init>(FrogComboPopup.java:21)
         at com.sap.plaf.frog.FrogComboBoxUI.createPopup(FrogComboBoxUI.java:410)
         at com.sap.plaf.frog.FrogComboBoxUI.installUI(FrogComboBoxUI.java:178)
         at javax.swing.JComponent.setUI(Unknown Source)
         at javax.swing.JComboBox.setUI(Unknown Source)
         at javax.swing.JComboBox.updateUI(Unknown Source)
         at javax.swing.JComboBox.init(Unknown Source)
         at javax.swing.JComboBox.<init>(Unknown Source)
         at com.sap.jnet.clib.JNcToolBar$ComboBox.<init>(JNcToolBar.java:64)
         at com.sap.jnet.clib.JNcToolBar.addComboBox(JNcToolBar.java:192)
         at com.sap.jnet.clib.JNcAppWindow.newUI(JNcAppWindow.java:607)
         at com.sap.jnet.clib.JNcAppWindow.newData(JNcAppWindow.java:1097)
         at com.sap.jnet.JNetData.createGraphFromDOM(JNetData.java:512)
         at com.sap.jnet.JNetData.load(JNetData.java:709)
         at com.sap.jnet.JNetApplet.initJNetApplet(JNetApplet.java:524)
         at com.sap.jnet.JNetApplet.access$000(JNetApplet.java:40)
         at com.sap.jnet.JNetApplet$1.run(JNetApplet.java:265)
         at java.awt.event.InvocationEvent.dispatch(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)

  • JAX-RPC + Bean = deserialization error: java.lang.NullPointerException

    I�m trying to use a bean as return type from a web service method, but I get an error:
    deserialization error: java.lang.NullPointerException
    this is the class consuming the web service
    package local.jws;
    import local.jws.remote.TestBeanIF;
    import local.jws.remote.TestBean;
    import java.io.*;
    import java.net.URL;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.namespace.QName;
    public class Client implements java.io.Serializable
         private TestBean tb;
         private String somestring;
         public Client()
              try
                   String wsURL = "http://localhost:8080/webservice/testbean?WSDL";
                   String nameSpaceURI = "http://local.jws/wsdl/MyTestBean";
                   String portName = "TestBeanIFPort";
                   String serviceName = "MyTestBean";
                   URL serviceURL = new URL( wsURL );
                   ServiceFactory serviceFactory = ServiceFactory.newInstance();
                   QName qServiceName = new QName( nameSpaceURI, serviceName );
                   Service ws = serviceFactory.createService( serviceURL, qServiceName );
                   QName qPortName = new QName( nameSpaceURI, portName );
                   TestBeanIF myTestBeanIF = (TestBeanIF)ws.getPort( qPortName, local.jws.remote.TestBeanIF.class );
                   somestring = myTestBeanIF.getString();
                   tb = myTestBeanIF.getTestBean( "hello bean" );
              catch( Exception ex )
         public TestBean getTb()
              return this.tb;
         public void setTb( TestBean tb )
              this.tb = tb;
         public String getSomestring()
              return this.somestring;
         public void setSomestring( String value )
              this.somestring = value;
    this is the bean:
    package local.jws.beans;
    public class TestBean implements java.io.Serializable
         private String test;
         public TestBean(){ }
         public String getTest()
              return test;
         public void setTest( String value )
              this.test = value;
    this is the interface implementation:
    package local.jws;
    import local.jws.beans.TestBean;
    public class TestBeanImpl implements TestBeanIF
         public TestBean getTestBean( String value )
              TestBean tb = new TestBean();
              tb.setTest( value );
              return tb;
         public String getString()
              return "some string";
    using the getString() method works fine but getTestBean() doesn�t;
    any clue on this?
    thanks

    Hi,
    I'm experiencing exactly the same problem as you ...
    The only fix I found is to use static invocation ... with static invocation, WSCompile generates a deserializer and everything works fine, no mure NullPointer exception ...
    With dynamic invocation as you are trying to manage here, I didn't find any way to tell the client to use the deserializer generated with wscompile ...
    Does anyone know how to do it ?
    Thanks,
    Olivier

  • Jax-ws 2.2.8 and ws-addressing: Client throwing java.lang.NullPointerException on receipt of HTTP 202 when using non-anonymous ReplyTo address

    Server: JBoss EAP 6.2.0
    Client: JDK 1.7.0_51 x64
    JAX-WS: RI 2.2.8 ( via -Djava.endorsed.dirs )
    I am getting a java.lang.NullPointerException when calling the operation on the WS endpoint from the client when using non-anonymous replyTo address.
    I have simplified the scenario into a small test case that hopefully others can replicate. Since the exception is happening on the client instead of the server, I would think that the container used is irrelevant, but I have specified it nonetheless.
    1) WebService:
    package test.webservice;
    import java.util.Random;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    import javax.xml.ws.soap.Addressing;
    @WebService(targetNamespace="http://services.nowhere.org/")
    @Addressing(required=true)
    @SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
    public class RandomTest {
        @WebMethod
        public long nextRandom(@WebParam boolean forceException) throws Exception {
            if( forceException ) {
                throw new Exception("Some exception");
            Random rand = new Random();
            return rand.nextLong();
    2) Generated WSDL by JBossEAP 6.2.2:
    <?xml version='1.0' encoding='UTF-8'?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://webservice.test/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="RandomTestService" targetNamespace="http://webservice.test/">
      <wsdl:types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://webservice.test/" elementFormDefault="unqualified" targetNamespace="http://webservice.test/" version="1.0">
      <xs:element name="nextRandom" type="tns:nextRandom"/>
      <xs:element name="nextRandomResponse" type="tns:nextRandomResponse"/>
      <xs:complexType name="nextRandom">
        <xs:sequence/>
      </xs:complexType>
      <xs:complexType name="nextRandomResponse">
        <xs:sequence>
          <xs:element name="return" type="xs:long"/>
        </xs:sequence>
      </xs:complexType>
    </xs:schema>
      </wsdl:types>
      <wsdl:message name="nextRandom">
        <wsdl:part element="tns:nextRandom" name="parameters">
        </wsdl:part>
      </wsdl:message>
      <wsdl:message name="nextRandomResponse">
        <wsdl:part element="tns:nextRandomResponse" name="parameters">
        </wsdl:part>
      </wsdl:message>
      <wsdl:portType name="RandomTest">
        <wsdl:operation name="nextRandom">
          <wsdl:input message="tns:nextRandom" name="nextRandom" wsam:Action="http://webservice.test/RandomTest/nextRandomRequest" wsaw:Action="http://webservice.test/RandomTest/nextRandomRequest">
        </wsdl:input>
          <wsdl:output message="tns:nextRandomResponse" name="nextRandomResponse" wsam:Action="http://webservice.test/RandomTest/nextRandomResponse" wsaw:Action="http://webservice.test/RandomTest/nextRandomResponse">
        </wsdl:output>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="RandomTestServiceSoapBinding" type="tns:RandomTest">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsaw:UsingAddressing wsdl:required="true"/>
        <wsp:PolicyReference URI="#RandomTestServiceSoapBinding_WSAM_Addressing_Policy"/>
        <wsdl:operation name="nextRandom">
          <soap:operation soapAction="" style="document"/>
          <wsdl:input name="nextRandom">
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output name="nextRandomResponse">
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="RandomTestService">
        <wsdl:port binding="tns:RandomTestServiceSoapBinding" name="RandomTestPort">
          <soap:address location="http://localhost:8080/servertest/RandomTest"/>
        </wsdl:port>
      </wsdl:service>
        <wsp:Policy xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="RandomTestServiceSoapBinding_WSAM_Addressing_Policy"><wsam:Addressing><wsp:Policy/></wsam:Addressing></wsp:Policy>
    </wsdl:definitions>
    3) ant build.xml to generate the client code from WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <project default="build" basedir="..">
        <property name="jaxws.classpath" location="C://jaxws-2.2.8/jaxws-ri/lib/*.jar"/>
        <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
               <classpath path="${jaxws.classpath}"/>
        </taskdef>
        <target name="build" >
            <!-- For these to work, the JAR files in tools/jaxws-ri must be included in Ant's classpath -->
            <wsimport wsdl="http://localhost:8080/servertest/RandomTest?wsdl"
                   verbose="true"
                   sourcedestdir="src"
                   destdir="bin"
                   keep="true">
                   <xjcarg value="-enableIntrospection"/>
            </wsimport>
        </target>
    </project>
    4) Client code
    4a) ClientTest.java - Actual client run from client
    package test.wsclient;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.Endpoint;
    import javax.xml.ws.handler.Handler;
    import javax.xml.ws.soap.AddressingFeature;
    import org.nowhere.services.RandomTest;
    import org.nowhere.services.RandomTestService;
    public class ClientTest {
        public static void main(String args[]) throws Exception {
            ClientTest app = new ClientTest();
            app.testAddressing();
        public void testAddressing() throws Exception {
            String REPLY_TO_ADDRESS = "http://localhost:8082/servertest/RandomCallback";
            String FAULT_TO_ADDRESS = "http://localhost:8082/servertest/RandomCallbackFault";
            RandomTestService service = new RandomTestService();
            RandomTest port = service.getRandomTestPort(new AddressingFeature());
            BindingProvider provider = (BindingProvider) port;
            // pass the replyTo address to the handler
            provider.getRequestContext().put("ReplyTo", REPLY_TO_ADDRESS);
            provider.getRequestContext().put("FaultTo", FAULT_TO_ADDRESS);
            // Register handlers to set the ReplyTo and FaultTo on the SOAP request sent to the WS endpoint
            List<Handler> handlerChain = new ArrayList<Handler>();
            handlerChain.add(new ClientHandler());
            provider.getBinding().setHandlerChain(handlerChain);
            // Start endpoint to receive callbacks from WS
            Endpoint endpoint = Endpoint.publish(REPLY_TO_ADDRESS, new CallbackSEI());
            try {
                port.nextRandom(false);
            } catch( Exception ex ) {
                ex.printStackTrace();
            } finally {
                Thread.sleep(10000);
            endpoint.stop();
            System.exit(0);
    4b) ClientHandler.java - Used to set the wsa ReplyTo address and FaultTo address when sending SOAP request from client to server
    package test.wsclient;
    import java.util.Set;
    import javax.xml.namespace.QName;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.ws.handler.MessageContext;
    import javax.xml.ws.handler.MessageContext.Scope;
    import javax.xml.ws.handler.soap.SOAPHandler;
    import javax.xml.ws.handler.soap.SOAPMessageContext;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class ClientHandler implements SOAPHandler<SOAPMessageContext> {
        public ClientHandler() {};
        @Override
        public Set<QName> getHeaders() {
            return null;
        @Override
        public void close(MessageContext arg0) {
        @Override
        public boolean handleFault(SOAPMessageContext context) {
            return true;
        protected void setAnAddress(SOAPHeader header, String tagName, String address) {
            NodeList nodeListReplyTo = header.getElementsByTagName(tagName);
            NodeList nodeListAddress = nodeListReplyTo.item(0).getChildNodes();
            for (int i = 0; i < nodeListAddress.getLength(); i++) {
                Node node = nodeListAddress.item(i);
                if ("Address".equals(node.getLocalName())) {
                    node.setTextContent(address);
                    break;
        protected String getMessageID(SOAPHeader header) {
            NodeList nodeListMessageId = header.getElementsByTagName("MessageID");
            return nodeListMessageId.item(0).getTextContent();
        @Override
        public boolean handleMessage(SOAPMessageContext context) {
            Boolean isOutbound = (Boolean) context.get(SOAPMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (isOutbound) {
                try {
                    SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
                    SOAPHeader header = envelope.getHeader();
                    /* extract the generated MessageID */
                    String messageID = getMessageID(header);
                    context.put("MessageID", messageID);
                    context.setScope("MessageID", Scope.APPLICATION);
                    /* change ReplyTo address */
                    setAnAddress(header, "ReplyTo", (String) context.get("ReplyTo"));
                    setAnAddress(header, "FaultTo", (String) context.get("FaultTo"));
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
            return true;
    4c) CallbackSEI.java - endpoint on the client for server to send the SOAP response back to the client
    package test.wsclient;
    import javax.annotation.Resource;
    import javax.jws.Oneway;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.xml.ws.Action;
    import javax.xml.ws.RequestWrapper;
    import javax.xml.ws.WebServiceContext;
    import javax.xml.ws.soap.Addressing;
    @WebService
    @Addressing
    //@HandlerChain(file = "/handler-chain.xml")
    public class CallbackSEI {
        @Resource
        private WebServiceContext context;
         * If there is no namespace specified in the method below, then the CallbackSEI needs to be in the same package as the
         * WS endpoint.
        @Oneway
        @Action(input="http://services.nowhere.org/RandomTest/nextRandomResponse")
        @RequestWrapper(localName="nextRandomResponse", targetNamespace="http://services.nowhere.org/")
        public void handleNotification(@WebParam(name="return")long random) {
            System.out.println("Asynch response received");
            System.out.println( random );
            //System.out.println("This response relates to the message ID: "+ getMessageID());
    In summary:
    Server is listening on port 8080
    Client will listen in port 8082 for the callback from the server for the SOAP response
    Now when I run the client, I see that the proper behaviour as far as ws-addressing is concerned. That is:
    client  -- SOAP request ( on port 8080 ) --> server
    client <-- HTTP 202 ( empty HTTP body )  --- server
    client <-- SOAP response ( on port 8082 )  --- server
    All well and good, except that I am getting a NullPointerException on the client side when I call the operation.
    With debugging of the SOAP request and responses, I get the following output:
    ---[HTTP request - http://localhost:8080/servertest/RandomTest]---
    Accept: text/xml, multipart/related
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "http://services.nowhere.org/RandomTest/nextRandomRequest"
    User-Agent: JAX-WS RI 2.2.8 svn-revision#13980
    <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8080/servertest/RandomTest</To><Action xmlns="http://www.w3.org/2005/08/addressing">http://services.nowhere.org/RandomTest/nextRandomRequest</Action><ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
        <Address>http://localhost:8082/servertest/RandomCallback</Address>
    </ReplyTo><FaultTo xmlns="http://www.w3.org/2005/08/addressing">
        <Address>http://localhost:8082/servertest/RandomCallbackFault</Address>
    </FaultTo><MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:bcd2f6ef-3034-49e8-b837-dbd6a772fb93</MessageID></S:Header><S:Body><ns2:nextRandom xmlns:ns2="http://services.nowhere.org/"><arg0>false</arg0></ns2:nextRandom></S:Body></S:Envelope>--------------------
    ---[HTTP response - http://localhost:8080/servertest/RandomTest - 202]---
    null: HTTP/1.1 202 Accepted
    Content-Length: 0
    Content-Type: text/xml;charset=UTF-8
    Date: Fri, 18 Jul 2014 08:34:36 GMT
    Server: Apache-Coyote/1.1
    java.lang.NullPointerException
        at com.sun.proxy.$Proxy38.nextRandom(Unknown Source)
        at test.wsclient.ClientTest.testAddressing(ClientTest.java:43)
        at test.wsclient.ClientTest.main(ClientTest.java:18)
    ---[HTTP request]---
    Cache-control: no-cache
    Host: localhost:8082
    Content-type: text/xml; charset=UTF-8
    Content-length: 704
    Connection: keep-alive
    Pragma: no-cache
    User-agent: Apache CXF 2.7.7.redhat-1
    Accept: */*
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action xmlns="http://www.w3.org/2005/08/addressing">http://services.nowhere.org/RandomTest/nextRandomResponse</Action><MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:65d8d7fc-09e4-494a-a9c5-0a01faf4d7e6</MessageID><To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8082/servertest/RandomCallback</To><RelatesTo xmlns="http://www.w3.org/2005/08/addressing">uuid:bcd2f6ef-3034-49e8-b837-dbd6a772fb93</RelatesTo></soap:Header><soap:Body><ns2:nextRandomResponse xmlns:ns2="http://services.nowhere.org/"><return>2870062781194370669</return></ns2:nextRandomResponse></soap:Body></soap:Envelope>--------------------
    Asynch response received
    2870062781194370669
    As you can see from the output above, the proxy is throwing an Exception when it receives the HTTP 202 response.
    Any ideas ?

    I think I have found when I get this error and probably I have found a bug. I will appreciate if someone can confirm this.
    In my BPEL project setup, my BPEL process's wsdl file imports another wsdl from different namespace. Here is sample snippet -
    <wsdl:definitions targetNamespace="http://namespace/1">
    <wsdl:import namespace="http://namespace/2" location="resources/another.wsdl"/>
    <plnk:partnerLinkType....../>
    </wsdl:definitions>
    Please let me know. I checked the bundled samples with Oracle BPEL PM and did not find any similar case where process wsdl imports another wsdl.
    Thank you.
    Meghana

  • Soa suite 12c fault policy invokeWS action enqueue action resolveAndrecover: error in fault resolution:java.lang.NullPointerException

    Hi,
    I'm trying to use the new fault actions in Oracle SOA Suite 12c (12.1.3.0) invokeWS and enqueue.
    I've done the following:
    fault-policies.xml
    <faultName name="custom:MyFault" xmlns:custom="http://xmlns.oracle.com/Application1/Dummy/WebServiceB"
               path="SOA\WSDLs\dummybpelprocess_client_ep.wsdl">
        <condition>
            <action ref="default-enqueue"/>
        </condition>
    </faultName>
    <Action id="default-ws">
        <invokeWS uri="http://host:7003/soa-infra/services/default/WebServiceHandler/webservicehandlerbpel_client_ep?WSDL|webservicehandlerbpel_client_ep|WebServiceHandlerBPEL_pt"/>
        <!-- format - <Absolute wsdl path>|service name|port name -->
    </Action>
    <Action id="default-enqueue">
        <!-- enqueue uri="eis/aq/aqjmsuserDataSource"/ -->
        <enqueue uri="jdbc:oracle:thin:@host:1521:orcl#user/userpassword#USERQUEUE" />
        <!-- QueueURI format  - jdbc:oracle:thin:@<host>:<port>:<sid>#<un>/<pw>#queue -->
    </Action>
    Webservice Handler (which is the webservice to be invoked by the faultpolicy) is constructed 1-way pattern, 1 operation, 1 port and using the following schema:
    <?xml version="1.0"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
            targetNamespace="http://xmlns.oracle.com/pcbpel/errorHandling"
            xmlns:tns="http://xmlns.oracle.com/pcbpel/errorHandling"
            elementFormDefault="qualified">
      <element name="RejectedMessage" type="tns:RejectedMessageType"/>
        <complexType name="RejectedMessageType">
            <sequence>
           <!-- base64 encoded strings" -->
              <element name="MessageHeader" type="string"/>
              <element name="MessagePayload" type="string"/>
              <element name="RejectionReason" type="string"/>
            </sequence>
          <attribute name="RejectionId" type="string"/>
        </complexType>
    </schema>
    The scenario is the following:
    Webservice A invokes WebService B
    Webservice B has defined a BusinessFault
    Webservice A has defined faultbindings using the faulpolicies from the previous snippet, for the reference of WebserviceB
    The BusinessFault is thrown by WebServiceB
    The fault policy is not able to neither enque or call the webservce to handle the businessexception
    A NullPointerException is shown in the logs
    The error is also present if enqueue os invokeWS are used in retryFailureAction of a retry action
    The error is only present for enqueue or invokeWS actions (I didn't try fileAction)
    Traditional actions (such as retry, humanintervention, temrinate) are working properly for businessfaults
    The error in logs is the following:
    Message
    resolveAndrecover: error in fault resolution:java.lang.NullPointerException
    Supplemental Detail
    at com.collaxa.cube.engine.fp.BPELRecoverFault.recoverFault(BPELRecoverFault.java:102)
    at oracle.fabric.CubeServiceEngine.recoverFault(CubeServiceEngine.java:2195)
    at oracle.integration.platform.faultpolicy.RecoverFault.recoverAndChain(RecoverFault.java:497)
    at oracle.integration.platform.faultpolicy.RecoverFault.resolveAndRecover(RecoverFault.java:337)
    at oracle.integration.platform.faultpolicy.FaultRecoveryManagerImpl.resolveAndRecover(FaultRecoveryManagerImpl.java:372)
      at oracle.soa.tracking.fabric.service.se.ServiceEngineFaultRecoveryServiceImpl.recoverFault(ServiceEngineFaultRecoveryServiceImpl.java:116)
      at oracle.soa.tracking.fabric.service.se.CubeServiceEngineAuditServiceImpl.recoverFault(CubeServiceEngineAuditServiceImpl.java:502)
    at com.collaxa.cube.engine.ext.common.FaultPolicyHandler.resolveAndRecover(FaultPolicyHandler.java:115)
    at com.collaxa.cube.engine.ext.common.InvokeHandler.handleException(InvokeHandler.java:715)
    at com.collaxa.cube.engine.ext.common.InvokeHandler.__callback(InvokeHandler.java:784)
    at com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalInvoke(InvokeHandler.java:657)
    at com.collaxa.cube.engine.ext.common.InvokeHandler.handle(InvokeHandler.java:143)
    at com.collaxa.cube.engine.ext.common.InvokeHandler.expire(InvokeHandler.java:1371)
    at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.expire(BPELInvokeWMP.java:62)
    at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:3358)
    at com.collaxa.cube.engine.CubeEngine._expireActivity(CubeEngine.java:1621)
    at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:1557)
    at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:1478)
    at com.collaxa.cube.ejb.impl.CubeActivityManagerBean.expireActivity(CubeActivityManagerBean.java:115)
    at com.collaxa.cube.ejb.impl.CubeActivityManagerBean.expireActivity(CubeActivityManagerBean.java:72)
    at com.collaxa.cube.ejb.impl.bpel.BPELActivityManagerBean_8dvvts_ICubeActivityManagerLocalBeanImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:33)
      at com.collaxa.cube.ejb.impl.bpel.BPELActivityManagerBean_8dvvts_ICubeActivityManagerLocalBeanImpl.expireActivity(Unknown Source)
    at com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:58)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:153)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:132)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:90)
    at com.collaxa.cube.engine.dispatch.WMExecutor$W.run(WMExecutor.java:239)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
    I already made sure I had all the artifacts for the AQ queue:
    -database
    -table
    -queue
    -permissions
    Do you have the same problem?
    Are you able to use this new actions?
    Please advise
    Thanks in advance.
    P.S: Related documentation: http://docs.oracle.com/middleware/1213/soasuite/develop-soa/bpel-fault-handling.htm#CHDCIBDF

    Creating a SR to Oracle....

Maybe you are looking for