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

Similar Messages

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

  • 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 :-)

  • Oracle native API for AQ  - Null pointer exception

    Hi
    I am trying to enqueue a message to AQ adapter through the java native api. But i am getting a null pointer exception.
    import java.sql.*;
    import oracle.AQ.*;
    Connection db_conn;
    AQSession aq_sess = null;
    AQQueueTable q_table = null;
    AQQueue queue = null;
    AQMessage message ;
    byte[] b_array ;
    try{
    String test_data = "hello";
    Class.forName("oracle.jdbc.driver.OracleDriver");
    db_conn =
    DriverManager.getConnection(
    "jdbc:oracle:thin:@localhost:1521:SOABRM",
    "soabrm", "password");
    System.out.println("JDBC Connection opened ");
    db_conn.setAutoCommit(false);
    Class.forName("oracle.AQ.AQOracleDriver");
    aq_sess = AQDriverManager.createAQSession(db_conn);
    System.out.println("Successfully created AQSession ");
    q_table = aq_sess.getQueueTable ("soabrm", "AQ_Test");
    queue = aq_sess.getQueue ("soabrm", "AQ_Queue_Test");
    message = queue.createMessage();
    b_array = test_data.getBytes();
    AQRawPayload raw_payload = message.getRawPayload();
    AQEnqueueOption enq_option = new AQEnqueueOption();
    raw_payload.setStream(b_array,b_array.length); */* Erroring out at this statement*/*
    message.setRawPayload(raw_payload);
    queue.enqueue(enq_option, message);
    db_conn.commit();
    catch(Exception ex){
    System.out.println("Exception "+ex.getMessage());
    Error : Exception null
    Please let me know if I missed something.
    Thanks in advance!!!!!

    hi,
    I had found the issue. The queue takes object type messages where as I was trying with Raw messages.
    Instead of AQRawPayload raw_payload = message.getRawPayload();
    I need to use
    AQObjectPayload raw_payload = message.getObjectPayload()
    and pass object as input to the queue.

  • Java Null Pointer Exception while Importing a Table to IS

    Hello All,
    I am trying to import a table into IS and receiving a JAVA Null Pointer Exception. The table is in a Teradata database and I am able to import other tables belonging to the same schema.I get the Java error only while trying to import this one particular table. The DBA has confirmed that the table belongs to the schema/owner I am using. In any case, it seems more of a application error than a database level error. Can anyone provide any insight? Thank you in advance.

    hi Keerthi,
    thank you.
    i tried with below code but still unsuccesfully
         +     oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ActFlexField");+
    oapagecontext.writeDiagnostics(this, "Niccal: i got DFF handle", 1);
    OAMessageTextInputBean mtib = (OAMessageTextInputBean)oaDFF.findChildRecursive("ActFlexField0");
    oapagecontext.writeDiagnostics(this, "Niccal: before if", 1);
    i am able to print 1° comment line but not second. so i think it's something wrong getting the segment handle.
    anyway i'm not able to reach your suggested if statement because execution stops before.
    Infact, if i comment line :OAMessageTextInputBean mtib = (OAMessageTextInputBean)oaDFF.findChildRecursive("ActFlexField0");
    page doesn't give error and saves data.
    any suggestion appreciated,
    thanx,
    N

  • Java Null Pointer Exception- Business Validation In AM

    Hi, I have been tried cracking this validation issue, tried several combinations. But does not work and throw java null pointer exception. I would appreciate if somebody can point where I am going wrong on the code. Thanks ahead.
    Below is the issue:-
    I have a page with PO (blanket purchase order) header info, and a PO line info with additional empty columns (related to Blanket Release). When the user fills in one of the columns (release amount, rls_amt_i), then I need to validate this against remaining blanket amount ie.{ PO_amt - (po_rls_amt1 + po_rls_amt2+..)}. If rls_amt_i is <= remaining amount, then the release needs to get created, otherwise shouldn't. I know, this is a pretty normal requirement. Please check my code to see where I could be wrong.
    ReleaseCO (in PFR):-
    if (pageContext.getParameter("Apply") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("CxPoReleaseVO1");
    Number poHeaderId = (Number)vo.getCurrentRow().getAttribute("PoHeaderId");
    String poNumber = (String)vo.getCurrentRow().getAttribute("PoNumber");
    OAViewObject linesVO = (OAViewObject)am.findViewObject("CxPoReleaseLinesVO1");
    Number lineAmt = (Number)linesVO.getCurrentRow().getAttribute("Amount");
    Serializable [] params = {poHeaderId.toString(), poNumber, lineAmt.toString()};
    am.invokeMethod("apply", params);
    ReleaseAM:-
    public void apply(String poheaderId, String poNumber, String lineAmt)
    Number blanketAmt, totalreleasesAmt, lineRlsAmt;
    try
    { lineRlsAmt = new Number(lineAmt.trim());}
    catch(Exception e) { throw new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER"); }
    totalreleasesAmt = getReleasesAmt(poheaderId);
    blanketAmt = getBlanketAmt(poNumber);
    if ((lineRlsAmt.intValue() - (blanketAmt.intValue()-totalreleasesAmt.intValue())) <= 0)
    getTransaction().commit();
    approve();
    throw new OAException("The amount is less than the remaining release amt", OAException.INFORMATION);
    } // end apply()
    public Number getReleasesAmt (String poHeaderId)
    CxTotalReleaseQuantityVVOImpl totalreleaseqtyVO = getCxTotalReleaseQuantityVVO1(); //vo to get TotalReleased Amount
    Number poHeadNum = null;
    Number totalqty;
    try { poHeadNum = new Number(poHeaderId); }
    catch (Exception e) { throw OAException.wrapperException(e); }
    totalreleaseqtyVO.initQuery(poHeadNum);
    CxTotalReleaseQuantityVVORowImpl row = null;
    row = (CxTotalReleaseQuantityVVORowImpl)totalreleaseqtyVO.getCurrentRow();
    try { totalqty = (Number)row.getQuantityReleased();}
    catch (Exception e) { throw new OAException(e.getMessage()); }
    if(totalqty != null)
    { return totalqty;  }
    else
    { throw new OAException ("exception occurred", OAException.ERROR);  }
    public Number getBlanketAmt (String poNumber)
    Number blanketAmt;
    CxBlanketAmtVOImpl blanketVO = (CxBlanketAmtVOImpl) getCxBlanketAmtVO1(); //VO to get total amount on the BlanketPO.
    blanketVO.initQuery(poNumber);
    Row row = blanketVO.getCurrentRow();
    blanketAmt = (Number)row.getAttribute("Quantity"); //gets the blanket amt
    if( blanketAmt != null ) {
    return blanketAmt ; }
    else { throw new OAException ("exception occurred", OAException.ERROR);   }
    ---------The code breaks at the line where I try to get "totalqty" or "blanketAmt" .. It throws a java nullpointer exception.
    Thanks for helping me out.
    -Vikram

    Hi Sumit,
    Thanks for replying. Here is the error stack.
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
         at netflix.oracle.apps.nflix.p2p.po.webui.NfCreateReleaseCO.processFormRequest(NfCreateReleaseCO.java:115)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at OA.jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.NullPointerException
         at netflix.oracle.apps.nflix.p2p.po.server.NfReleaseCreateAMImpl.getReleasesAmt(NfReleaseCreateAMImpl.java:642)
         at netflix.oracle.apps.nflix.p2p.po.server.NfReleaseCreateAMImpl.apply(NfReleaseCreateAMImpl.java:302)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
         at netflix.oracle.apps.nflix.p2p.po.webui.NfCreateReleaseCO.processFormRequest(NfCreateReleaseCO.java:115)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at OA.jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.NullPointerException
         at netflix.oracle.apps.nflix.p2p.po.server.NfReleaseCreateAMImpl.getReleasesAmt(NfReleaseCreateAMImpl.java:642)
         at netflix.oracle.apps.nflix.p2p.po.server.NfReleaseCreateAMImpl.apply(NfReleaseCreateAMImpl.java:302)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
         at netflix.oracle.apps.nflix.p2p.po.webui.NfCreateReleaseCO.processFormRequest(NfCreateReleaseCO.java:115)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at OA.jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    The code breaks at the line 642: totalqty = (Number)row.getQuantityReleased();
    I had already taken care of the null value in the VO sql query by using nvl(sum(release_amount), 0).. .so it should return atleast 0, if its null. But it returns "null" all the time.
    I dont understand why its doing that. When I run the sql backend the query works fine and returns 0,even when there are no prior releases on the PO.
    Thanks,
    Vikram

  • Null Pointer Exception Error's in WebDynpro Java

    Hi All,
    How Types are coming Null Pointer Exception Error's in WebDynpro Java, Please provide the types.of Errors.
    Ex. Cardinality Type not correct etc...
    Thanks,
    Bye,
    Vijay Hari.

    HI
      Null Pointer Exception can occur in may instances , for suppose
      1) when  you create a Value Node with some attribute which has cardinality , and you have not
      initialized the Node , then it would through  Null Pointer exception ,
      2) when you integrate the RFC and parameters you pass as input to the RFC are not set correctly
          then there could be null pointer when you execute the RFC
      3>or may be when you doesnot bind the node when using webservice then there could be null pointer exception
    and there could be many occurances  for the exception

  • Java Null Pointer Exception - with arraycopy method.

    Hi all,
    I have been trying to fix this for a while now, but I think I've been staring at the screen for too long to fix it!
    Basically I am trying to 'crossover' some arrays (evolutionary technique) but I keep getting a null pointer exception.
    Here is my customised class: class ChromosomeDetails {
         double[] chromosomePrices;
         int[] chromosomePoints;
         int[] chromosomePlayerIDs;
         int chromosomeFitness;
           ChromosomeDetails(double[] chromosomePrices, int[] chromosomePoints, int[] chromosomePlayerIDs, int chromosomeFitness) {
              this.chromosomePrices = chromosomePrices;
              this.chromosomePoints = chromosomePoints;
              this.chromosomePlayerIDs = chromosomePlayerIDs;
              this.chromosomeFitness = chromosomeFitness;     
           public ChromosomeDetails () {  
                chromosomePrices = null;
              chromosomePoints = null;
              chromosomePlayerIDs = null;
              chromosomeFitness = 0;
         public double[] getPrices() {
              return chromosomePrices;
         public int[] getPoints() {
              return chromosomePoints;
         public int[] getPlayerIDs() {
              return chromosomePlayerIDs;
         public int getFitness() {
              return chromosomeFitness;
    }  In my main method I create 2 instances of this class like so:ChromosomeDetails parentChromosomeADetails = new ChromosomeDetails();          
    ChromosomeDetails parentChromosomeBDetails = new ChromosomeDetails();...and 2 other instances that are left empty:ChromosomeDetails childChromosomeCDetails = new ChromosomeDetails();     
    ChromosomeDetails childChromosomeDDetails = new ChromosomeDetails();     I then try to 'crossover' the values in the arrays like so: int randomCrossoverPoint = new Random().nextInt(parentChromosomeADetails.chromosomePoints.length-1);
    System.arraycopy(parentChromosomeADetails.chromosomePrices, 0, childChromosomeCDetails.chromosomePrices, 0, randomCrossoverPoint);
    System.arraycopy(parentChromosomeBDetails.chromosomePrices, randomCrossoverPoint, childChromosomeCDetails.chromosomePrices, randomCrossoverPoint, (childChromosomeCDetails.chromosomePrices.length-randomCrossoverPoint));
    System.arraycopy(parentChromosomeADetails.chromosomePoints, 0, childChromosomeCDetails.chromosomePoints, 0, randomCrossoverPoint);
    System.arraycopy(parentChromosomeBDetails.chromosomePoints, randomCrossoverPoint, childChromosomeCDetails.chromosomePoints, randomCrossoverPoint, (childChromosomeCDetails.chromosomePoints.length-randomCrossoverPoint));
    System.arraycopy(parentChromosomeADetails.chromosomePlayerIDs, 0, childChromosomeCDetails.chromosomePlayerIDs, 0, randomCrossoverPoint);
    System.arraycopy(parentChromosomeBDetails.chromosomePlayerIDs, randomCrossoverPoint, childChromosomeCDetails.chromosomePlayerIDs, randomCrossoverPoint, (childChromosomeCDetails.chromosomePlayerIDs.length-randomCrossoverPoint));
                        However it gives me this error, relating to the first arraycopy method: Exception in thread "main" java.lang.NullPointerException
         at java.lang.System.arraycopy(Native Method)Please note that in this program, parentChromosomeADetails and parentChromosomeBDetails already hold data when I try to use the arraycopy method, whereas the childChromosomeCDetails and childChromosomeDDetails objects are empty, waiting for the data from the arraycopy methods. Any help would be immensely appreciated.

    it was learning very well yesterday, but that was before I introduced my customised class. I need my class as I need to be able to keep hold of all of the data, rather than just the chromosome points, so that I can see the exact strategy that the algorithm uses.
    It is indeed the child chromosome that is null, and I suppose that it because I had to initialise the int[] chromosomePoints, double[] chromosomePrices and int[] chromosomePlayerIDs as null. What is the best solution to this? using loops to initialise all values in the arrays as 0 before the arraycopy?!

  • Java lang null pointer exception

    Hi
    I am trying to retrieve data from db and display in jsp.i am getting null pointer exception.connecting to db code is all fine .
    i am using it for the other pages also
    below is my code
    package updates;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.RequestDispatcher;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import Database.ConnectionPoolingPacs;
    import java.sql.Blob;
    public class EditBug extends HttpServlet {
        Connection connect=null;
        Statement stmt=null;
        ResultSet rs=null;
        ConnectionPoolingPacs Con=null;
        String BUGTITLE="";
        String SEVERITY ="";
        String BUG_ID="";
        String PROBABILITY="";
        String AUTHOR="";
        Blob  BUGDESCRIPTION1,ASSIGNEECOMMENTS1,CLOSINGCOMMENTS1=null;
        RequestDispatcher dispatcher=null;
        String STATUS,ASSIGNEDTO,CLOSEDBY=null;
        String IDENTIFIEDON,ASSIGNEDON,CLOSEDON=null;
        String BUGDESCRIPTION,ASSIGNEECOMMENTS,CLOSINGCOMMENTS=null;
        @Override
        public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException
         response.setContentType("text/html");
         BUG_ID=request.getParameter("bugID");
                  try
                  Con=new ConnectionPoolingPacs();
                  connect=Con.getConnection();
                  stmt=connect.createStatement();
                  String QueryStringTest="Select * from bugdetails where Bug_Id ='"+ BUG_ID+"' ";
                  rs=stmt.executeQuery(QueryStringTest);
                  while (rs.next())
                    BUG_ID=rs.getString("Bug_ID");
                    BUGTITLE= rs.getString("Bug_Title") ;
                    BUGDESCRIPTION1=rs.getBlob("Bug_Description1");
                    AUTHOR=rs.getString("Bug_Author");
                    SEVERITY=rs.getString("Bug_Severity");
                    PROBABILITY=rs.getString("Bug_Probability");
                    STATUS=rs.getString("Bug_Status");
                    IDENTIFIEDON=rs.getString("Bug_IdentifiedOn");
                    ASSIGNEDON=rs.getString("Bug_assignedOn");
                    ASSIGNEDTO=rs.getString("Bug_AssignedTo");
                    ASSIGNEECOMMENTS1=rs.getBlob("AssigneeComments");
                    CLOSEDON=rs.getString("Bug_ClosedOn");
                    CLOSEDBY=rs.getString("Bug_ClosedBy");
                   CLOSINGCOMMENTS1=rs.getBlob("ClosingComments");
                    request.setAttribute("id",BUG_ID);
                    request.setAttribute ("title",BUGTITLE);
                    request.setAttribute ("author",AUTHOR);
                    request.setAttribute ("severity",SEVERITY);
                    request.setAttribute ("probability",PROBABILITY);
                    request.setAttribute ("status",STATUS);
                    request.setAttribute ("identifiedon",IDENTIFIEDON);
                    if ((ASSIGNEDON).equals("1001-01-01"))
                        ASSIGNEDON="";
                    request.setAttribute ("assignedon", ASSIGNEDON);
                    request.setAttribute ("assignedto", ASSIGNEDTO);
                     if ((CLOSEDON).equals("1001-01-01"))
                        CLOSEDON="";
                    request.setAttribute ("closedon", CLOSEDON);
                    request.setAttribute ("closedby", CLOSEDBY);
                    byte[] buffer1 = BUGDESCRIPTION1.getBytes(1, (int) BUGDESCRIPTION1.length());
                     BUGDESCRIPTION  = new String(buffer1);
                     byte[] buffer2 = ASSIGNEECOMMENTS1.getBytes(1, (int) ASSIGNEECOMMENTS1.length());
                    ASSIGNEECOMMENTS  = new String(buffer2);
                     byte[] buffer3 = CLOSINGCOMMENTS1.getBytes(1, (int)  CLOSINGCOMMENTS1.length());
                    CLOSINGCOMMENTS  = new String(buffer3);
                     request.setAttribute ("description",BUGDESCRIPTION);
                    if(ASSIGNEECOMMENTS!=null)
                     request.setAttribute ("assignecomments",ASSIGNEECOMMENTS);
                     if(CLOSINGCOMMENTS!=null)
                     request.setAttribute ("closingcomments", CLOSINGCOMMENTS);
                    stmt.close();
                    rs.close();
          catch(Exception e){System.out.println("Exception  ;"+e);}
              dispatcher = request.getRequestDispatcher("/EditBug.jsp");
              dispatcher.forward(request, response);
        }I have set 1001-01-01 as the default date.

    This is the exception which i am getting
    Aug 12, 2009 2:24:18 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet EditBug threw exception
    java.lang.NullPointerException
    at org.apache.jsp.EditBug_jsp._jspService(EditBug_jsp.java:703)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at updates.EditBug.doPost(EditBug.java:124)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    and that line which its indicating as error is
    dispatcher.forward(request, response);
    Edited by: garlapati on Aug 12, 2009 8:55 AM

  • Java null pointer exception while getting a segment DFF handle

    Hi,
    my requirement is to make a field mandatory based upon a dff segment value (Y/N). i override PFR since segment is a poplist on the page (and poplists don't fire any event)
    i searched in the "view source" of the page and found that segment id is ActFlexField0
    when i click on save button i got "java null pointer exception"
    here is code:
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean) throws OAException
    +{+
    +//get a handle to AM+
    OAApplicationModule am;
    am = oapagecontext.getRootApplicationModule();
    oapagecontext.writeDiagnostics(this,"Root AM=>"oapagecontext.getApplicationModule(oawebbean).getName() ,1);+
    if(oapagecontext.getParameter("applyCreActBut") != null || oapagecontext.getParameter("saveDtlBut") != null)
    +{+
    +/*Conditional mandatoryness of IdContribuente field*/+
    +// first, find the flexfield's handle+
    OADescriptiveFlexBean oaDFF;
    oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ActFlexField");
    +//oaDFF.processFlex(oapagecontext);+
    oapagecontext.writeDiagnostics(this, "Niccal: i got DFF handle", 1);
    +//oapagecontext.writeDiagnostics(this, "Niccal: oamcb value is:"+oaDFF.getAttributeValue(), 1);+
    +/*+
    RenderingContext con = (RenderingContext) oapagecontext.getRenderingContext();
    Enumeration x= null;
    x= oaDFF.getChildNames(con);
    oapagecontext.writeDiagnostics(this, "After getChild", 1);
    while(x.hasMoreElements())
    +{+
    String aParamName = (String)x.nextElement();
    oapagecontext.writeDiagnostics(this, "Niccal: DFF segment names are:"aParamName, 1);+
    +//OAWebBean dffbeans=(OAWebBean)oaDFF.findChildRecursive(aParamName);+
    +}+
    +//oaDFF.mergeSegmentsWithParent(oapagecontext);+
    OAMessageChoiceBean oamcb = (OAMessageChoiceBean)oaDFF.findChildRecursive("ActFlexField0");
    +//String sIsForeign = (String)oaDFF.getAttributeValue("Attribute1");+
    +//oapagecontext.writeDiagnostics(this, "Niccal: Attribute1 is:"+sIsForeign, 1);+
    oapagecontext.writeDiagnostics(this, "Niccal: before if", 1);it's urgent
    any help appreciated
    thanx
    N

    hi Keerthi,
    thank you.
    i tried with below code but still unsuccesfully
         +     oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ActFlexField");+
    oapagecontext.writeDiagnostics(this, "Niccal: i got DFF handle", 1);
    OAMessageTextInputBean mtib = (OAMessageTextInputBean)oaDFF.findChildRecursive("ActFlexField0");
    oapagecontext.writeDiagnostics(this, "Niccal: before if", 1);
    i am able to print 1° comment line but not second. so i think it's something wrong getting the segment handle.
    anyway i'm not able to reach your suggested if statement because execution stops before.
    Infact, if i comment line :OAMessageTextInputBean mtib = (OAMessageTextInputBean)oaDFF.findChildRecursive("ActFlexField0");
    page doesn't give error and saves data.
    any suggestion appreciated,
    thanx,
    N

  • Java null pointer exception setting new preferences on a project

    Using thw Warehouse Builder Client 9.0.3 with Oracle 9i 9.0.1, I tried to change the Naming option on the Naming Tab to the "logical name mode". Then i pressed the Ok button and this caused a crash with a Java Null Pointer Exception. At this time, All commands on project generated the same error responce. I shut down the machine, restarted the Oracle Instance and all related services, an as a result, I am not able to re-open no Warehouse Builder project. The system seems to be in an infinite loop while trying to open the currently selected project. Can anybody help me?
    Thanks.
    Marco

    This seems to be a bug. Can you open a TAR on this?
    Regards:
    Igor

  • Error 500 Java.Lang.Null.Pointer Exception

    Please help me:
    I have problem with starting my portlet under portal.
    Provider is registred correctly ,portlet is added corectly on
    Portal Page ,but when I test my page I have :
    The Listener Returned the folowing message-
    Error 500 Java.Lang.Null.Pointer Exception
    Note:Portlet is compiled in JDeveloper 2.0 and there look Ok.
    Thanks

    we encountered the same error on aix4.3.3. in fact the error comes from a variable, that has not been initialized, jserv error log says the following:
    [07/11/2001 10:00:54:098 GMT+00:00] esvportal/init
    [07/11/2001 10:01:08:668 GMT+00:00] esvportal/Response status: 500 : java.lang.NullPointerException
         at oracle.portal.provider.v1.http.ServletProviderRequest.getAcceptLanguage(ServletProviderRequest.java:162)
         at oracle.portal.provider.v1.http.ServletProviderResponse.showPortlet(ServletProviderResponse.java:521)
         at oracle.portal.provider.v1.http.HttpProvider.dispatchProviderAction(HttpProvider.java:662)
         at oracle.portal.provider.v1.http.HttpProvider.service(HttpProvider.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:402)
         at org.apache.jserv.JServConnection.run(JServConnection.java:260)
         at java.lang.Thread.run(Thread.java:481)
    i habe a public page with 4 jsp portlets and one pl/sql portlet. the plsql ist working, every one of the jsp portlets gets the "getAcceptLanguage" error

  • Xi 3.1 SP3 giving java null pointer exception error on scheduling webi

    after we have the system uptime running for a few days and have schedule webi jobs successfully for a few days, we constant get the message java null pointer exception error on scheduling webi.
    This only have days after restarting the environment.
    Seems to be coming up after scheduling a certain amount of webi reports.
    Only doing a stop all services and restart resolves the issue.
    XI 3.1 SP3
    SAP IK Sp3
    Tomcat55
    HPUX-IA64 (Hpunix) platform.

    Hello, I have the same issue.  If someone gives you an answer please let me know how to fix it.

  • 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

  • Getting java.lang.Null pointer Exception when i close the pdf file.

    Hi,
    my application is java based thick client application.
    From my application, i am generating report file using crystal report tool.
    the report file is exported as pdf format and stored in my local macine. from this path, am displaying the report in a SWT browser.
    till now its working fine. when i close the browser, i am getting java.lang.null.pointer exception.
    i dont understand from this exception, printed in console.
    please help me.
    java.lang.NullPointerException
    at org.eclipse.swt.ole.win32.OleClientSite.onPaint(OleClientSite.java:921)
    at org.eclipse.swt.ole.win32.OleClientSite.access$2(OleClientSite.java:906)
    at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:131)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
    at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1424)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3842)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4541)
    at org.eclipse.swt.internal.ole.win32.COM.CoFreeUnusedLibraries(Native Method)
    at org.eclipse.swt.ole.win32.OleClientSite.releaseObjectInterfaces(OleClientSite.java:1084)
    at org.eclipse.swt.ole.win32.OleControlSite.releaseObjectInterfaces(OleControlSite.java:683)
    at org.eclipse.swt.ole.win32.OleClientSite.onDispose(OleClientSite.java:852)
    at org.eclipse.swt.ole.win32.OleClientSite.access$1(OleClientSite.java:847)
    at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:128)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:804)
    at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
    at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
    at org.eclipse.swt.widgets.Widget.dispose(Widget.java:441)
    at com.siemens.med.cad.hqm.reports.ReportViewer$1.widgetDisposed(ReportViewer.java:273)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:117)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:804)
    at org.eclipse.swt.widgets.Widget.dispose(Widget.java:441)
    at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:446)
    at org.eclipse.swt.widgets.Shell.dispose(Shell.java:674)
    at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:308)
    at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1643)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3789)
    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
    at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
    at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
    at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
    at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
    at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
    at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
    at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
    at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
    at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)
    at com.siemens.med.cad.hqm.view.mainUI.HQMMainForm.buildMainShell(HQMMainForm.java:246)
    at com.siemens.med.cad.hqm.event.UserLoginEventHandler.loginDisplay(UserLoginEventHandler.java:240)
    at com.siemens.med.cad.hqm.event.UserLoginEventHandler.widgetSelected(UserLoginEventHandler.java:97)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    this is the code i have written for display the report file in a browser:
    Display display = Display.getDefault() ;
         Shell shell = new Shell(display, SWT.RESIZE | SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.APPLICATION_MODAL);
    shell.setText(reportTitle);
    shell.setLayout(new FillLayout());
    shell.setMaximized(false);
    shell.setSize(800, 600);
    Composite comp = new Composite(shell, SWT.NONE);
    comp.setLayout(new FillLayout());
    final Browser browser = new Browser(comp, SWT.FLAT);
    try {
    File file = new File(exportFile);
    URL url = file.toURL();
    browser.setUrl("file:" + url.getPath());
    } catch (MalformedURLException malURLEx) {
    // malURLEx.printStackTrace();
    throw new ProgrammingExceptionAdapter(malURLEx);
    shell.addDisposeListener(new DisposeListener() {
    public void widgetDisposed(DisposeEvent arg0) {
    File file = new File(exportFile);
    if (file != null && file.exists()) {
    file.delete();
    browser.dispose();
    shell.open();
    shell.setFocus()'

    TitiTruc, welcome to the forum. Please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
    I'm locking this thread now.
    db

Maybe you are looking for

  • How to batch resize in Bridge CS6 or Image Processor using height only?

    I have batches of images that need to resized based on height only and would like to do so using Bridge/Image Processor. My height requirement is 1140px, however the original images are varied in landscape/portrait orientation and are of different as

  • Imported Archives (Java) - UDF - package not found

    Hi, I have created a simple Java program using NWDS and imported the jar file into the Namespace.  When I try to instantiate my class, it says Package does not exist. Can any one let me know why am I getting this error? Thanks Venkat Viswanathan

  • Java function activity getting deferred

    Hi I have created a simple Java Class File which set values to the item type attributes and return. Placed the class file in jdk/bin folder. Then i associated the class name to a function activity as "External Java" type. When i launched this process

  • Removing a 3750 from a stack

    I had 2 3750's in a stack. I powered them down and now when i power on the master i still have the config for the other 3750. Is there any way to remove the slaves config from my now stand alone (which once was master) switch with out wiping everythi

  • What is the latest firmware version for beats pill 2.0

    Hi Can someone tell me what the latest firmware version for beats pill 2.0 is? Thanks Sam