Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Jesse Reim

Greenhorn
+ Follow
since Jun 17, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jesse Reim





yeah i know that's where its coming from but that is a third party jar and the source is not available so i couldn't step through it, i have solved this issue and it was using a version of the MQ client 7.0.1.1 that was not compatable with jboss, so i switched to 6.0.2.9 and it is working now....
11 years ago
Yes i am certain it is a Jboss configuration issue. because if i wrap a connection test in a stand alone jar and run that from the command line it works however i get the null pointer when trying to run that within jboss...

I am looking into what is configured in the C:\jboss4\server\deploy\jms directory and possible contention there...

Im sorry for the double post i was not sure where it was most applicable ...

any assistance would be greatly appreciated
11 years ago
I am trying to execute the following command
view plaincopy to clipboardprint?

1. MQConnectionFactory connFactory = new MQConnectionFactory();

MQConnectionFactory connFactory = new MQConnectionFactory();

and i get a null pointer that i can't seem to track down, i have attached the stack trace, any help would be greatly appreciated.
java.lang.NullPointerException
at com.ibm.msg.client.jms.internal.JmsFactoryFactoryImpl.getInstance(JmsFactoryFactoryImpl.java:169)
at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.setProviderFactory(JmsConnectionFactoryImpl.java:165)
at com.ibm.mq.jms.MQConnectionFactory.<init>(MQConnectionFactory.java:271)
at com.foundation.agent.plugin.JMSClient.createConnection(JMSClient.java:154)
at com.foundation.agent.plugin.JMSClient.launch(JMSClient.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

i am loading the class that calls the new MQConectionFactory() using a class loader so i suspect that some jboss JMS lib possibly causing this.

more info:
com.ibm.mq.runtime_7.0.1.0\lib

jars
com.ibm.mq.headers.jar
com.ibm.mqjms.jar
jms.jar
com.ibm.mq.jar
connector.jar
jta.jar
com.ibm.mq.jmqi.jar
dhbcore.jar
providerutil.jar
com.ibm.mq.pcf.jar
fscontext.jar
I am trying to execute the following command


and i get a null pointer that i can't seem to track down, i have attached the stack trace, any help would be greatly appreciated.
java.lang.NullPointerException
at com.ibm.msg.client.jms.internal.JmsFactoryFactoryImpl.getInstance(JmsFactoryFactoryImpl.java:169)
at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.setProviderFactory(JmsConnectionFactoryImpl.java:165)
at com.ibm.mq.jms.MQConnectionFactory.<init>(MQConnectionFactory.java:271)
at com.foundation.agent.plugin.JMSClient.createConnection(JMSClient.java:154)
at com.foundation.agent.plugin.JMSClient.launch(JMSClient.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

i am loading the class that calls the new MQConectionFactory() using a class loader so i suspect that some jboss JMS lib possibly causing this.

more info:
com.ibm.mq.runtime_7.0.1.0\lib

jars
com.ibm.mq.headers.jar
com.ibm.mqjms.jar
jms.jar
com.ibm.mq.jar
connector.jar
jta.jar
com.ibm.mq.jmqi.jar
dhbcore.jar
providerutil.jar
com.ibm.mq.pcf.jar
fscontext.jar
11 years ago
So i believe what i am asking is this

Is it possible to use JDOM Document without having access to the schemes that are defined in the first line of the XML file....

can i just clobber them?
I dont know if this matters but both the URI's <somesite> dont actually contain the xsd's...was i too naive to think that didnt matter?
yes and the prefix for the namespace is txme for both the Envlope and the header...
sorry i left this off

and bis is a bufferedInputStream to the full xml file.

Document sdoc = saxb.build(bis);
Element root = sdoc.getRootElement();

So i cant quite seem to find my misstep here...

XML
<txme:TXM_Envelope xmlns:txme="http://www.<some site>">
<txme:TXM_Header>
</txme:TXM_Header>
</txme:TXM_Envelope>

Java
Namespace ns = Namespace.getNamespace("txme","http://www.<some site>");
Element header = root.getChild("TXM_Header", ns);

and i keep getting null for the element header and i can't quite under stand what i am doing wrong

I thought that by defining the prefix to the txme that i should be able to get the element?

thanks in advance
yeah i tried using that to convert the p7b but it didnt work
11 years ago
Hello all i have hit a road block and could really use a hand because at this point im

i got a p7b certificate and need to use it to make a SSL connection to an MQConnection.
I cant seem to make the connection and i believe this has to do with how i stored the p7b file into my keystore.
I am installing the certificate into a new keystore in the following ways:
1. couldn't add it directly using key tool because it said it wasnt a X.509 cert (which i agree with)
2. converted it to a root.cer and other.cer and added them both to a new key store as ailas root and other (FAIL)
3. concatenated them into one file join.cer and added that to the keystore (FAIL)
4. There was another set of data with just some plain text starting with ----BEGIN CERT---- that was included in the body but it isnt a X.509 according to keytool

I am pretty baffled at this point if any one could help it would be greatly appreciated!!

Thanks
JR
11 years ago