Announcement Announcement Module
Collapse
No announcement yet.
Spring bean initialization fails with Jython, works with Java Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring bean initialization fails with Jython, works with Java

    We are trying to use same spring.xml in Java EE and Jython applications. JMS configuration is working fine in Java, but an exception is thrown in Jython.

    Exception is:

    Code:
            Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: port out of range:-14
    It seems to be caused by the following XML:

    Code:
            <property name="environment">
                <props>
                    <prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
                    <prop key="java.naming.provider.url">t3://192.168.1.2:7003"</prop>
                </props>
            </property>
    If I change url to

    Code:
    <prop key="java.naming.provider.url">t3://192.168.1.2"</prop>
    I don't get the error message, so for some reason the ':7003' part causes the issue. Changing the port number does not affect the error, i.e. ':7004' and ':1234' result in the same exception.
    Last edited by tputkonen; Jun 10th, 2010, 08:36 AM.

  • #2
    When posting code use [ code][/code ] tags .


    Your number is invaid it should 7003 not 7003"....

    Comment


    • #3
      Thanks a lot! I just missed the extra " completely.

      Comment

      Working...
      X