Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 16
Registered: ‎03-22-2013
My Device: 8520,9900,9930,9330,9790,9780
My Carrier: BlackBerry

Exception while calling the GlassFish webservice

Hi,

 

In my app I have to fetch the response from glassfish web server. In my code IOException is thrown for following statement.

 

httpTransportObj.call(SoapAction, soapEnvelop); /// IOException here

 pls help. Thanks.

Developer
Posts: 16,644
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Exception while calling the GlassFish webservice

any detail message in the exception? can you call the URL in the normal web browser?
on the device or on the simulator?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 16
Registered: ‎03-22-2013
My Device: 8520,9900,9930,9330,9790,9780
My Carrier: BlackBerry

Re: Exception while calling the GlassFish webservice

Hi..

1. I am getting following Error message..

    net.rim.device.cldc.io.dns.DNSException: DNS error

 

2. I am able to open this url in browser.

 

3. I am running this on simulator.

 

Thanks..

 

Developer
Posts: 16,644
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Exception while calling the GlassFish webservice

try to use the IP adress instead of the FQDN
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 16
Registered: ‎03-22-2013
My Device: 8520,9900,9930,9330,9790,9780
My Carrier: BlackBerry

Re: Exception while calling the GlassFish webservice

Hello Simon,

Thanks for the reply..

 

I have replaced FQDN with IP address as you said in last post .. But I am  getting same error again.. also I got IOInterrupted Exception..

Please help.

 

 

Contributor
Posts: 16
Registered: ‎03-22-2013
My Device: 8520,9900,9930,9330,9790,9780
My Carrier: BlackBerry

Re: Exception while calling the GlassFish webservice

Hiee..

 

I have made some progress in this problem. Now I am getting the response from web service on Simulator with MDS in running mode and by removing connection parameter from URL . But I am getting tunnel failure exception while running same code on device.

 

I think I know why this is happening is because in my code I am not sending the connection parameter

(; deviceside  = true etc..) .

 

I know it is necessary to pass this parameter in blackberry but when I append connection parameter with URL in my code ,I am not getting the response even on simulator....

 

pls help..thanks ..

 

 

Developer
Posts: 16,644
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Exception while calling the GlassFish webservice

use ConnectionFactory
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter