Null Pointer Exception in Plain J2SE Adapter Engine

Hi All,
I am able to start the J2SE Adapter Engine. But when ever i click any button on my JMS Adapter i am getting
Error stopping adapter: java.lang.NullPointerException
Error terminating adapter: java.lang.NullPointerException
Can somebody guide me why this error is comming or the possible reasons for the error.
Thanks in Advance.
rahul

Hi Rahul,
Please can you go through the thread
J2SE Adapter Engine / JMS Adapter
It does not talk about the error but the config need to be done for JMS. Hope this helps.
Regards
Vijaya

Similar Messages

  • Problem: Plain J2SE Adapter Engine

    Hello,
    I have installed the Plain J2SE Adapter Engine.
    On the Adpater Engine running a SOAP Adapter.
    When i try to test the Adapter i become following error Message:
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at com.sap.aii.messaging.net.ClientHttpImpl.call(ClientHttpImpl.java:146)
         at com.sap.aii.messaging.adapter.SinglePayloadClient.doPost(SinglePayloadClient.java:222)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.aii.messaging.adapter.Zone.service(ModuleGUIBrowserEngine.java:1073)
         at com.sap.aii.messaging.adapter.HTTPRequest.run(ModuleGUIBrowserEngine.java:371)
    any idea?
    Regards,
    Robin

    Hi Stefan,
    SOAP Adapter module settings:
    Bubble adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleBubble
    This adapter instantiates a bubble bag for supporting
    a xmb web service gateway. A bubble bag is a collection of Bubble
    instances that form some processing chain of message objects.
    Below parameter Bubble.Helper specifies the helper class that implements
    the ModuleBubbleHelper interface. This class is used to instantiate
    a bubble bag for this adapter.
    Sets the bubble module helper that can instantiate your bubble bag
    Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperXMBWSImpl
    #$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    Below this line are the parameters specific to the ModuleBubbleHelperXMBWSImpl
    #$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    The configuration of this helper class is divided in two parts. The first part
    specifies the adapter configuraton for Web-Service clients communicating with an
    XMB server. The second part specifies the configuration for XMB clients
    communicating with a WebService server. Either one or both parts can be configured
    in a single configuration file.
    Part 0 (FromWS and ToWS) : common part ######
    Keeps the XMB headers in web service messages
    XMBWS.KeepHeaders=true
    Keeps the attachments in web service messages
    XMBWS.KeepAttachments=false
    Encodes the xmb headers into a special HTTP header string x-xmb_ws_encoded
    XMBWS.UseEncoded=false
    Part 1 (FromWS) : WS clients to XMB server ######
    The target URL of XMB broker, to which the adapter sends XMB messages.
    XMB.TargetURL=http://netweaver:8000/sap/xi/engine?type=entry
    The port and path where the adapter waits for web service messages from clients.
    XMBWS.WSPort=4444
    XMBWS.WSPath=/soap/start
    The following XMB attributes are used to fill default XMB messages.
    XMB.SenderBusinessSystem=MOS_BS
    XMB.SenderInterfaceNamespace=ns:moskau
    XMB.SenderInterfaceName=MOSOut
    XMB.QualityOfService=BE
    now i have an other error message.
    com.sap.aii.messaging.net.TransportException: HTTP 500 Internal Server Error
    http-Response:
    content-type: text/xml
    content-length: 349
    content-id: <[email protected]>
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'><SOAP:Body><SOAP:Fault><faultcode>SOAP:Server</faultcode><faultstring>com.sap.aii.messaging.srt.BubbleException: Can't call the endpoint; Exception raised by com.sap.aii.messaging.net.TransportException: Content-Type not set</faultstring></SOAP:Fault></SOAP:Body></SOAP:Envelope>
         at com.sap.aii.messaging.net.ClientHttpImpl.call(ClientHttpImpl.java:337)
         at com.sap.aii.messaging.adapter.XMBTestClient.doPost(XMBTestClient.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.aii.messaging.adapter.Zone.service(ModuleGUIBrowserEngine.java:1073)
         at com.sap.aii.messaging.adapter.HTTPRequest.run(ModuleGUIBrowserEngine.java:371)

  • "Performance" problems with the File adapter on Plain J2SE Adapter Engine

    Hi,
    At the moment I'm on a customer side to solve some XI issues for a few days. One of the issues is the performance of the Plain J2SE Adapter Engine, using the file adapter to transfer XML messages(already XI message format) from the legacy system to the Integration Engine. The File adapter has to deal with "large" XML messages(max at the moment is 65 Mb) and the engine fails with the following error when transferring the big XML file: "ERROR: Finished sending to Integration Engine with error "java.lang.OutOfMemoryError". Skip confirmation and quit this loop".
    As far I got the information from the customer the memory use of the Plain adapter engine is set to 512Mb. This is maybe to low. But I don't know where to look for this, I only have the adapter web interface in front of me, no access to the OS it self via for example remote connection.
    On the Integration Engine I know there is the ability to split large message with the file adapter(File Content Conversion), but I don't know this for the Plain Adapter Engine. Is there a possibility to do this also on the Plain Adapter Engine?
    Thanks in advance for any input.
    Greetings,
    Patrick

    Hi Sameer,
    Thanks for your answers.
    On the first solution, yes that is possible, we first decided to see if the legacy system can do the splitting, before starting developing a Java program.
    On the second solution, as far as I know is this solution possible on the Integration Engine. But we are facing the problems on the Plain J2SE Adapter Engine. I went trough that documentation(link:
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/frameset.htm ), to look for I similiar solution in the Plain Adapter Engine. So my question is, is this possible with the Plain Adapter? And if so, what kind of parameters I need to use to achieve this.
    Regards,
    Patrick

  • Installation and then Configuration of Plain J2se Adapter Engine

    Hi All,
    Actually we want to use JMS Adapter for that we had installed Plain J2SE Adapter Engine but after installing and following the initial steps of Adapter.pdf we are not able to access the Adapter Engine through URL.We are using the URL http://<hostname>:8200/MessagingSystem/receive/AFW/XI
    this URL is there in our SLD but we are not able to access the page.
    So Please can somebody help me to resolve this issue.
    Thanks & Regards
    Sathya

    Hi Amol,
    I am trying to send read data from MQSeries using JMS adapter. We are successful in opening the Adapter Engine  and the GUI. We have cofigured the adpter as follows. But when we try to restart the adapter to get the changes get saved we are getting the following error
    <b>"ERROR CALLING THE RESTART ADAPTER"</b>
    Also status is shown is yellow and version is shown as not set.
    Where ever I have changed the configuration data I have shown it in bold
    JMS-Adapter Configurarion
    This Configuration is a sample for a JMS sender channel (inbound, sends to XI IS)
    Set XI message protocol version. This sample is designed for XI 3.0
    version=30
    JMS message receiver class
    classname=com.sap.aii.messaging.adapter.ModuleJMS2Transport
    set if a transacted JMS Session should be used (default: true)
    #JMSSession.sessionTransacted=false
    set delay in milliseconds before processing next message after an error (default: 0)
    errorDelay=10000
    #set delay in milliseconds before trying to reestablish the JMS Connection after a connection error (default: -1 (do not try to reconnect))
    #reconnectDelay=10000
    set the Message Formats you want to process (Formats only needed if they can not be evaluated at runtime)
    TransportMessage Type can be set to TransportMessage of XMBMessage. It is used for sending and receiving Transport and XMBMessages
    #TransportMessage.type=TransportMessage
    TransportMessage.type=XMBMessage
    uncomment and adjust parameters for Transformation Type (Binding of JMS-Transport Message),
    insert your class here for an individual binding between JMS and Transport Message
    uncomment the following line for using Bindings that belong to Tunneling
    #transformClass=com.sap.aii.messaging.adapter.trans.JMSTunneling
    uncomment the following line for using Bindings that belong to Single Payload Binding
    transformClass=com.sap.aii.messaging.adapter.trans.JMSSinglePayloadBinding
    ID Garbage Collector: For EO(IO) handling XI adapters store the JMS/XI message ID's in the ID logger
    Uncomment the following lines and change the default values if you recognized "out of memory" problems due to
    very large ..\tech_adapter\Data\*_ID.dat files which will be kept in the memory as well
    eoExpirationAfterDays is the period of keeping the message ID in days. Afterwards the message ID might be used again
    garbageCollectorInterval is the period in milliseconds when the ID garbage collector is started. It will however only
    be started if messages are exchanged otherwise ID logs won't be created anyway
    eoExpirationAfterDays=365
    garbageCollectorInterval=86400000
    <b>#
    the following parameters are used in some Bindings that belong to Single Payload Binding needing XMBHeader Information
    uncomment and adjust parameters according your requirements. Please note, that the party identfier needs not to be
    configured in case of A2A scenarios.
    #XI.SenderParty=Sender
    XI.SenderService=MQSeries
    #XI.ReceiverParty=Receiver
    XI.ReceiverService=MTX
    XI.InterfaceNamespace=http://xitest
    XI.Interface=MI_Out_File
    XI.TraceLevel=1
    XI.LoggingLevel=1
    XI.QualityOfService=EO
    XI.QueueId=ABCD
    XI.ContentType=text/xml
    #</b> *************************************************************************************************************
    <b>#
    URL of XI IS to send the messages to
    XI.TargetURL=http://bwxi:50000/sap/xi/engine?type=entry
    XI.User=XIAF
    XI.Password=XIPASS
    #</b> *************************************************************************************************************
    URL of file adapter if a loopback JMS to File should be configured
    XI.TargetURL=//localhost:8210/file/receiver
    <b># uncomment the following settings if needed (independent on JMS provider)
    JMS.QueueConnectionFactoryImpl.user=xisuper
    JMS.QueueConnectionFactoryImpl.password=xxx
    #</b>
    uncomment and adjust parameters for loading JMS administrated objects via JNDI
    uncomment and adjust parameters if not the default context should be used
    #JNDI.InitialContext.property.1=java.lang.String {javax.naming.Context.INITIAL_CONTEXT_FACTORY}, java.lang.String com.sap.engine.services.jndi.InitialContextFactoryImpl
    #JNDI.InitialContext.property.2=java.lang.String {javax.naming.Context.PROVIDER_URL}, java.lang.String localhost:50004
    #JNDI.InitialContext.property.3=java.lang.String {javax.naming.Context.SECURITY_PRINCIPAL}, java.lang.String Administrator
    #JNDI.InitialContext.property.4=java.lang.String {javax.naming.Context.SECURITY_CREDENTIALS}, java.lang.String sap
    set the Lookup Names
    #JMS.JNDILookupNameQueueConnectionFactory=jmsfactory/default/joetest
    #JMS.JNDILookupNameQueue=jmsQueues/default/sapDemoQueue
    uncomment and adjust parameters for loading JMS administrated objects from filesystem ***
    #JMS.FileNameQueueConnectionFactory=SAPQueueConnectionFactory.ser
    #JMS.FileNameQueue=SAPQueue.ser
    uncomment and adjust parameters for creating SonicMQ JMS administrated objects ***
    JMS.QueueConnectionFactoryImpl.classname=progress.message.jclient.QueueConnectionFactory
    JMS.QueueConnectionFactoryImpl.constructor=java.lang.String localhost:2506
    JMS.QueueImpl.classname= progress.message.jclient.Queue
    JMS.QueueImpl.constructor=java.lang.String SampleQ1
    <b># uncomment and adjust parameters for creating MQSeries JMS administrated objects ***
    JMS.QueueConnectionFactoryImpl.classname=com.ibm.mq.jms.MQQueueConnectionFactory
    JMS.QueueConnectionFactoryImpl.method.setHostName=java.lang.String BWXI
    JMS.QueueConnectionFactoryImpl.method.setChannel=java.lang.String JAVA.CHANNEL
    JMS.QueueConnectionFactoryImpl.method.setTransportType=java.lang.Integer {com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP}
    JMS.QueueConnectionFactoryImpl.method.setQueueManager=java.lang.String QM_BWXI
    JMS.QueueImpl.classname= com.ibm.mq.jms.MQQueue
    JMS.QueueImpl.constructor=java.lang.String postcard
    JMS.QueueImpl.method.setTargetClient=java.lang.Integer {com.ibm.mq.jms.JMSC.MQJMS_CLIENT_NONJMS_MQ}
    #</b> *************************************************************************************************************
    uncomment and adjust parameters for using a dispatcher ***
    #Dispatcher.class=com.sap.aii.messaging.adapter.ConversionDispatcher
    #Dispatcher.namespace=namespace1
    #namespace1.ConversionDispatcher.logPayload=true
    #namespace1.Service.1=Plain2XMLService
    #namespace1.Plain2XMLService.class=com.sap.aii.messaging.adapter.Conversion
    #namespace1.Plain2XMLService.xml.conversionType=SimplePlain2XML
    #namespace1.Plain2XMLService.xml.processFieldNames=fromConfiguration
    #namespace1.Plain2XMLService.xml.fieldNames=a,b,c
    #namespace1.Plain2XMLService.xml.fieldSeparator=;
    #namespace1.Service.2=XSLTService
    #namespace1.XSLTService.class=com.sap.aii.messaging.adapter.XSLTConversion
    #namespace1.XSLTService.XSLTConversion.XSLTFileName=Data/DemoConversion.xsl
    Can you please help me in resolving the error.
    Regards,

  • Shutdown of XI 3.0 Plain J2SE Adapter Engine.

    How do I shutdown the XI 3.0 Plain J2SE Adapter Engine? Where should I go to do this?
    Regards,
    N.S

    Hi N.S. -
    If I recall correctly, you open a browser to http://<host>:8200 .   8200 is the default port.  If not using the default port, you may need to investigate what that port is.  Delivered initial user/pwd is sap/init.
    There's a Shutdown Adapter Engine option once you get in.  Of course, the j2se adapter engine must be running in order for you to do this.
    Regards,
    Jin

  • Plain J2SE Adapter Engine - SOAP Adapter

    Which reasons are there for using the soap adapter at the plain j2se adapter engine instead of the soap adapter at the central adapter engine (XI 3.0)? Which benefits are there? Which cases are known?

    The J2SE adapter is a relict from XI 2.0
    You may still use it, especially for migration from XI 2.0 to XI 3.0, but it is recommended to use the J2EE adapter engine.
    Regards
    Stefan

  • Unable to start the plain J2SE Adapter Engine

    Hi All,
          Eariler i was able to start the Adapter Engine. But i dont know what went wrong, i am not able to start the adapter engine.Is there any way to find out what went wrong?
    Regards
    Sathya
    Message was edited by: Sathya Priya

    Make sure you have write permissions to your log files and that you have permissions to start the Engine.
    Also check your JAVA_HOME path by typing set in windows and env in unix systems.Make sure it points to your java installation directory lib and bin files.
    Your ADAPTER_HOME should also contain all jars required or the absolute path to these jars need to be defined in your run_adapter_*. Not to sure if you are running windows or a unix box.
    Regards
    Robert

  • Plain J2SE Adapter Engine

    Sap Guru's
    I'm trying to configure an adapter to recieve text files out of a specified directory and integrate and convert them into a single xml file, with no further processing.
    I get the following log:
    Mon Oct 24 01:02:22 GMT-08:00 2005 *****
    01:02:22 (4012): "Guaranteed Delivery" operation for 2 file(s) pending
    01:02:22 (4023): File adapter initialized successfully
    01:02:22 (4007): File adapter started
    01:02:22 (4051): Process 1 file(s):
    01:02:22 : c:\XItext\myfile.txt
    01:02:22 (4052): Start processing "TXT" file "c:\XItext\myfile.txt" size 38 in "EO mode
    01:02:22 (4062): Sending text message "6b29c560-446b-11da-be97-e3950a0a0222" type "application/xml" to Integration Engine... (message size: 38 bytes, URL: "http://cic040.cice.cic.ae:50000/sap/xi/engine?sap-client=000")
    01:02:23 (4076): ERROR: Finished sending to Integration Engine with error "java.net.ConnectException: Connection refused: connect". Skip confirmation and quit this loop
    01:02:23 (4064): File adapter processing complete
    My target url is XI.TargetURL=http://cic040.cice.cic.ae:50000/sap/xi/engine?sap-client=000 ....
    i have activated the adapter_plain in SICF..
    Is this because i need to configure the adapter_plain and/or a pipleine URL and if so how do I configure them and check they're fine????

    Dear Hans;
    Thanks for you're help i changed the port to 8000 but i got a different error...
    07:00:19 (4076): ERROR: Finished sending to Integration Engine with error "com.sap.aii.messaging.net.TransportException: HTTP 500 Pipeline specified in URL attribute (type) not existing
    http-Response:
    set-cookie: sap-usercontext=sap-client=000; path=/
    content-type: text/xml
    content-length: 985
    content-id: <[email protected]>
    soapaction: 'http://sap.com/xi/XI/Message/30'
    server: SAP Web Application Server (1.0;640)
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Header>
    </SOAP:Header>
    <SOAP:Body>
    <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>SOAP:Client</faultcode><faultstring>Pipeline specified in URL attribute (type) not existing</faultstring><faultactor>http://sap.com/xi/XI/Message/30</faultactor><detail><SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIProtocol</SAP:Category><SAP:Code area="MESSAGE">URL_PIPELINE_NOT_FOUND</SAP:Code><SAP:P1>/sap/xi/engine?sap-client=000</SAP:P1><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText/><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack>Pipeline ID  which is expected as value of attribute &quot;type&quot; in the URL, does not exist in the Integration Engine (URL = /sap/xi/engine?sap-client=000)
    </SAP:Stack></SAP:Error></detail></SOAP:Fault>
    </SOAP:Body>
    </SOAP:Envelope>
    ". Skip confirmation and quit this loop
    07:00:19 (4064): File adapter processing complete
    I went to transaction SXMB_ADM but i can't seem to find a way to configure the pipeline id...
    Also when i try to check the integration engine configuration the system tells me that its not configured yet....
    2 Questions:
    1. Do i need to configure the integration engine as im not using it for any kind of processing?
    2. Given the error in the above log is it a pipeline configuration error and how do i solve it???
    Thanks alot for youre help

  • Null Pointer Exception when invoking Database Adapter

    The error reads as follows
    <2008-06-27 11:34:02,558> <ERROR> <p1.collaxa.cube.ws> <AdapterFramework::Outbound>
    file:/u01/app/oracle/product/10.1.3/as_mid_2/bpel/domains/p1/tmp/.bpel_UpdateA_8.2_8821b67fbd12f5dd2a0d57af136ec99e.tmp/InsertA.wsdl
    [ InsertAHis_ptt::insert(AHisCollection) ] - Could not invoke operation 'insert' against the 'Database Adapter' due to:
    java.lang.NullPointerException
    NB Just about the same process (minor differences in the payload) was launched at just about the same time, but that one did not cause an error.
    The error happened two days after a release. It was the first invocation of the service
    after that release. This may or may not have something to do with this error.
    There was no database shutdown, only a restart of the application server
    We cannot reproduce the error; this means that we don't have an extended log with more information on the error.
    Do you have more information on errors like this one?
    Thanx
    Lebbol

    Hi,
    To use the ServiceControl you need to be in a container that supports controls. This is what will instantiate your control for you, and take care of the some of the services controls require.
    So to use the ServiceControl you'll need to invoke it from another web service, a page flow, or another control.
    If you need to invoke from a standard main program, one option would be to use a standard WLS JAX-RPC client. This can be generated with their <clientgen> ant task.
    Hope this helps.
    -Chris

  • Registering Plain J2SE adapter in IS

    Hi,
    I've been trying to use plain J2SE file adapter as receiver with no luck.
    I've installed plain J2SE adapter on a windows 2000 server called <b>tgrpser1</b>, and XI is on another Windows 2000 server <b>tgrpserxi</b>.
    SLDAccessor service is started with no error in  <b>tgrpser1</b>.
    When go to the SLD, the adapter engine shows up in the XI technical system but when I go to the Integration Directory to configure a file adapter as receiver for <b>tgrpser1</b>, the <b>Adapter Engine</b> has one value <b>Integration Server</b>.
    Please help...
    Thanks

    I think I should it put this way.
    I have a plain J2SE adapter engine running on <b>tgrpser1</b> (it is not an FTP server), I've copied the <b>file_receiver</b> adapter to <b>rec_File_adapter</b>.
    If the scenario is RFC -> XI -> File (on <b>tgrpser1</b>), how can I specify the <b>rec_File_adapter</b> in Integration Directory.
    If I am not correct, what is the use of plain J2SE adapter engine <b>file_receiver</b> ?
    Thanks

  • PLAIN J2SE ADAPTER

    WHY PLAIN J2SE ADAPTER ENGINE IS SEPARATELY MAINTAINED FROM AN ADAPTER ENGINE?

    Hi,
    The Plain J2SE Adapter helps you to exchange messages with partners or even inside your own company to communicate to home grown systems it was the PCK of XI 2.0 and is mantained separately because in the Adapter Engine you have all the adapters you need and for partners that does not have XI or custum systems that does not have a way of comunication you use the Plain J2SE this is why is mantained separately becuase you use it to exchange messages with Adapter engine that runs in XI.
    It is recomended by SAP to use the PCK (Parner Connectivity Kit)

  • J2SE Adapter Engine / JMS Adapter

    We need to connect to MQ Series 5.3 (Websphere MQ) from the XI (3.0 SP16) box.
    1)Is J2SE adapter engine needs to be enabled/configured in order to use JMS Adapter? Cant we use J2EE JMSAdapter instead of J2SE JMS Adapter?
    2) Where can I download the JMS Adapter libraries, for installation?
    Ours is unix-based installation.
    I have gone thru the thread
    Installation and then Configuration of Plain J2se Adapter Engine
    and the SAP Note: 747601 that talks about J2EE JMSAdapter MQSeries libraries.
    TIA,
    Steve

    Hi Steve,
    Check these ~
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/03fd85cc-0201-0010-8ca4-a32a119a582d
    J2Se adapter
    Installation and then Configuration of Plain J2se Adapter Engine
    Hope this helps,
    Regards,
    Moorthy

  • Null Pointer Exception in Bursting Engine

    Hi, I am trying the example given in XDO 5.6.2. but i am getting null pointer exception. Any help appreciated.
    1. burstCtrl.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <DATA>
    <DEPTS>
    <DEPT>
    <DEPTNO>20</DEPTNO>
    <NAME>Accounting</NAME>
    <MANAGER_EMAIL>[email protected]</MANAGER_EMAIL>
    <EMPLOYEES>
    <EMPLOYEE>
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>1980-12-17T00:00:00.000-08:00</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    <EMAIL>[email protected]</EMAIL>
    </EMPLOYEE>
    <EMPLOYEE>
    <EMPNO>7566</EMPNO>
    <ENAME>JONES</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>1981-04-02T00:00:00.000-08:00</HIREDATE>
    <SAL>2975</SAL>
    <DEPTNO>20</DEPTNO>
    <EMAIL>[email protected]</EMAIL>
    </EMPLOYEE>
    </EMPLOYEES>
    </DEPT>
    <DEPT>
    <DEPTNO>30</DEPTNO>
    <NAME>Sales</NAME>
    <MANAGER_EMAIL>[email protected]</MANAGER_EMAIL>
    <EMPLOYEES>
    <EMPLOYEE>
    <EMPNO>7788</EMPNO>
    <ENAME>SCOTT</ENAME>
    <JOB>ANALYST</JOB>
    <MGR>7566</MGR>
    <HIREDATE>1982-12-09T00:00:00.000-08:00</HIREDATE>
    <SAL>3000</SAL>
    <DEPTNO>20</DEPTNO>
    <EMAIL>[email protected]</EMAIL>
    </EMPLOYEE>
    <EMPLOYEE>
    <EMPNO>7876</EMPNO>
    <ENAME>ADAMS</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7788</MGR>
    <HIREDATE>1983-01-12T00:00:00.000-08:00</HIREDATE>
    <SAL>1100</SAL>
    <EMAIL>[email protected]</EMAIL>
    </EMPLOYEE>
    </EMPLOYEES>
    </DEPT>
    </DEPTS>
    </DATA>
    2. empData.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
    <xapi:request
    select="/DATA/DEPTS/DEPT/EMPLOYEES/EMPLOYEE">
    <! - Burst on Customer element - >
    <xapi:delivery>
    <xapi:email server="xxx.server.com" port="25" from="[email protected]" reply-to=
    "">
    <xapi:message id="123" to="${EMAIL}"
    cc="[email protected]" attachment="true"
    subject="CustomerDetails">Please find the customer invoice as a attachment
    (Through Application).
    <! - Set the id for the delivery method - >
    <! - Use the Customer EMAIL element to email the document to the Customer - >
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="123">
    <!Specify the delivery method id to be used - >
    <xapi:template type="rtf"
    location="/home/lkkumar/Dept.rtf" />
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    3. BurstingTest.java
    import oracle.apps.xdo.batch.DocumentProcessor;
    import oracle.apps.xdo.batch.*;
    import oracle.apps.xdo.batch.object.*;
    import oracle.apps.xdo.delivery.*;
    import oracle.apps.xdo.delivery.smtp.*;
    import oracle.apps.xdo.*;
    import oracle.apps.xdo.oa.util.*;
    import java.util.*;
    import java.io.*;
    import java.io.InputStream;
    import oracle.apps.fnd.cp.request.*;
    public class BurstingTest
    public BurstingTest()
    try {
    DocumentProcessor dp = new DocumentProcessor
    ("/home/lkkumar/burstCtrl.xml","/home/lkkumar/empData.xml","/home/lkkumar");
    dp.process();
    } catch (Exception ex) {
              System.out.println(ex);
    ex.printStackTrace();
    } finally {
    public static void main(String[] args)
    BurstingTest burst1 = new BurstingTest();
    The program compiles fine. but when i execute it gives null pointer exception.
    (lkkumar) lkkumar- java BurstingTest
    java.lang.NullPointerException
    java.lang.NullPointerException
    at oracle.apps.xdo.batch.BurstingProcessorEngine.process(BurstingProcessorEngine.java:1313)
    at oracle.apps.xdo.batch.DocumentProcessor.process(DocumentProcessor.java:213)
    at BurstingTest.<init>(BurstingTest.java:19)
    at BurstingTest.main(BurstingTest.java:30)
    Message was edited by:
    user609950

    Any idea , why it failed ?
    were you able to resolve ??
    where did you deploy this java file ?
    how did you run this file ?

  • JAX-WS Client throws NULL Pointer Exception in NW 7.1 SP3 and higher

    All,
    My JAX-WS client is throwing an exception when attempting to create a client to connect to the calculation service. The exception is coming out of the core JAX-WS classes that are part of NetWeaver. (see exception below)
    Caused by: java.lang.NullPointerException
         at com.sap.engine.services.webservices.espbase.client.jaxws.core.SAPServiceDelegate.createDispatchContextExistingPort(SAPServiceDelegate.java:440)
         at com.sap.engine.services.webservices.espbase.client.jaxws.core.SAPServiceDelegate.createDispatchContext(SAPServiceDelegate.java:475)
         at com.sap.engine.services.webservices.espbase.client.jaxws.core.SAPServiceDelegate.createDispatch(SAPServiceDelegate.java:492)
         at com.sap.engine.services.webservices.espbase.client.jaxws.core.SAPServiceDelegate.createDispatch(SAPServiceDelegate.java:484)
         at javax.xml.ws.Service.createDispatch(Service.java:166)
    I have done some research and it appears that as of NetWeaver 7.1 SP3 SAP stopped using the SUN JAX-WS runtime and implemented their own SAP JAX-WS runtime. I also took the time to decompile the jar file that contained the SAPServiceDelegate class which is throwing the null pointer exception. (see method from SAPServiceDelegate below)
        private ClientConfigurationContext createDispatchContextExistingPort(QName portName, JAXBContext jaxbContext)
            BindingData bindingData;
            InterfaceMapping interfaceMap;
            InterfaceData interfaceData;
            bindingData = clientServiceCtx.getServiceData().getBindingData(portName);
            if(bindingData == null)
                throw new WebServiceException((new StringBuilder()).append("Binding data '").append(portName.toString()).append("' is missing!").toString());
            QName bindingQName = new QName(bindingData.getBindingNamespace(), bindingData.getBindingName());
            interfaceMap = getInterfaceMapping(bindingQName, clientServiceCtx);
            interfaceData = getInterfaceData(interfaceMap.getPortType());
            ClientConfigurationContext result = DynamicServiceImpl.createClientConfiguration(bindingData, interfaceData, interfaceMap, null, jaxbContext, getClass().getClassLoader(), clientServiceCtx, new SOAPTransportBinding(), false, 1);
            return result;
            WebserviceClientException x;
            x;
            throw new WebServiceException(x);
    The exception is being throw on the line where the interfaceMap.getPortType() is being passed into the getInterfaceData method. I checked the getInterfaceMapping method which returns the interfaceMap (line above the line throwing the exception). This method returns NULL if an interface cannot be found. (see getInterfaceMapping method  below)
       public static InterfaceMapping getInterfaceMapping(QName bindingQName, ClientServiceContext context)
            InterfaceMapping interfaces[] = context.getMappingRules().getInterface();
            for(int i = 0; i < interfaces.length; i++)
                if(bindingQName.equals(interfaces<i>.getBindingQName()))
                    return interfaces<i>;
            return null;
    What appears to be happening is that the getInterfaceMapping method returns NULL then the next line in the createDispatchContextExistingPort method attempts to call the getPortType() method on a NULL and throws the Null Pointer Exception.
    I have included the code we use to create a client below. It works fine on all the platforms we support with the exception of NetWeaver 7.1 SP3 and higher (I already checked SP5 as well)
          //Create URL for service WSDL
          URL serviceURL = new URL(null, wsEndpointWSDL);
          //create service qname
          QName serviceQName = new QName(targetNamespace, "WSService");
          //create port qname
          QName portQName = new QName(targetNamespace, "WSPortName");
          //create service
          Service service = Service.create(serviceURL, serviceQName);
          //create dispatch on port
          serviceDispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD);
    What do I need to change in order to create a JAX-WS dispatch client on top of the SAP JAX-WS runtime?

    Hi Guys,
    I am getting the same error. Any resolution or updates on this.
    Were you able to fix this error.
    Thanks,
    Yomesh

  • J2RE + Windows + J2SE Adapter Engine = Dump Xmx128m

    Hi,
    I want to use a decentralized J2SE Adapter Engine in order to data to XI.
    When I install it on a Windows 2000 Professional, AE running is good and all are perfect... But when I install it on a Windows Server 2003, I have the following dump when I use the file "run_adapter.bat":
    "-Xmx128m: illegal argument"
    Here is the instruction when my tool uses for its running :
    java -Xmx128m -classpath aii_msg_adapter.jar;aii_msg_runtime.jar;httpclient.jar;aii_af_trace.jar;aii_rfcadapter.jar;pmi.jar;exception.jar;jperflib.jar;guidgenerator.jar;aii_utilxi_misc.jar;aii_util_cimaccess.jar;sapxmltoolkit.jar;logging.jar;lcrclient.jar;tc_sec_core.jar;tc_sec_api.jar;jms.jar;servlet.jar;jarm.jar;%CLASSPATH%; com.sap.aii.messaging.adapter.AdapterImpl
    Notes:
    1. J2RE is j2re-1_4_2_06-windows-i586-p.exe)
    2. I have replace 128 by 256 or 512, but it's the same issue.
    So,
    1. Anybody could explain why I have that with Windows Server 2003 ?
    2. is it a problem with a Java Virtual Machine ?
    3. Must I do something inside Windows : Environment variable, register key or other ?
    Any helps are welcome.
    Mickael

    No. (neither PATH or JAVA_HOME, or J2EE_HOME)
    What folder must I precise in this variable :
    C:\Program Files\Java\j2re1.4.2_06\javaws ?
    or
    C:\Program Files\Java\j2re1.4.2_06\bin  ?
    Regards.
    Mickael

Maybe you are looking for

  • Backup bookmarks button in bookmark organizer is not working

    I have a really long list of bookmarks and probably some doubles too. Whenever I try to go into the bookmark organizer, import and backup and then click on Backup, nothing happens. But Exporting to HTML works and is only my current option to backup.

  • Concatinating Date for a file name

    i have the following shell script ..when i execute it manually line by line iam getting Invalid command mv js010d02.txt js010d02_`date +%y%m%d`.txt i want my file js010d02.txt to be renamed like this js010d02_081117.txt can anyone help me .. Thanks i

  • How to change the color of a script signature

    I have a signature that is black on a white background. i need to change it to a white signature on a transparent background i have spent the last hour on the index Help trying to find anything that talks aobut htis, but cannot. I'm baffled that the

  • Mountain Lion Stickies Dashboard Problem

    When I upgraded to Mountain Lion the Stickies Widget in Dashboard begin showing a problem. The vertical text cursor that flashes where typing would begin is on every stickie so I have no idea which one is selected until I begin typing. It's annoying,

  • I keep getting an error while consolidating originals

    I'm getting this error every second while conslidating my originals, despite the fact that no referenced files are missing when I locate all the referenced files. I have an inkling this might be due to the fact that for some reason I can't use RAW fi