• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PLEASE HELP ME!!!!!!!!!!!!!!!! I'm going crazy

 
Elías Turbay
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, sorry for my poor english

I have a very uncommon problem

My J2ME app communicates with a Tomcat Server (RPC pattern). I have only one Servlet that execute differents methods based on the operation requested by the MIDlet.

The MIME TYPE is set as response.setContentType("application/binary"); And I'm using DataInputStream and DataOutputStream in both sides

When the operation was successful, the Servlet send an int constant (public static final int opOK = 10;) to the device. The problem is that when the MIDlet does:
din.readInt() it doesn't read the value 10, it read this value: 1008813135

The server that have this behavior is a Linux Server (behind a Windows 2003 Server with a port fowarding configured at 8080 port). We try to solve this reinstalling the JDK with a newer and also reinstaling an older Tomcat, but nothing happens.

I ran the same Web app in other Server (Windows XP) of another company and everything goes well. In that case the portfowarding is configured in the ADSL router.

But I need this application to function correctly in the another environment

PLEASE HELP ME

Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic