• Post Reply Bookmark Topic Watch Topic
  • New Topic

Upgrade issues from 1.3.1 String begginning spaces removed.  RSS feed

 
Jeff Sadowski
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At my work we deal with some external web pages required to do our work that use java in a weird way.
It seems to start java outside of an applet.
We are using IE6 and java 1.3.1.

I tried upgrading IE to IE8 and I get Data Execution Prevention(DEP) Issues.
I added both Java and IE8 to the DEP allowed programs with no luck
The page still creates a DEP issue causing IE8 to crash.

Next I tried upgrading to java 5(1.5) After that the DEP problem went away and it seemed to work, but strings that use to contain spaces in the beginning have the beginning spaces removed.
Is there some configuration to get the beginning spaces back?

I would like to run IE8 and java 7u2(1.7.0_2). Java 7u2 seems to do the same as Java 5.

Any suggestions on how to troubleshoot this further?
Currently I just reverted back to IE6 with java 1.3.1 and any applications that need a newer java I start via batch script that puts a newer java version in the path that was copied from a newer java install then uninstalled the newer java.
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apart from the usual suggestions about debugging, I am afraid I don’t know. I presume you have been through the code with a debugger (eg using an IDE like NetBeans or Eclipse in debug mode) already? I think we might need more details about what the DEP does, and whether a “trimmed” String would affect it. The trim method hasn’t got a “since”, so it has probably been there ever since Java1. This is the 1.3 version, so you can check whether there have been any changes since then.

One thing I do know, however, this is much too difficult a question for here, so I shall move it.

And welcome to the Ranch
 
Jeff Sadowski
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Apart from the usual suggestions about debugging, I am afraid I don’t know. I presume you have been through the code with a debugger (eg using an IDE like NetBeans or Eclipse in debug mode) already?

No can do the site doesn't give me their code.
Campbell Ritchie wrote: I think we might need more details about what the DEP does

Wish I knew too. Micosoft seems to not be very helpful sometimes.
Campbell Ritchie wrote:, and whether a “trimmed” String would affect it. The trim method hasn’t got a “since”, so it has probably been there ever since Java1. This is the 1.3 version, so you can check whether there have been any changes since then.

Thank you, I'll see if I can find out anything from the Java Docs.
Campbell Ritchie wrote:
One thing I do know, however, this is much too difficult a question for here, so I shall move it.

And welcome to the Ranch

Thank you again.
 
Jeff Sadowski
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After some thought and reading around I speculate it might be something about how readline was treated in 1.3.1 vs how it might be treated in later versions of java.
Is there a way to change the behavior of readline with a configuration option in a config file someplace?
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don’t know about readLine() in Java1.3 and Java7, whether there are any differences. You can find the 1.3 version from the link I gave you earlier, and the Java7 version should appear here (if you scroll down several thousand lines )
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!