• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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

Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


Thanks in advance
The fastest and most reliable components of any system are those that are not there. Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic