Bug 739809 - ExceptionInInitializerError caused by NullPointerException is thrown when creating Exchanges
Summary: ExceptionInInitializerError caused by NullPointerException is thrown when cre...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: 2.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-20 06:25 UTC by Zdenek Kraus
Modified: 2018-02-06 16:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Zdenek Kraus 2011-09-20 06:25:15 UTC
Description of problem:
In repeating test suite testing client, who creating exchanges, throws ExceptionInInitializerError Caused by NullPointerException.


Version-Release number of selected component (if applicable):
qpid-java-jca-0.10-9.el6.noarch
qpid-java-common-0.10-9.el6.noarch
qpid-java-example-0.10-9.el6.noarch
qpid-java-client-0.10-9.el6.noarch
java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.i686
java-1.6.0-openjdk-demo-1.6.0.0-1.39.1.9.8.el6_1.i686
java-1.6.0-openjdk-javadoc-1.6.0.0-1.39.1.9.8.el6_1.i686
java-1.6.0-openjdk-src-1.6.0.0-1.39.1.9.8.el6_1.i686
java-1.6.0-openjdk-devel-1.6.0.0-1.39.1.9.8.el6_1.i686


How reproducible:
very rare

Steps to Reproduce:
1. run reproducer with parameres:
--exchange-name 2995af89%d --session-per-thread --thread-cnt 31 --exchange-alternate-exchange  --exchange-type direct --mode jms --broker localhost --user guest --password guest --port 5672 --exchange-cnt 31
2. run as many times as you can, it's very rare so be patient

  
Actual results:
Option values for com.redhat.mrg.test.client.exchange.ExchangeCli: --exchange-name 2995af89%d --session-per-thread --thread-cnt 31 --exchange-alternate-exchange  --exchange-type direct --mode jms --broker localhost --user guest --password guest --port 5672 --exchange-cnt 31
Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.apache.qpid.client.protocol.AMQProtocolSession.<init>(AMQProtocolSession.java:93)
        at org.apache.qpid.client.protocol.AMQProtocolHandler.<init>(AMQProtocolHandler.java:189)
        at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:387)
        at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:276)
        at com.redhat.mrg.test.client.common.runner.RunnerJMS.createConnection(RunnerJMS.java:80)
        at com.redhat.mrg.test.client.common.runner.ThreadedRunner.run(ThreadedRunner.java:92)
        at com.redhat.mrg.test.client.exchange.ExchangeTest.main(ExchangeTest.java:103)
Caused by: java.lang.NullPointerException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:314)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at org.apache.qpid.framing.amqp_8_0.MethodRegistry_8_0.<init>(MethodRegistry_8_0.java:148)
        at org.apache.qpid.framing.amqp_8_0.MethodRegistry_8_0.<init>(MethodRegistry_8_0.java:55)
        at org.apache.qpid.framing.MethodRegistry.<clinit>(MethodRegistry.java:54)
        ... 7 more


Expected results:
no exception is thrown, and client successfully continues.

Additional info:
'2995af89' -- generated random string
reproducer -- see link below

Comment 2 Zdenek Kraus 2011-09-20 06:47:06 UTC
additional list of packages of qpid

python-qpid-0.10-1.el6.noarch
python-qpid-qmf-0.10-10.el6.i686
qpid-cpp-client-0.10-6.el6.i686
qpid-cpp-client-devel-0.10-6.el6.i686
qpid-cpp-client-devel-docs-0.10-6.el6.noarch
qpid-cpp-server-0.10-6.el6.i686
qpid-cpp-server-cluster-0.10-6.el6.i686
qpid-cpp-server-devel-0.10-6.el6.i686
qpid-cpp-server-store-0.10-6.el6.i686
qpid-cpp-server-xml-0.10-6.el6.i686
qpid-java-client-0.10-9.el6.noarch
qpid-java-common-0.10-9.el6.noarch
qpid-java-example-0.10-9.el6.noarch
qpid-java-jca-0.10-9.el6.noarch
qpid-qmf-0.10-10.el6.i686
qpid-tools-0.10-5.el6.noarch


Note You need to log in before you can comment on or make changes to this bug.