6 Replies Latest reply: Feb 6, 2013 7:20 AM by skmVivek RSS

    Could not initialize custom class in jar

    skmVivek
      Hi,

      Now I am working in oracle r12, i have working custom code for calling external payment system in 11i.

      The same code is used in r12 but it is not working in r12, so i put line by line log to track.

      I able to print lines before object creation step for a custom class, after that log is not printed, i dont know what was the issue, and the class file is located in jar file.

      Jar entry put in the following files

      orion-application.xml
      ojspCompile.properties

      and in application log i have the following error.

      13/02/06 00:02:12.44 html: chain failed
      javax.servlet.ServletException: Could not initialize class com.paypal.sdk.core.nvp.NVPAPICaller
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:899)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:816)
           at sample.jspService(_sample.java:203)
           at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
           at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
           at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
           at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
           at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
           at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
           at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
           at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
           at java.lang.Thread.run(Thread.java:619)

      I dont know what do for the javax.servlet.ServletException. Please give some solution to resolve this issue.

      Thanks
      Vivek
        • 1. Re: Could not initialize custom class in jar
          EJP
          Is there a caused-by exception further down?
          • 2. Re: Could not initialize custom class in jar
            skmVivek
            i dont know how to check it.
            • 3. Re: Could not initialize custom class in jar
              EJP
              You don't know how to check a stack trace for a caused-by exception further down than what you have posted?
              • 4. Re: Could not initialize custom class in jar
                skmVivek
                Hi,

                getStackTrace output is. There is no caused-by exception.

                13/02/06 15:59:58 java.lang.Thread.getStackTrace(Thread.java:1426)
                13/02/06 15:59:58 oracle.apps.xxpyx.ppl.DoCapture.DoCapture(DoCapture.java:86)
                13/02/06 15:59:58 sample.jspService(_sample.java:189)
                13/02/06 15:59:58 com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                13/02/06 15:59:58 oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
                13/02/06 15:59:58 oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                13/02/06 15:59:58 oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                13/02/06 15:59:58 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                13/02/06 15:59:58 com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
                13/02/06 15:59:58 oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
                13/02/06 15:59:58 com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
                13/02/06 15:59:58 oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
                13/02/06 15:59:58 com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
                13/02/06 15:59:58 com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                13/02/06 15:59:58 com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
                13/02/06 15:59:58 com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
                13/02/06 15:59:58 com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                13/02/06 15:59:58 com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                13/02/06 15:59:58 oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                13/02/06 15:59:58 oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
                13/02/06 15:59:58 oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
                13/02/06 15:59:58 oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
                13/02/06 15:59:58 com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
                13/02/06 15:59:58 java.lang.Thread.run(Thread.java:619)

                Thanks
                Vivek
                • 5. Re: Could not initialize custom class in jar
                  EJP
                  You've misunderstood. I am referring to the stack trace you already posted, the one that came with the exception. I wasn't asking you to generate a new stack trace somehow. Is there more of the original stack trace?
                  • 6. Re: Could not initialize custom class in jar
                    skmVivek
                    Hi,

                    In DoCapture method process not crossing the object creation step.

                    I imported the object creation class also but it not crossing that step.

                    import com.paypal.sdk.services.NVPCallerServices;
                    public class DoCapture
                    {
                    NVPCallerServices caller = null;
                    public String DoCapture(String a,String b, String c,String d,String e,String f)
                    {
                    ........
                    //upto here log printed.
                    caller = new NVPCallerServices();
                    //this log not printed.
                    .......
                    ......
                    }
                    }