You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org> on 2009/09/14 11:36:58 UTC

[jira] Updated: (QPID-2099) qpid-run does not correctly set Qpid broker PNAME property

     [ https://issues.apache.org/jira/browse/QPID-2099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie updated QPID-2099:
---------------------------------

    Description: 
Currently qpid-run expects that you set QPID_PNAME to a complete java command line property.
i.e. QPID_PNAME=-DPNAME=JIM
However, if that is how the variable is to be used the QPID_OPTS should be used for that.
The value of QPID_PNAME should be used to set the value of PNAME not BE the property.

NOTE : This change will be backwardly compatible with all tools as the full value set for QPID_PNAME will be on the comman line. 

This change will avoid users doing the following:
$ export QPID_PNAME=JIM
$ ./qpid-server
Setting QPID_WORK to /home/ritchiem as default
System Properties set to -Damqj.logging.level=info -DQPID_HOME=/home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build -DQPID_WORK=/home/ritchiem
Using QPID_CLASSPATH /home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build/lib/qpid-all.jar:/home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build/lib/bdbstore-launch.jar
Info: QPID_JAVA_GC not set. Defaulting to JAVA_GC -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError
Info: QPID_JAVA_MEM not set. Defaulting to JAVA_MEM -Xmx1024m
Exception in thread "main" java.lang.NoClassDefFoundError: JIM
Caused by: java.lang.ClassNotFoundException: JIM
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)


  was:
This JIRA covers two issues as both qpid-run and qpid.stop need to be kept in sync WRT the PNAME property.

qpid-run: 
Currently this expects that you set QPID_PNAME to a complete java command line property.
i.e. QPID_PNAME=-DPNAME=JIM
However, if that is how the variable is to be used the QPID_OPTS should be used for that.
The value of QPID_PNAME should be used to set the value of PNAME not BE the property.

NOTE : This change will be backwardly compatible with all tools as the full value set for QPID_PNAME will be on the comman line. 

This change will avoid users doing the following:
$ export QPID_PNAME=JIM
$ ./qpid-server
Setting QPID_WORK to /home/ritchiem as default
System Properties set to -Damqj.logging.level=info -DQPID_HOME=/home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build -DQPID_WORK=/home/ritchiem
Using QPID_CLASSPATH /home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build/lib/qpid-all.jar:/home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build/lib/bdbstore-launch.jar
Info: QPID_JAVA_GC not set. Defaulting to JAVA_GC -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError
Info: QPID_JAVA_MEM not set. Defaulting to JAVA_MEM -Xmx1024m
Exception in thread "main" java.lang.NoClassDefFoundError: JIM
Caused by: java.lang.ClassNotFoundException: JIM
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)



> qpid-run does not correctly set Qpid broker PNAME property
> ----------------------------------------------------------
>
>                 Key: QPID-2099
>                 URL: https://issues.apache.org/jira/browse/QPID-2099
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.5
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: 0.6
>
>
> Currently qpid-run expects that you set QPID_PNAME to a complete java command line property.
> i.e. QPID_PNAME=-DPNAME=JIM
> However, if that is how the variable is to be used the QPID_OPTS should be used for that.
> The value of QPID_PNAME should be used to set the value of PNAME not BE the property.
> NOTE : This change will be backwardly compatible with all tools as the full value set for QPID_PNAME will be on the comman line. 
> This change will avoid users doing the following:
> $ export QPID_PNAME=JIM
> $ ./qpid-server
> Setting QPID_WORK to /home/ritchiem as default
> System Properties set to -Damqj.logging.level=info -DQPID_HOME=/home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build -DQPID_WORK=/home/ritchiem
> Using QPID_CLASSPATH /home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build/lib/qpid-all.jar:/home/ritchiem/dev/Apache/git/qpid-dev/qpid/java/build/lib/bdbstore-launch.jar
> Info: QPID_JAVA_GC not set. Defaulting to JAVA_GC -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError
> Info: QPID_JAVA_MEM not set. Defaulting to JAVA_MEM -Xmx1024m
> Exception in thread "main" java.lang.NoClassDefFoundError: JIM
> Caused by: java.lang.ClassNotFoundException: JIM
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org