Ask Experts Questions for FREE Help !
    amitthakur10832's Avatar
    amitthakur10832 Posts: 1, Reputation: 1
    New Member

    Sep 24, 2016, 05:30 AM
    Same Jar/Java-Code (sax parser) behave differently on windows and Unix Machine, why ?
    Hi ,

    Issue --> Actually I am facing issue with xml parsing (SAX Parser) in Unix Machine. Same Jar/Java-Code behave differently on windows and Unix Machine, why ? :(

    Windows Machine --> works fine , Using SAX Parser to load huge xml file , Read all values correctly and populate same values. Charset.defaultCharset() windows-1252

    Unix Machine --> After then created JAR and deployed at Unix --> tomcat and execute the jar.
    Tried to load same huge xml file But noticed that some values or characters are populated empty or incomplete like
    Country Name populated as "ysia" instead of "Malaysia" or transaction Date populate as "3 PM" instead of "18/09/2016 03:31:23 PM". Charset.defaultCharset() UTF-8

    Issue is only with Unix , Because when I load same xml at windows or my local eclipse it works fine and all values populate correctly.

    Also I tried to modify my code and set encoding as UTF-8 for inputSteamReader but still it's not read value correctly at unix box.

    Note : There is no special characters in xml. Also noticed one thing that when I take out same records (those value not populated correctly) in other xml file and load in unix machine with same jar it works fine. It means issues occur while load these records with huge data. :(

    Please suggest , What should be the solution ?
    InfoJunkie4Life's Avatar
    InfoJunkie4Life Posts: 1,342, Reputation: 81
    Ultra Member

    Sep 24, 2016, 05:16 PM
    I think the people at stackoverflow have nailed it for you.

Not your question? Ask your question View similar questions


Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.

Check out some similar questions!

How to install a good UNIX OS and keep Windows. [ 19 Answers ]

I want to download a bipartition UNIX operating system from a computer to a large USB flash drive. I don't have a DVD or CD to get it on an ISO image file. Can anyone give me some suggestions and tell me how I'd install it?

How to read file from client machine in Java code? [ 0 Answers ]

For example :- Application is deployed on server, it I give file path from client machine application search file on server folder. It should search on client machine...

To create jar file in java [ 1 Answers ]

Hi, I want to create an executable file for my console application program. It is a network file sharing program, need to run on double click or command line. This program contains 11 class files in which FileSharing.class is the main class file. I have created manifest.txt file with...

Java code [ 2 Answers ]

Please give me a java program for additon of two numbers here nos are accepted from users here I am not confident about java program so please gieve me java code I only understand a hello program so please help me

Windows XP missing Jar File [ 1 Answers ]

Whenever I try to download certain software, and it starts to install the software, I get a window that says, "Unable to install due to Virtual Machine Launcer, missing Jar File".

View more questions Search