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

Similar Messages

  • WPUMFactory.getUserFactory() throws null pointer exception

    Hi,
    I am trying to use KM API's to read files from KM repository. I am using the below code as mentioned in the blog: How to download KM documents using Web Dynpro Java
    Below is my code:
    IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
    com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
    IUser epUser = WPUMFactory.getUserFactory().getEP5User(sapUser);
    However the line WPUMFactory.getUserFactory() throws null pointer exception. Can some one please help on why these happens as these seems to be the standard code to read a file from KM.
    Thanks.
    Regards,
    Ponraj M

    Hi Ponraj ,
    Instead of fetching the current logged on user , use the below line to set the resource context and see if it helps .
    com.sapportals.wcm.repository.IResourceContext resourceContext = ResourceFactory.getInstance().getServiceContext("cmadmin_service");
    cmadmin_service is a existing user that can be used to access KM resources .
    Regards
    Mayank

  • Vector.clear() throws null pointer exception

    is there anything wrong in my code. when i try to clear the vector irrespective of whether i add elements to it or not, if there are no elements added to the vector v1.clear() it throws null pointer exception
    Vector v1 = new Vector(1,1);
    v1.clear()

    And the guessing game continues... anyone for a shortctu to duplicate this problem?
    public class NullVectorCreator
        private Vector v1;//just love the name, so clear and unambiguous... :)
        public NullVectorCreator
             Vector v1 = new Vector();//well done - a local variable masquerading as
                                                          // a class member
        public Vector getVector()
             return v1;
        public static void main(String[] args)
               NullVectorCreator nvc = new NullVectorCreator();
                nvc.getVector().clear();//Why does this throw an NPE? why? java is bugged!
    }

  • Throwing Null Pointer Exception

    Throwing Null Pointer Exception on this line:
    secondDVD = dvdArray[j+1].getTitle();
    What could be the problem?
    <code>
    if (menuChoice.equals("1"))
    boolean done = false;
    DVD swapDVD = new DVD();
    int pass;
    int passLimit = dvdArray.length - 1;
    String firstDVD;
    String secondDVD;
    for (pass = 1; !done && pass <= passLimit; pass++)
    done = true;
    for (j=0; j < (dvdArray.length - pass); j++)
    firstDVD = dvdArray[j].getTitle();
    secondDVD = dvdArray[j+1].getTitle();
    if (firstDVD.compareTo(secondDVD) > 0)
    swapDVD = dvdArray[j];
    dvdArray[j] = dvdArray[j+1];
    dvdArray[j+1] = swapDVD;
    done = false;
    for (j=0; j<numOfDVD; j++);
    System.out.println(dvdArray[j].getTitle());
    </code

    ChuckBing wrote:
    Identify the line that is createing the error, and post all of the variable values that are involved in that line. Use a System.out.println statement to get the values, placing it immediately before the line's execution.
    Also. use code tags when posting code:
    [code]...your code here...
    [/code]
    He tried to, he used <code> tags by mistake.

  • Invalidate() throws null pointer exception

    Hi experts,
    Any idea why calling invalidate will throw a null pointer exception.
    if (detailNode != null)
         detailNode.invalidate();
    This is the stack trace:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.progmodel.controller.MessageManager.setAttributeValidbyContext(MessageManager.java:656)
         at com.sap.tc.webdynpro.progmodel.context.NodeElement.clearPendingInput(NodeElement.java:297)
         at com.sap.tc.webdynpro.progmodel.context.NodeElement.exit(NodeElement.java:132)
         at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.exit(Node.java:1859)
         at com.sap.tc.webdynpro.progmodel.context.Node.clearElements(Node.java:1560)
         at com.sap.tc.webdynpro.progmodel.context.Node.onNodeInvalidating(Node.java:1447)
         at com.sap.tc.webdynpro.progmodel.context.Node.fireNodeInvalidating(Node.java:1410)
         at com.sap.tc.webdynpro.progmodel.context.Node.clearElements(Node.java:1556)
         at com.sap.tc.webdynpro.progmodel.context.Node.onNodeInvalidating(Node.java:1447)
         at com.sap.tc.webdynpro.progmodel.context.Node.fireNodeInvalidating(Node.java:1410)
         at com.sap.tc.webdynpro.progmodel.context.Node.clearElements(Node.java:1556)
         at com.sap.tc.webdynpro.progmodel.context.Node.invalidate(Node.java:583)
         at com.sap.tc.webdynpro.progmodel.context.Node.invalidate(Node.java:580)
         at com.diagonal.mmm.component.MenuDetailsController.save(MenuDetailsController.java:281)
         at com.diagonal.mmm.component.wdp.InternalMenuDetailsController.save(InternalMenuDetailsController.java:1250)
         at com.diagonal.mmm.view.MenuDetailsView.onActionSave(MenuDetailsView.java:965)
         at com.diagonal.mmm.view.wdp.InternalMenuDetailsView.wdInvokeEventHandler(InternalMenuDetailsView.java:999)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         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(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    Hello,
    we are having the save Exception.
    We are not working with modelNodes  only with valueNodes.
    We can reproduce the Exception, when doing the same as Daniel
    Daniel  Lam wrote:
    I get the exception after doing the following:
    1. The data from detailNode are displayed in a table.
    2. I changed the value of one the field to an invalid text and attempt to save the application. I got a validation error.
    3. I changed back to the original value and save again and i got the exception.
    How did you solve it?
    What are we doing wrong?`
    Can somebody help me please?

  • GetUserRoles in viewobject throws null pointer exception

    Hello,
    I've set up security for our jsf-adf-bc4j application.
    I now want to get the user role in our viewobject.
    I use the following code :
    SessionImpl session = (SessionImpl) this.getDBTransaction().getSession();
    String[] roles = session.getUserRoles();
    for (String role : roles){
    System.out.println(role);
    This throws a null pointer exception at the"System.out.println(role);" line .
    The user has a role (I can read the role in the viewcontroller project)
    In the view object i can also get the session.getUserPrincipalName(). This works fine.
    Can anybody help me with this problem ?

    You define a local ArrayList here:public MonthlySchedule()
    ArrayList<Request> monthlyschedule= new ArrayList<Request>() ;
    }Just instanciate the instance variable.

  • JFileChooser throws null pointer exception

    I'm using JFileChooser in my gui class. After I make my selection in the file chooser it sets off a null pointer exception. I'm running windows xp professiona. It was working perfectly fine till recently.
    My code for calling the chooser is:
        JFileChooser chooser = new JFileChooser();
        int returnVal = chooser.showOpenDialog(this);
        if(returnVal == chooser.APPROVE_OPTION){
          //setup the client now with the selected file to send
          client.setFile(chooser.getSelectedFile());
          jLabel5.setText(chooser.getSelectedFile().getName());
        }java.lang.NullPointerException
         at ftpresume.ClientGUI.jButton2_actionPerformed(ClientGUI.java:128)
         at ftpresume.ClientGUI_jButton2_actionAdapter.actionPerformed(ClientGUI.java:174)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    I took a look at checking to see if the file is valid, exists, is readable and everything else. Looks like the file that's returned if fine. I'm not sure why my program crashes when I setup the file though. Here's my code from the client.setFile(File f);
    public void setFile(File f){
        if(f!=null){
          this.f = f;
          try {
            channel = new FileInputStream(f).getChannel();
            client.setupProgressBar(0,(int)f.length());
          }catch (FileNotFoundException e) {client.showError("FileNotFoundException: " + e);}
          catch(IOException e){client.showError("IOException: " + e);}
      }

  • Client proxy Null pointer exception

    Folks,
    I have a problem with ABAP client proxy. The scenario runs fine, but a few messages does not enter XI pipeline with a null pointer exception in RWB. When I click on Message Content of these errored messages, I get
    500   Internal Server Error
      SAP J2EE Engine/7.00 
    Application error occurred during request processing.
      Details:   Error [javax.servlet.ServletException: null], with root cause [java.lang.NullPointerException: null].
    Exception id: [00096BDD38BA00480003206B00002EE7000447B40745C832]
    The strangest thing is if I retrigger the same message for processing from ABAP proxy, the message gets processed successfully.
    Even in the successfully reprocessed errored message, I am not able to view the message content. I am able to view the message content in SXMB_MONI with out any problem.
    Any ideas what could be the reason.
    Thanks in Advance.
    Regards,
    Jaishankar

    Hi Ramakrishna,
    I doubt Timeout is the cause for this problem coz. we used to get Time out errored messages apart from the Null pointer Exception messages. When I resend a Timedout message from RWB it gets processed sucessfully. But when I resend a null pointer exception message from RWB, the same error occurs again. Only if I resend the message from R/3 it is getting processed successfully.
    I will try this setting too. Thanks for sharing.
    Regards,
    Jaishankar

  • Constrctor.newInstance() throwing null pointer exception

    hi,
    I have the following code:
    public class Class_B{
    void method1(){
    Class clazz = Class.forName("ClassA");
    Method method = _clazz.getMethod("notify", new Class[] { this.getClass() });
    Constructor constructor = _clazz.getConstructor(); // here am getting InvocationTargetException (exception.getCause() ---> null pointer exception).
    Object obj = constructor.newInstance();
    public class Class_A{
    public Class_A(){}
    public void notify(Class_B b){
    // do some stuff
    Can anybody tell me what makes it to throw a null pointer exception.

    paul.miner wrote:
    georgemc wrote:
    I notice you're obtaining a constructor that takes one argument, but don't pass any such argument into the newInstance invocationActually, OP is obtaining a one-argument method; the constructor requested has no arguments.Yep, I misread his code. Cheers Paul
    Anyways, chances are there's an NPE being thrown from the constructor. What happens if you just instantiate it the old-fashioned, non-reflective way?

  • Call to nodeInfo throws null pointer exception

    I have a context node called Subst and want to bind a value set to one of its attributes using a modifiable simple valueset. So I called
    wdContext.nodeSubst().getNodeInfo();
    and got a null pointer exception because the nodeSubst is null. OK, I have cardinality 0..n, so at the moment I set the value set there is no node instance. But I want to set the value set for all node instances, not only for one. I changed the singleton property and it worked. But I don't understand why there is a difference between singleton or non-singleton and if it is important whether I have a value or model node.
    Regards,
    Josef

    Hi Josef,
    Cardinality talks about the collection of the node i.e the number of elements a node can have.
    Singleton is about the existence of a node instance with respect to its parent or element collection.
    One instance of a singleton child node exists at runtime for one parent node instance. The contents of the child node instance change depending on the lead selection in the parent node. Node instance existence is per node basis.
    Whereas, for a non-singleton node, there will be as many number of node instances as there are elements in the parent node. So parent node's cardinality, say 0..n, there will exist n child nodes. So node existence in this case is per element basis.
    Regards,
    Rajit

  • Java function with Dynamic config throws null pointer exception

    hi Experts,
       I am using dynamic config using java function in my message mapping.
      The source message has a field called "fname".
      The value of "fname" is the input to my java UDF.
      The java UDF code is:
       public String getDynamicFile(String fname, Container container) throws StreamTransformationException{
       String str = fname + ".xml";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, str);
    return str;
       When I test this message mapping I get the following exception:
       Runtime Exception:[java.lang.NullPointerException: while trying to invoke the method com.sap.aii.mapping.api.DynamicConfiguration.put(com.sap.aii.mapping.api.DynamicConfigurationKey, java.lang.String) of an object loaded from local variable '<4>'] in class com.sap.xi.tf._<message mapping>_ method getDynamicFile[test, com.sap.aii.mappingtool.tf7.rt.Context@2e52cb31]
    What am I doing wrong in this UDF?
    Thanks
    Gopal

    Hi,
          Your UDF will run fine in an end to end execution,i.e, during runtime. However, if you want to test your message mapping test tab without the dynamic config UDF throwing an exception, encpasulate the code in a try catch block
    public String getDynamicFile(String fname, Container container) throws StreamTransformationException{
    String str = fname + ".xml";
    try{
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, str);
    }catch(Exception ex){}
    return str;
    The above code should run fine when you test in the message mapping test tab.
    Regards

  • Crystal Report throws NULL Pointer Exception from Java

    Hi,
    <br>
    We are using crystal report in our application and we are changing the report datasource with the application datasource through our code. We are using CR4E 2008 to achieve this solution. We are getting a NULLPointerException, when we run the report in Oc4J(Oracle Apps Server) with JDK1.6. Could you please help us in achieving the solution
    <br><br>
    Exception:
    <br>
    Connection logon:Database DLL=s(crdb_jdbc.dll);Trusted_Connection=s(true);PreQEServerType=s(JDBC (JNDI));Server
    Type=s(JDBC (JNDI));Use JDBC=s(true);Database Class Name=s();JNDI Datasource Name=s(jdbc/1495);Connection URL=s();User ID=s(myapp);Password=
    detected an exception: java.lang.NullPointerException
    at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
    at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
    at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
    at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
    at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
    at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
    at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
    at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
    at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
    at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
    at com.mysystems.myapp.common.CrystalRpt.print(CrystalRpt.java:387)
    at regular.ShowReport._jspService(_ShowReport.java:277)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at com.mysystems.myapp.common.ServletFilter.doFilter(ServletFilter.java:107)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:662)
    2011-06-27 10:42:03.598 09041510myappt myapp ShowReport.jspService(277) Error while generating crystal report com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:741)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
    at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
    at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
    at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
    at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
    at com.mysystems.myapp.common.CrystalRpt.print(CrystalRpt.java:387)
    at regular.ShowReport._jspService(_ShowReport.java:277)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at com.mysystems.myapp.common.ServletFilter.doFilter(ServletFilter.java:107)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NullPointerException
    at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
    at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
    at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
    at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
    at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
    at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
    ... 33 more
    Regards,
    Karthik.

    Hi,
    <br>
    We are using crystal report in our application and we are changing the report datasource with the application datasource through our code. We are using CR4E 2008 to achieve this solution. We are getting a NULLPointerException, when we run the report in Oc4J(Oracle Apps Server) with JDK1.6. Could you please help us in achieving the solution
    <br><br>
    Exception:
    <br>
    Connection logon:Database DLL=s(crdb_jdbc.dll);Trusted_Connection=s(true);PreQEServerType=s(JDBC (JNDI));Server
    Type=s(JDBC (JNDI));Use JDBC=s(true);Database Class Name=s();JNDI Datasource Name=s(jdbc/1495);Connection URL=s();User ID=s(myapp);Password=
    detected an exception: java.lang.NullPointerException
    at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
    at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
    at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
    at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
    at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
    at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
    at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
    at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
    at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
    at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
    at com.mysystems.myapp.common.CrystalRpt.print(CrystalRpt.java:387)
    at regular.ShowReport._jspService(_ShowReport.java:277)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at com.mysystems.myapp.common.ServletFilter.doFilter(ServletFilter.java:107)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:662)
    2011-06-27 10:42:03.598 09041510myappt myapp ShowReport.jspService(277) Error while generating crystal report com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:741)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
    at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
    at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
    at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
    at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
    at com.mysystems.myapp.common.CrystalRpt.print(CrystalRpt.java:387)
    at regular.ShowReport._jspService(_ShowReport.java:277)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at com.mysystems.myapp.common.ServletFilter.doFilter(ServletFilter.java:107)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NullPointerException
    at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
    at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
    at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
    at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
    at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:696)
    at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.for(SourceFile:706)
    at com.crystaldecisions.reports.reportdefinition.ReportHelper.a(SourceFile:198)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.long(SourceFile:957)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:635)
    at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
    ... 33 more
    Regards,
    Karthik.

  • jsp:setProperty .. method throws null pointer exception...

    my simple jsp page :
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
    you must also add the JSTL library to the project. The Add Library... action
    on Libraries node in Projects view can be used to add the JSTL 1.1 library.
    --%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
        <h1>JSP Page</h1>
        <jsp:useBean id="user1" class="com.netman.beans.UserBean">
            <jsp:setProperty name="title" property="title" />
            <jsp:setProperty name="name" property="name" />
        </jsp:useBean>
        Name : <%= user1.getName() %><br>
        Title : <%= user1.getTitle() %>
        </body>
    </html>
    // -- my bean class -- //
    package com.netman.beans;
    public class UserBean
        private String name;
        private String title;
        /** Creates a new instance of UserBean */
        public UserBean()
        public void setName(String name)
            this.name = name;
        public String getName()
            return name;
        public void setTitle(String title)
            this.title = title;
        public String getTitle()
            return title;
    }when I try to view the jsp page, i am getting the following exception :
    org.apache.jasper.JasperException: Exception in JSP: /test.jsp:25
    22: <h1>JSP Page</h1>
    23:
    24: <jsp:useBean id="user1" class="com.netman.beans.UserBean">
    25: <jsp:setProperty name="title" property="title" />
    26: <jsp:setProperty name="name" property="name" />
    27: </jsp:useBean>
    28: Name : <%= user1.getName() %><br>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException
         org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:359)
         org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:306)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:68)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:320)
         org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:306)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:68)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    and my request URL is http://localhost:8080/TestApp/test.jsp?title=Super&name=Great
    what could be the problem?

    how stupid i'm..
    instead of using the bean name in setProperty I have used the property name...
    !!!

  • Dashboard throws null pointer exception on migration...

    Hey Experts,
    Our client created a copy of BW-Prod(MS SQL)  as BW-Testing(over HANA).
    We had a dashboard which was using SAP Netweaver Connections to BW-Prod system. When we tried to run the same dashboard just changing the server url to BW-Testing instead of BW-Prod, I am getting the attached error .
    3 queries didn't trigger in which one is the KPI query  and other two(triggers only once in the beginning) are queries that populate the dropdowns and list boxes at the beginning. When I pass an input value say date, the KPI query triggers without the error.
    But the PROD url of dashboard works fine with no errors
    I used Fiddler web debugger where my BICSRemote is showing "RUNTIME ERROR" for 3 queries and attached my fiddler snapshot.
    I feel this because of the BICS remote web service. I am unaware of how to fix this. Thanks in anticipation.
    Arathy

    Hi Kapil G,
    Please let us know if you still need help with this post.
    Thank you.

  • Compleated guided procedure task throws Java.lang.null pointer exception.

    Hello,
    Compleated guided procedure task throws Java.lang.null pointer exception in UWL.
    From UWL  tracking of finished task of guided procedures throws null pointer exception .
    Guided procedure is created in local J2EE Engine not in Back end SAP System.
    Any ideas.
    Regards
    Mark

    Hi
    If u solved the problem mentioned above please tell me g\how u managed to do it.We are facing the same issue.Completed gp shows the same exception while opening from tracking tab

Maybe you are looking for

  • Screen display garbled when downloading a file

    In FF 5 I often get a garbled screen display when dowloading a file (by garbled I mean that the display is broken into numerous rectangles; the display appears to be similar to that of a driver/monitor/card not being compatible). The display will som

  • Acrobat 9 : How to modify subject & body of email when using send button in PDF

    Hello, I have to create several PDF forms who will be send to my mailadress. I already googled a lot but can't find a way to modifiy the subject of the mail and the bodytext of the mail when I use the send button in the purple bar on top of the PDF f

  • Doubt on Aync-Sync Bridge without BPM

    I created a scenario using Aync-Sync Bridge without BPM: File(Asyn) => Rfc:BAPI_PO_CREATE1(Syn) 1 which mode of message interface should be used in IR for File(Asyn)?    Asyn or Syn? 2 if syn MSG interface should be used in the above question,how can

  • Install 9iAS problem

    We are trying to install Oracle 9ias release 2 on windows 2000 system The first step F set File Locations is ok The second step : Available Products , I choice uOracle9i Application Server 9.0.2.0.0 v is ok. Then thrid step : Installation Type , I ch

  • Adobe Indesign CS4 Crashing When Printing To HP OfficeJet Pro 8500

    Adobe Indesign in crashing when I select print. The only printer I have is the OfficeJet Pro 8500 (A909g) I am running the latest version of OS. (OS 10.10.1) I have uninstalled Indesign and reinstalled it from my disc. There is no update to the versi