5 Replies Latest reply on Apr 6, 2003 7:24 AM by hanxuerui

    postgres javax.naming.NamingException

    hanxuerui Newbie

      I have made this work on Windows 2000, I have made the directly jdbc call to postgres. I have sucessfully configured a DB2 datasource for jboss, but I can not make the postgres datasource work, it said:

      javax.naming.NamingException: Could not dereference object [Root exception is java.lang.NullPointerException] Could not dereference object

        • 1. Re: postgres javax.naming.NamingException
          hanxuerui Newbie

          Sorry, have not finished my message, the attatch button will post the message, next time I should be careful.

          Thanks, please let me know where you think could be a problem in the linux plant form. I have met a problem before, the linux has to have a host name configured, otherwise the jboss will not start up.

          What is this time?

          • 2. Re: postgres javax.naming.NamingException
            hanxuerui Newbie

            Sorry, have not finished my message, the attatch button will post the message, next time I should be careful.

            Thanks, please let me know where you think could be a problem in the linux plant form. I have met a problem before, the linux has to have a host name configured, otherwise the jboss will not start up.

            What is this time?

            • 3. Re: postgres javax.naming.NamingException
              hanxuerui Newbie

              Here is another thing I think might mean somthing to somebody.
              I invoked
              javax.resource.spi.ManagedConnectionFactory startManagedConnectionFactory() through the jms-console on the DS MBean, it has problem like this:

              javax.servlet.ServletException: Failed to invoke operation
              at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:190)
              at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:78)
              at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:60)
              .....
              and:
              root cause

              javax.management.IntrospectionException: Failed to find PropertyEditor for type: javax.resource.spi.ConnectionManager
              at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:217)
              at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:196)
              at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:183)
              at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:78)
              at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:60)



              • 4. Re: postgres javax.naming.NamingException
                hanxuerui Newbie

                Here is another thing I think might mean somthing to somebody.
                I invoked
                javax.resource.spi.ManagedConnectionFactory startManagedConnectionFactory() through the jms-console on the DS MBean, it has problem like this:

                javax.servlet.ServletException: Failed to invoke operation
                at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:190)
                at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:78)
                at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:60)
                .....
                and:
                root cause

                javax.management.IntrospectionException: Failed to find PropertyEditor for type: javax.resource.spi.ConnectionManager
                at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:217)
                at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:196)
                at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:183)
                at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:78)
                at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:60)



                • 5. Re: postgres javax.naming.NamingException
                  hanxuerui Newbie

                  You know what, I got it working, I even don't know what happened.

                  I installed Redhat 9, reinstalled everything, and rewrote the example I used to test the datasource. Then it worked, I don't know what it is, maybe the OS has something with it, or the reinstallation or the rewriting of the testing code.

                  I am glad it is working now.