Results 1 to 3 of 3

Thread: Spring bean initialization fails with Jython, works with Java

  1. #1
    Join Date
    Jun 2010
    Posts
    2

    Default 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 at 07:36 AM.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    When posting code use [ code][/code ] tags .


    Your number is invaid it should 7003 not 7003"....
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Jun 2010
    Posts
    2

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •