2 Replies Latest reply on Jul 2, 2003 9:14 PM by harrikokkonen

    CORBA (visibroker) servlet throwing NullPointerException

    sconemix Newbie

      G'day Guys,
      I am currently trying to get a servlet running inside JBoss321/tomcat. The servlet just initialises the orb and makes a call to a external CORBA server. I have removed jacorb.jar from the jboss install and iiop-service.xml config file. Inside the war is Visibroker4.1 jar. This test case runs in websphere, standalone jetty and standalone tomcat but throws the following exception when run in 'all' or 'default' server.
      Any ideas would be greatly appreciated.

      10:37:38,716 ERROR [STDERR] java.lang.NullPointerException
      [Loaded java.lang.StackTraceElement from /usr/java/j2sdk1.4.1_03/jre/lib/rt.jar]
      10:37:38,721 ERROR [STDERR] at java.util.Hashtable.put(Hashtable.java:389)
      10:37:38,721 ERROR [STDERR] at com.inprise.vbroker.properties.CommandLinePro
      cessor.process(CommandLineProcessor.java:90)
      10:37:38,721 ERROR [STDERR] at com.inprise.vbroker.orb.ORB.set_parameters(OR
      B.java:943)
      10:37:38,722 ERROR [STDERR] at org.omg.CORBA.ORB.init(ORB.java:337)
      10:37:38,722 ERROR [STDERR] at com.jbwere.servlet.impl.TestCorbaServlet.doGe
      t(TestCorbaServlet.java:62)
      10:37:38,722 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
      rvlet.java:740)
      10:37:38,723 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
      rvlet.java:853)
      10:37:38,723 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:247)
      10:37:38,724 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:193)
      10:37:38,724 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
      .invoke(StandardWrapperValve.java:256)
      10:37:38,724 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
      ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      10:37:38,725 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:480)
      10:37:38,725 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
      (ContainerBase.java:995)
      10:37:38,725 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
      .invoke(StandardContextValve.java:191)
      10:37:38,726 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
      ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      10:37:38,726 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.
      invoke(CertificatesValve.java:246)
      10:37:38,727 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
      ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      10:37:38,727 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:480)
      10:37:38,727 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
      (ContainerBase.java:995)
      10:37:38,728 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invo
      ke(StandardContext.java:2415)
      10:37:38,728 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in
      voke(StandardHostValve.java:180)
      10:37:38,728 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
      ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      10:37:38,729 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherVal
      ve.invoke(ErrorDispatcherValve.java:171)
      10:37:38,729 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
      ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      10:37:38,732 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i
      nvoke(ErrorReportValve.java:172)
      10:37:38,733 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
      ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      10:37:38,733 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.inv
      oke(AccessLogValve.java:509)
      10:37:38,733 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
      ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      10:37:38,734 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:480)
      10:37:38,734 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
      (ContainerBase.java:995)
      10:37:38,735 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.
      invoke(StandardEngineValve.java:174)
      10:37:38,735 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
      ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      10:37:38,735 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:480)
      10:37:38,736 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
      (ContainerBase.java:995)
      10:37:38,736 ERROR [STDERR] at org.apache.coyote.tomcat4.CoyoteAdapter.servi
      ce(CoyoteAdapter.java:223)
      10:37:38,736 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc
      ess(Http11Processor.java:594)
      10:37:38,737 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http1
      1ConnectionHandler.processConnection(Http11Protocol.java:392)
      10:37:38,737 ERROR [STDERR] at org.apache.tomcat.util.net.TcpWorkerThread.ru
      nIt(PoolTcpEndpoint.java:565)
      10:37:38,738 ERROR [STDERR] at org.apache.tomcat.util.threads.ThreadPool$Con
      trolRunnable.run(ThreadPool.java:619)

        • 1. CORBA (visibroker) servlet throwing NullPointerException
          harrikokkonen Newbie

          G'day Guys,
          I am currently trying to get a servlet running inside JBoss321/tomcat. The servlet just initialises the orb and makes a call to a external CORBA server. I have removed jacorb.jar from the jboss install and iiop-service.xml config file. Inside the war is Visibroker4.1 jar. This test case runs in websphere, standalone jetty and standalone tomcat but throws the following exception when run in 'all' or 'default' server.
          Any ideas would be greatly appreciated.

          10:37:38,716 ERROR [STDERR] java.lang.NullPointerException
          [Loaded java.lang.StackTraceElement from /usr/java/j2sdk1.4.1_03/jre/lib/rt.jar]
          10:37:38,721 ERROR [STDERR] at java.util.Hashtable.put(Hashtable.java:389)
          10:37:38,721 ERROR [STDERR] at com.inprise.vbroker.properties.CommandLinePro
          cessor.process(CommandLineProcessor.java:90)
          10:37:38,721 ERROR [STDERR] at com.inprise.vbroker.orb.ORB.set_parameters(OR
          B.java:943)
          10:37:38,722 ERROR [STDERR] at org.omg.CORBA.ORB.init(ORB.java:337)
          10:37:38,722 ERROR [STDERR] at com.jbwere.servlet.impl.TestCorbaServlet.doGe
          t(TestCorbaServlet.java:62)
          10:37:38,722 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
          rvlet.java:740)
          10:37:38,723 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
          rvlet.java:853)
          10:37:38,723 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
          in.internalDoFilter(ApplicationFilterChain.java:247)
          10:37:38,724 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
          in.doFilter(ApplicationFilterChain.java:193)
          10:37:38,724 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
          .invoke(StandardWrapperValve.java:256)
          10:37:38,724 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
          ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
          10:37:38,725 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
          oke(StandardPipeline.java:480)
          10:37:38,725 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
          (ContainerBase.java:995)
          10:37:38,725 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
          .invoke(StandardContextValve.java:191)
          10:37:38,726 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
          ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
          10:37:38,726 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.
          invoke(CertificatesValve.java:246)
          10:37:38,727 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
          ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
          10:37:38,727 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
          oke(StandardPipeline.java:480)
          10:37:38,727 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
          (ContainerBase.java:995)
          10:37:38,728 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invo
          ke(StandardContext.java:2415)
          10:37:38,728 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in
          voke(StandardHostValve.java:180)
          10:37:38,728 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
          ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
          10:37:38,729 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherVal
          ve.invoke(ErrorDispatcherValve.java:171)
          10:37:38,729 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
          ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
          10:37:38,732 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i
          nvoke(ErrorReportValve.java:172)
          10:37:38,733 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
          ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
          10:37:38,733 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.inv
          oke(AccessLogValve.java:509)
          10:37:38,733 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
          ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
          10:37:38,734 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
          oke(StandardPipeline.java:480)
          10:37:38,734 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
          (ContainerBase.java:995)
          10:37:38,735 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.
          invoke(StandardEngineValve.java:174)
          10:37:38,735 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
          ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
          10:37:38,735 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
          oke(StandardPipeline.java:480)
          10:37:38,736 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
          (ContainerBase.java:995)
          10:37:38,736 ERROR [STDERR] at org.apache.coyote.tomcat4.CoyoteAdapter.servi
          ce(CoyoteAdapter.java:223)
          10:37:38,736 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc
          ess(Http11Processor.java:594)
          10:37:38,737 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http1
          1ConnectionHandler.processConnection(Http11Protocol.java:392)
          10:37:38,737 ERROR [STDERR] at org.apache.tomcat.util.net.TcpWorkerThread.ru
          nIt(PoolTcpEndpoint.java:565)
          10:37:38,738 ERROR [STDERR] at org.apache.tomcat.util.threads.ThreadPool$Con
          trolRunnable.run(ThreadPool.java:619)

          • 2. Re: CORBA (visibroker) servlet throwing NullPointerException
            sunitashukla Newbie

            Hi

            Did u get the solution?

            I am too hung up with same type of problem.

            I need to use ORB from websphere but don't how to do it.

            Please help