Problems to connect from iPhone app

0

Dear all,

 

I have my own jasper server running for some months. Now I would like to populate mobile use of reports and for that reason I've installed iphone app. After configure my data I always get the same info: "Error reading the response". Could someone help me to solve this issue?

Regards

dbrandib's picture
Joined: Oct 24 2011 - 6:43am
Last seen: 5 years 5 months ago

7 Answers:

0

Hi,

 

I just installed the Jasper server to made some test to see if my company might be interested in this product.

 

I've also install the IOS app, and had the same response has you. Going deeper in the code, i found this error detail:

 

2011-10-25 14:24:49.133 JasperMobile[21329:207] response: (null)
Entity: line 1: parser error : Opening and ending tag mismatch: HR line 1 and body
able.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body>
                                                                               ^
Entity: line 1: parser error : Opening and ending tag mismatch: HR line 1 and html
u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>
                                                                               ^
Entity: line 1: parser error : Premature end of data in tag body line 1
u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>
                                                                               ^
Entity: line 1: parser error : Premature end of data in tag html line 1
u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>
                                                                               ^
2011-10-25 14:24:49.144 JasperMobile[21329:207] Unable to parse.

 

It seams that the response generated by the server isn't correct html, because the HR tag isn't close.

Should be:

<HR size="1" noshade="noshade"/>

If the developer could do something, should be nice.

regards,

 

DJT

 

P.S: If the developers read this message, i can give you some help to develop the IOS application, that should be improved.


 

djt's picture
djt
13
Joined: Oct 25 2011 - 2:05am
Last seen: 5 years 10 months ago
0

I finally make it worked!

My first answer wasn't correct. If you receive a "Error reading the response", this is simply because your url is wrong.

For example, my JasperServer is running on ip 192.168.1.101, on the embedded tomcat, on port 8080.

When i launch it, the full url is:

http://192.168.1.101:8080/jasperserver/login.html

 

The URL you must fill in your server configuration on your iphone app must be the following

http://192.168.1.101:8080/jasperserver/

 

Hope this help.

 

regards,

DJT

djt's picture
djt
13
Joined: Oct 25 2011 - 2:05am
Last seen: 5 years 10 months ago
0

Hi djt,

 

thank you for your help. Mi jasper server is running under a subdomain. I mean jasper.mycompany.com. When I browse this url from laptop it shows jasper.mycompany.com/login.html. If I follow your instructions I would put http://jasper.mycompany.com as server and It does not work.

Any other suggestion?

Regards

 

P.D: which jasper server version are you using?

dbrandib's picture
Joined: Oct 24 2011 - 6:43am
Last seen: 5 years 5 months ago
0
I use the following version:

Product Version: 4.2.1
Build: 20111017_0932

The url you put was correct. The problem might be somewhere else.

- Did you install JasperServer on the bundled tomcat or on your own?
- have you tried to display your server webpage from your iPhone? just to see if you can access it from your device.
- Have you tried to replace "http://jasper.mycompany.com" by the IP address?

I have develop between yesterday and today an iPad version of the iPhone app. I've corrected some bugs, so if you're interested, i could send it to you.

You can also try to add a log to see how the url looks like from the app point of you. To do that, open the JSClient.m file. At line 340 you should have the method:

-(void)resources:(NSString *)uri responseDelegate:(id <JSResponseDelegate>)responseDelegate

add the following line after the declaration of the urlString.

NSLog(@"url: %@", urlString);

Let me know the result ;)
djt's picture
djt
13
Joined: Oct 25 2011 - 2:05am
Last seen: 5 years 10 months ago
0

It's important the server version is 4.2.1.

the newest version of JasperReports server may have some compatibility problem, I need to test more.

 

DJT, all your suggestions are welcome, the project is totally open, so feel you free to submit patches and bug fixes ;-)

 

Thanks a lot!

 

Giulio

giulio's picture
23536
Joined: Jan 2 2007 - 4:15pm
Last seen: 6 months 2 weeks ago
0

Hello, i have installed jasper community edition version 4.2 and i have been trying to use it with my iphone, however i seem to have some problems.
When i use jasper from a wifi connection connected to our internal network (address: http://jasper:8080/jasperserver) everything works however when i try to use it from the outside nothing shows up.

I have asked our administrators to create and external address which forwards to the internale one.
The address they created is the following: http://jasper.mycompany.com/jasperserver.

Using this external address from a computer browser everything works however from the iphone program iam unable to see anything. Could this be because there is no port number specified in the URL?

Any help will be greatly appreciated

Thank you
 

David

dbracchiglione's picture
Joined: Mar 14 2011 - 1:24am
Last seen: 6 years 7 months ago
0

hi,,

all ipone problem 's solution is available here <a href="http://iphoneappspoint.com/">iphone apps</a>



Post Edited by zhzubair4 at 02/17/2012 22:31
zhzubair4's picture
Joined: Feb 17 2012 - 2:08pm
Last seen: 7 years 6 months ago
Feedback
randomness