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.

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.

  • 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

  • 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?

  • 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);}
      }

  • 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?

  • 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.

  • 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

  • Null Pointer Exception - PolicyRuntime.java

    hi..,
    Im developing a Java Web Service Client using jaxrpc in WebSphere 5.1 . But im gettin an exception like this:
    java.lang.NullPointerException
         at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.getB64StrProp(PolicyRuntime.java:188)
         at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.<init>(PolicyRuntime.java:91)
         at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime.<init>(MiscPolicyRuntime.java:132)
         at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime$Factory.make(MiscPolicyRuntime.java:254)
         at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.accessInstance(PolicyRuntime.java:225)
         at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.preFilter(PolicyRuntime.java:127)
         at com.trend.iwss.jscan.appscan.runtime.MiscPolicyRuntime.preFilter(MiscPolicyRuntime.java:142)
         at javax.xml.rpc.FactoryFinder.find(FactoryFinder.java:141)
         at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:63)
         at myPack.HelloClient.hello(HelloClient.java:45)
         at myPack.HelloClient.main(HelloClient.java:65)
    It occurs where i hav created the object of any class in the api.I checked the compatibility of the jar files i included. I tried the same with Axis
    API also. same exception is obtained.Can anyone help me ..
    Thanks in advance,
    Arun

    Hello,
    Java Server Page is a technology that we use to
    generate HTML dynamically and you use scriptlets to
    perform this.
    that's why you are not allowed to use awt or swing
    packages.
    all graphical components have to be an HTML component
    (including applets).
    Najib.Hi,
    I know you are supposed to generate an HTML file, and I'm not creating a JFrame to display it. Let me explain how our application works: when the user presses a button in our page, we have to create a .pdf file and generate a page with a link to it so the user can download it.
    This .pdf file has some charts (the charts and pdf are created with Sitraka's JClass Chart and PageLayout), and in order to embedd the chart in the .pdf file we need to put it first in a JFrame.
    The code snippet is:
    JFrame frame = new JFrame();
    frame.getContentPane().add(chart);
    frame.addNotify();
    Image img = chart.snapshot();
    frame.removeNotify();
    frame.removeAll();
    This works most of the time, but in this specific machine sometimes the instantiation of the JFrame fails with the error I posted before.
    Hope I have made things more clear.
    Wesley

  • 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...
    !!!

  • Null pointer exception from 10.1.3dp4 Mapping Workbench

    Using 10.1.3dp4 Mapping Workbench I opened a very simple 9.0.4 project successfully. I then successfully saved the project in a different folder. I then successfully logged into the database. When I right click on the database and "Add or update existing tables from database" or select a table and "Refresh from database", I get the following error:
    What am I doing wrong?
    java.lang.NullPointerException
         at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.buildExternalDatabase(MWDatabase.java:480)
         at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.getExternalDatabase(MWDatabase.java:473)
         at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.catalogNames(MWDatabase.java:716)
         at oracle.toplink.workbench.mappingsplugin.ui.db.TableImporterDialog.buildCatalogs(TableImporterDialog.java:171)
         at oracle.toplink.workbench.mappingsplugin.ui.db.TableImporterDialog.initialize(TableImporterDialog.java:142)
         at oracle.toplink.workbench.mappingsplugin.ui.db.TableImporterDialog.<init>(TableImporterDialog.java:114)
         at oracle.toplink.workbench.mappingsplugin.ui.db.AddOrRefreshTablesAction.execute(AddOrRefreshTablesAction.java:42)
         at oracle.toplink.workbench.mappingsplugin.ui.db.AddOrRefreshTablesAction.execute(AddOrRefreshTablesAction.java:36)
         at oracle.toplink.workbench.framework.action.AbstractFrameworkAction.actionPerformed(AbstractFrameworkAction.java:135)
         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.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         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 just started the Mapping Workbench and it works fine, so at a minimum, stopping and restarting the workbench will do it. Sorry but I don't know if closing and reopening the project will do the trick.

  • Null pointer Exception on java plug-in , using Mutity language...

    hi all :)
    I found at plug-in do not suppor Multy language.
    for Example...
    my operating System is Window XP and log in ID is not English ... like Korean, Chinese etc...
    i programmed Web application with Swing Applet(JApplet)... and tested plug-in version 1.2.2 and 1.3.1 and XP plug-in
    Plug-in said that like this.
    Java(TM) Plug-in: version 1.3.1
    JRE version usage 1.3.1 Java HotSpot(TM) Client VM
    user home = C:\Documents and Settings\��????��java.lang.NullPointerException java.lang.NullPointerException������ ����:java.lang.NullPointerException������ ����java.lang.NullPointerException java.lang.NullPointerException java.lang.NullPointerException----------------------------------------------------
    c: clear console window
    f: final queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------java.lang.NullPointerException java.lang.NullPointerExceptionjava.security.PrivilegedActionException: java.lang.NullPointerExceptionjava.io.FileNotFoundException: C:\Documents and Settings\��????��\Local Settings\Temporary Internet Files\Content.IE5\9KENTUKR\graph-a[1].jar (���� ����, �������� ���� ���� ���� ������ ������ ��������)java.lang.NullPointerException java.lang.NullPointerException     at java.io.FileInputStream.open(Native Method)
    ... etc....
    this message is plug-in do not download class archive in client System cache... because of VM cannot know user.home directory...
    you can find that java plug-in does not support mulity language to see the next sentence.
    "user home = C:\Documents and Settings\��????"
    in this reason i found a problem in communication JApplet and java-script by using cookies...
    How can I solve this problem...( i must use Multi language login ID plz.....)
    have a nice day!!!
    poemtry ... ^^

    I have such problems with a russian version Windows 2000....
    Java(TM) Plug-in: Version 1.4.0
    Using JRE version 1.4.0-beta3 Java HotSpot(TM) Client VM
    User home directory = D:\Documents and Settings\?????????????
    ava.lang.NullPointerExceptionjava.lang.NullPointerException
    java.lang.NullPointerException     at sun.plugin.cache.Cache$3.hasMoreElements(Cache.java:306)
    java.lang.NullPointerException     at sun.plugin.cache.CachedFileLoader$2.run(CachedFileLoader.java:94)
    java.lang.NullPointerException     at java.security.AccessController.doPrivileged(Native Method)
    java.lang.NullPointerException     at sun.plugin.cache.Cache.privileged(Cache.java:237)
    java.lang.NullPointerException     at sun.plugin.cache.CachedFileLoader.getCacheFile(CachedFileLoader.java:86)
    java.lang.NullPointerException     at sun.plugin.cache.CachedFileLoader.load(CachedFileLoader.java:66)
    java.lang.NullPointerException     at sun.plugin.cache.FileCache.get(FileCache.java:138)
    java.lang.NullPointerException     at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(HttpURLConnection.java:198)
    java.lang.NullPointerException     at sun.plugin.net.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:144)
    java.lang.NullPointerException     at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:290)
    java.lang.NullPointerException     at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1120)
    java.lang.NullPointerException     at sun.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1134)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:224)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
    java.lang.NullPointerException     at java.security.AccessController.doPrivileged(Native Method)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)
    java.lang.NullPointerException     at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:191)
    java.lang.NullPointerException     at java.lang.ClassLoader.loadClass(ClassLoader.java:309)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
    java.lang.NullPointerException     at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:470)
    java.lang.NullPointerException     at sun.applet.AppletPanel.createApplet(AppletPanel.java:551)
    java.lang.NullPointerException     at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1610)
    java.lang.NullPointerException     at sun.applet.AppletPanel.runLoader(AppletPanel.java:480)
    java.lang.NullPointerException     at sun.applet.AppletPanel.run(AppletPanel.java:293)
    java.lang.NullPointerException     at java.lang.Thread.run(Thread.java:539)
    java.lang.NullPointerExceptionjava.lang.NullPointerException
    java.lang.NullPointerException     at sun.plugin.cache.Cache$3.hasMoreElements(Cache.java:306)
    java.lang.NullPointerException     at sun.plugin.cache.CachedJarLoader$4.run(CachedJarLoader.java:212)
    java.lang.NullPointerException     at java.security.AccessController.doPrivileged(Native Method)
    java.lang.NullPointerException     at sun.plugin.cache.Cache.privileged(Cache.java:237)
    java.lang.NullPointerException     at sun.plugin.cache.CachedJarLoader.getCacheFile(CachedJarLoader.java:204)
    java.lang.NullPointerException     at sun.plugin.cache.CachedJarLoader.<init>(CachedJarLoader.java:81)
    java.lang.NullPointerException     at sun.plugin.cache.JarCache.get(JarCache.java:170)
    java.lang.NullPointerException     at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(CachedJarURLConnection.java:73)
    java.lang.NullPointerException     at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:58)
    java.lang.NullPointerException     at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:501)
    java.lang.NullPointerException     at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:462)
    java.lang.NullPointerException     at sun.misc.URLClassPath$2.run(URLClassPath.java:258)
    java.lang.NullPointerException     at java.security.AccessController.doPrivileged(Native Method)
    java.lang.NullPointerException     at sun.misc.URLClassPath.getLoader(URLClassPath.java:247)
    java.lang.NullPointerException     at sun.misc.URLClassPath.getLoader(URLClassPath.java:224)
    java.lang.NullPointerException     at sun.misc.URLClassPath.getResource(URLClassPath.java:137)
    java.lang.NullPointerException     at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    java.lang.NullPointerException     at java.security.AccessController.doPrivileged(Native Method)
    java.lang.NullPointerException     at java.net.URLClassLoader.findClass(URLClassLoader.java:189)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:134)
    java.lang.NullPointerException     at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:191)
    java.lang.NullPointerException     at java.lang.ClassLoader.loadClass(ClassLoader.java:309)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
    java.lang.NullPointerException     at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
    java.lang.NullPointerException     at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:470)
    java.lang.NullPointerException     at sun.applet.AppletPanel.createApplet(AppletPanel.java:551)
    java.lang.NullPointerException     at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1610)
    java.lang.NullPointerException     at sun.applet.AppletPanel.runLoader(AppletPanel.java:480)
    java.lang.NullPointerException     at sun.applet.AppletPanel.run(AppletPanel.java:293)
    java.lang.NullPointerException     at java.lang.Thread.run(Thread.java:539)
    java.lang.NullPointerException
    on mainpage http://java.sun.com :-)

Maybe you are looking for

  • Dynamic parameter list values

    Hi all, I'm new with Crystal Report, and I have a problem. The goal is to create a Price List based on SAP conditions tables. So, In my report I have linked table  Axxx KONP KNA1 MAKT  MVKE T179T  TINCT TVSBT. All work find except for the customer pa

  • Assigning multiple key press in shortcuts keyboard

    I find that i use the select all tracks forward far more than select track forward so would like to change my shortcuts to t for select all tracks and tt for select track. Problem is that I can't get Customize Keyboard to accept multiple presses of t

  • My iPhone 4 doesn't have sound except ringer and unless I plugged in earpiece!

    I'm an apple user at first.. Then switched to android and recently my android screen cracked thus I'm using back my iPhone 4 temporary and realise the sound wasn't working properly except for ringtone and unless I plugged earpiece in if not message,

  • Can I get a refund on my Mac?

    I got a MacBook Pro 13 a month ago. First the fan was loud. Then my mail app was not working. Then I have problems whenever I want to turn off this computer. Now I have a crooked key after a month of use and keep in mind I barely use it! I mostly use

  • Simple Script Logic Help - Unit Conversion

    Hello Gurus, I am trying to prove some capability of BPC and need to write a Logic for doing it: The scenario is like this: I have a cube that will host Sales forecast information :    Product:  A    Month:     MM01    Unit :       X    Signed Data