5 Replies Latest reply on Feb 8, 2005 10:52 AM by msargent

    ERROR org.jboss.webservice.client.PortProxy

    jobor

      Hello,

      The web service is working fine in JBoss 4.0.1RC2.
      I'm using a standalone client with dynamic proxy and the JBoss ServiceFactoryImpl class.
      Now I'm throwing my standard Facade exception and yes the mapping is right in my client as you can see in the log.

      But what does the ERROR mean : org.jboss.webservice.client.PortProxy[main] - Port error?
      When I don't throw an error all things work well and I get my XML document via SOAP.

      The log:
      Starting my test suite...
      2004-12-13 23:08:53,576 ERROR org.jboss.webservice.client.PortProxy[main] - Port error
      nl.borsoft.standard.j2ee.ejb.FacadeException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at java.lang.Class.newInstance0(Class.java:308)
      at java.lang.Class.newInstance(Class.java:261)
      at org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:139)
      at org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:123)
      at org.jboss.webservice.encoding.ser.MetaDataBeanDeserializer.(MetaDataBeanDeserializer.java:25)
      at org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory.newMetaDataBeanDeserializer(MetaDataBeanDeserializerFactory.java:47)
      at org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory.getSpecialized(MetaDataBeanDeserializerFactory.java:37)
      at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:118)
      at org.apache.axis.encoding.DeserializationContextImpl.getDeserializer(DeserializationContextImpl.java:575)
      at org.apache.axis.encoding.DeserializationContextImpl.getDeserializerForType(DeserializationContextImpl.java:596)
      at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
      at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1166)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
      at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:258)
      at org.apache.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:657)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:430)
      at org.apache.axis.client.Call.invokeEngine(Call.java:3052)
      at org.apache.axis.client.Call.invoke(Call.java:3014)
      at org.apache.axis.client.Call.invoke(Call.java:2608)
      at org.apache.axis.client.Call.invoke(Call.java:2513)
      at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
      at org.apache.axis.client.Call.invoke(Call.java:1914)
      at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
      at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:372)
      at $Proxy0.getXMLByNumber(Unknown Source)
      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 org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:111)
      at $Proxy1.getXMLByNumber(Unknown Source)
      at nl.borsoft.daisy.client.tape.TapeTest.getXMLFromSoap(TapeTest.java:411)
      at nl.borsoft.daisy.client.tape.TapeTest.(TapeTest.java:63)
      at nl.borsoft.daisy.client.tape.TapeTest.main(TapeTest.java:69)

      Johan

        • 1. Re:  WARN  [ServiceDescription] Guessing fault java type fro
          jobor

          Exceptions were fixed in 4.0.1RC2, why dont you give that a shot?
          The 4.0.1 release is coming very soon.

          -Jason

          • 2. Re: ERROR org.jboss.webservice.client.PortProxy
            jason.greene

            That error message is just an information log message that indicates that your Proxy threw an exception. Are you sure its not working fine and your testsuite is just not catching the exception?

            -Jason

            • 3. Forum Corruption
              jason.greene

              I think this topic is experiencing database corruption, there is a post that is missing, and authors are mixed up, can you guys take a look at it?

              Thanks,
              -Jason

              • 4. Re: ERROR org.jboss.webservice.client.PortProxy
                jason.greene

                 


                Yes Jason it is working fine but.....

                Actually the stack trace is printed twice.
                The first one is from a log instance in the PortProxy class.
                This is the listing in the first message of this topic.

                The second one is from my own try and catch block.
                And it is caught in : } catch (FacadeException e) {

                So the Logger in PortProxy is informing me that something went wrong.
                At this moment I don't know if I can disable the output from the Logger on my console. Thomas did used the Logger for some good reason?
                So disabling the output is maybe not a good idea?

                Johan.


                I agree that the log level is too high, it should probably be debug, or at least warn. As a workaround, you can just make a log4j.properties or log4j.xml file that filters log messages from that class.

                The snippet to log4j.xml would look like this:
                <category name="org.jboss.webservice.client.PortProxy">
                 <priority value="OFF"/>
                </category>
                


                The snippet to log4j.properties would like this:
                log4j.category.org.jboss.webservice.client.PortProxy=OFF
                


                -Jason




                • 5. Re: ERROR org.jboss.webservice.client.PortProxy
                  msargent

                  I am experiencing an error when running the "Duke's Bank" tutorial. at first I thought that it might just be lack of knowledge (and it still may be) but I have now tried this on two different machines and once using startup guide 4.0 (version 2) and once, this morning, with version 3 and it's new set of code. I can run the web interface fine (http://localhost:8080/bank/main). when I run the "db-list" ant target I get data back.

                  when I run the ant target "run-ws" I get the error below. Any direction I can get on how to debug and/or info on what "port" it might be conflicking with would be helpful. Thanks in advance, --Mike

                  D:\java\j2eetutorial14\examples\bank>ant -f jboss-build.xml run-ws
                  Buildfile: jboss-build.xml

                  run-ws:
                  [java] Customer: 200
                  [java] 2005-02-08 10:37:18,476 ERROR org.jboss.webservice.client.PortProxy[
                  main] - Port error
                  [java] java.lang.NullPointerException
                  [java] at java.util.Hashtable.put(Hashtable.java:396)
                  [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProp
                  erty(SAXParserImpl.java:395)
                  [java] at org.apache.axis.encoding.DeserializationContextImpl.parse(Des
                  erializationContextImpl.java:263)
                  [java] Exception in thread "main" java.rmi.RemoteException: null; nested ex
                  ception is:
                  [java] java.lang.NullPointerException
                  [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:1
                  84)
                  [java] at $Proxy1.getAccountsOfCustomer(Unknown Source)
                  [java] at com.jboss.ebank.WSClient.main(WSClient.java:33)
                  [java] Caused by: java.lang.NullPointerException
                  [java] at java.util.Hashtable.put(Hashtable.java:396)
                  [java] at org.apache.axis.MessagePart.getAsSOAPEnvelope(MessagePart.jav
                  a:657)
                  [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:430)
                  [java] at org.apache.axis.Message.getContentType(Message.java:496)
                  [java] at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPS
                  ender.java:386)
                  [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.j
                  ava:126)
                  [java] at org.apache.axis.strategies.InvocationStrategy.visit(Invocatio
                  nStrategy.java:73)
                  [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
                  [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
                  [java] at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.
                  java:126)
                  [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProp
                  erty(SAXParserImpl.java:395)
                  [java] at org.apache.axis.encoding.DeserializationContextImpl.parse(Des
                  erializationContextImpl.java:263)
                  [java] at org.apache.axis.MessagePart.getAsSOAPEnvelope(MessagePart.jav
                  a:657)
                  [java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:430)
                  [java] at org.apache.axis.Message.getContentType(Message.java:496)
                  [java] at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPS
                  ender.java:386)
                  [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.j
                  ava:126)
                  [java] at org.apache.axis.strategies.InvocationStrategy.visit(Invocatio
                  nStrategy.java:73)
                  [java] at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
                  [java] at org.apache.axis.client.Call.invoke(Call.java:3014)
                  [java] at org.apache.axis.client.Call.invoke(Call.java:2608)
                  [java] at org.apache.axis.client.Call.invoke(Call.java:2513)
                  [java] at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
                  [java] at org.apache.axis.client.Call.invoke(Call.java:1914)
                  [java] at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265
                  )
                  [java] at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy
                  .java:372)
                  [java] at $Proxy0.getAccountsOfCustomer(Unknown Source)
                  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
                  sorImpl.java:39)
                  [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
                  hodAccessorImpl.java:25)
                  [java] at java.lang.reflect.Method.invoke(Method.java:585)
                  [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:1
                  11)
                  [java] at $Proxy1.getAccountsOfCustomer(Unknown Source)
                  [java] at com.jboss.ebank.WSClient.main(WSClient.java:33)
                  [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
                  [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
                  [java] at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.
                  java:126)
                  [java] at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
                  [java] at org.apache.axis.client.Call.invoke(Call.java:3014)
                  [java] at org.apache.axis.client.Call.invoke(Call.java:2608)
                  [java] at org.apache.axis.client.Call.invoke(Call.java:2513)
                  [java] at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
                  [java] at org.apache.axis.client.Call.invoke(Call.java:1914)
                  [java] at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265
                  )
                  [java] at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy
                  .java:372)
                  [java] at $Proxy0.getAccountsOfCustomer(Unknown Source)
                  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
                  sorImpl.java:39)
                  [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
                  hodAccessorImpl.java:25)
                  [java] at java.lang.reflect.Method.invoke(Method.java:585)
                  [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:1
                  11)
                  [java] ... 2 more
                  [java] Java Result: 1

                  BUILD SUCCESSFUL
                  Total time: 7 seconds
                  D:\java\j2eetutorial14\examples\bank>