ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportUnable to fetch response from HTTP URL

Post new topicReply to topic
Unable to fetch response from HTTP URL View previous topic :: View next topic
Author Message
prudvi raj
PostPosted: Wed Oct 10, 2018 10:06 pm Post subject: Unable to fetch response from HTTP URL Reply with quote

Newbie

Joined: 11 Apr 2017
Posts: 2

Hi All,

We had a existing flow in IIB v-9 which our flow will call a static method in java class. In that method we wrote some logic to get the xml response from HTTP URL filtering the response and send it to a compute node variable.

It works fine while we are working with IIB version 9.0.0.8 and its working fine as a standalone java project in IIB-10.0.0.12, but we are unable to fetch the response in IIB version 10.0.0.12 if we use that code in the message flow.

Getting this exception javax.net.ssl.SSLException: java.lang.NullPointerException at the below line 3
URL data = new URL(generate_URL);
HttpURLConnection con = (HttpURLConnection) data.openConnection();
in = new BufferedReader(new InputStreamReader(con.getInputStream()));

we added even certificates from the site url into our broker cacerts file and restarted the broker still facing the same issue.

Any help would be greatly appreciated, please advise.

Thanks,
Prudvi
Back to top
View user's profile Send private message
timber
PostPosted: Thu Oct 11, 2018 12:45 am Post subject: Reply with quote

Sentinel

Joined: 25 Aug 2015
Posts: 856

Why are you using Java to perform this HTTP get? The normal solution would be to use a RESTRequest node.

Google will tell you what the Java exception means. It's not difficult to work out, so I'll leave that as an exercise for the reader.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportUnable to fetch response from HTTP URL
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.