5 Replies Latest reply on Oct 27, 2009 9:51 AM by Jamie Goodyear

    Example Bridge  in FUSE 4.1.0.2 : NullPointerException

    jc Souvignet Newbie

      Hello,

       

      I have install Bridge example in Fuse 4.1.0.2.

      When I use the client.html, I have the following error :

       

      ########################

      java.lang.NullPointerException

      at org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:92)

      at org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:116)

      at org.apache.servicemix.jms.AbstractJmsProcessor.fromNMS(AbstractJmsProcessor.java:216)

      ...

      ########################

       

       

      How can i activate this example ?

       

      Thanks in advance,

        • 1. Re: Example Bridge  in FUSE 4.1.0.2 : NullPointerException
          Jamie Goodyear Newbie

          Hi,

           

          I'm sorry but I was not able to reproduce the issue you've encountered. Could you provide a little more information about your particular setup and installation? (OS platform, Java version, deployment method,...) My web browser for testing this demo was Firefox 3.0.14.

           

          Here is the setup I used to run the demo (gathered from console "info" command):

           

          Linux version 2.6.24-25-generic
          ServiceMix version          4.1.0.2-fuse
          ServiceMix Kernel version   1.1.0.1-fuse
          Java HotSpot(TM) 64-Bit Server VM version 11.3-b02 (1.6.0_13-b03)
          

           

          I installed the Bridge demo using the Servicemix console, using the following command:

           

          osgi/install -s mvn:org.apache.servicemix.examples.bridge/bridge-sa/4.1.0.2-fuse/zip
          

           

          Then I verified that the application was installed and running by executing "jbi/list".

           

          Service Assemblies
          ------------------
             State                  Name                  Description
          [Started ] [bridge-sa                     ]     ServiceMix :: Samples :: Bridge :: SA
          

           

          On a separate terminal console I then ran "netstat -an | grep 8192" to verify that the application was listening on port 8192.

           

          tcp6       0      0 :::8192                 :::*                    LISTEN 
          

           

          Using the provided client.html page I received "STATUS: 202", similarly running "mvn exec:java" in the client folder resulted in "202" response code.

           

          Cheers,

          J

          • 2. Re: Example Bridge  in FUSE 4.1.0.2 : NullPointerException
            jc Souvignet Newbie

            Thanks for this quickly reply.

             

            My context is :

             

             

            Plateform :

            Windows XP version 5.1

             

            ServiceMix Kernel version   1.1.0.1-fuse

            ServiceMix version          4.1.0.2-fuse

             

            Java Virtual Machine        Java HotSpot(TM) Server VM version 11.0-b15

             

             

            Instalaltion with Maven :

            osgi/install -s mvn:org.apache.servicemix.examples.bridge/bridge-sa/4.1.0.2-fuse/zip

             

             

            Installation is okai with :

            mvn:org.apache.servicemix.examples.bridge/bridge-sa/4.1.0.2-fuse/zip

             

            Port 8192 is listenning.

             

             

            My jvm is :

            java version "1.6.0_10"

            Java(TM) SE Runtime Environment (build 1.6.0_10-b33)

            Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

             

            any idea ?

            • 3. Re: Example Bridge  in FUSE 4.1.0.2 : NullPointerException
              jc Souvignet Newbie

              To finish :

               

              after send request by client.html I have :

               

              h2. HTTP ERROR: 500

              INTERNAL_SERVER_ERROR


              RequestURI=/bridge/

              h3. Caused by:

              java.lang.NullPointerException

                   at org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:92)

               

              I try with JVM 1.5 and 1.6 under JDK with the same error result

              I try with IE and firefox with the same error result.

              • 4. Re: Example Bridge  in FUSE 4.1.0.2 : NullPointerException
                jc Souvignet Newbie

                Sorry,

                 

                I have created a new brocker, so I have updated listen adresse for active mq to tcp://localhost:61617.

                 

                I forget to update brige example.

                 

                With update, client.html response status is effectively 202 and no exception is thrown

                • 5. Re: Example Bridge  in FUSE 4.1.0.2 : NullPointerException
                  Jamie Goodyear Newbie

                  No problem, good to hear that you've resolved the issue

                   

                  J