• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Malformed \uxxxx encoding  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

This is my first time posting here, I just need a little help.

I work IT for a large company, and we use a program called 'Solar Eclipse' - this software requires java to run. I have a user who is trying to launch the program and when the loading bar completes it says "Cannot run software" and when you click on the error detail, this is whats listed:

java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
at java.util.Properties.loadConvert(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at c​o​m​.​s​u​n​.​d​e​p​l​o​y​.​c​a​c​h​e​.​D​e​f​a​u​l​t​L​o​c​a​l​A​p​p​l​i​c​a​t​i​o​n​P​r​o​p​e​r​ties.getLocalApplicationPropertiesStorage(Unknown Source)
at c​o​m​.​s​u​n​.​d​e​p​l​o​y​.​c​a​c​h​e​.​D​e​f​a​u​l​t​L​o​c​a​l​A​p​p​l​i​c​a​t​i​o​n​P​r​o​p​e​r​ties.<init>(Unknown Source)
at c​o​m​.​s​u​n​.​d​e​p​l​o​y​.​c​a​c​h​e​.​D​e​f​a​u​l​t​L​o​c​a​l​A​p​p​l​i​c​a​t​i​o​n​P​r​o​p​e​r​ties.<init>(Unknown Source)
at c​o​m​.​s​u​n​.​d​e​p​l​o​y​.​c​a​c​h​e​.​C​a​c​h​e​.​g​e​t​L​o​c​a​l​A​p​p​l​i​c​a​t​i​o​n​P​r​o​p​erties(Unknown Source)
at c​o​m​.​s​u​n​.​d​e​p​l​o​y​.​c​a​c​h​e​.​C​a​c​h​e​.​g​e​t​L​o​c​a​l​A​p​p​l​i​c​a​t​i​o​n​P​r​o​p​erties(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I have tried to manually update and reinstall java, but i'm not a programmer so I dont really know what else to do. Anyone have any ideas? any steps I should take?

Thank you in advanced!
 
Saloon Keeper
Posts: 2150
278
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like the application had a problem with one of the lines in a properties file.

Is there a configuration file which you have created/modified to customize the application for your particular use?
 
Jay Anders
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ron McLeod wrote:It looks like the application had a problem with one of the lines in a properties file.

Is there a configuration file which you have created/modified to customize the application for your particular use?



No, its sort of a install and go kind of thing. I wonder if i reinstalled both java and the software? Our applications person is out for the holiday, so reinstalls is about all i can really do. But thank you for your answer, it gives me more to report to the applications team.
 
Ron McLeod
Saloon Keeper
Posts: 2150
278
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jay Anders wrote:I wonder if i reinstalled both java and the software?


I don't think that would help.  The stack trace really points to a problem while attempting to load data from a properties file.

Is there a web site link for the Solar Eclipse application?
 
Jay Anders
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ron McLeod wrote:

Jay Anders wrote:I wonder if i reinstalled both java and the software?


I don't think that would help.  The stack trace really points to a problem while attempting to load data from a properties file.

Is there a web site link for the Solar Eclipse application?



https://www.epicor.com/erp-systems/eclipse.aspx
 
Marshal
Posts: 61690
192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jay Anders wrote:. . . This is my first time posting here, I just need a little help. . . .

Welcome to the Ranch
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your application in a folder starting with a 'u' like c:\user\myapp for example?

In some systems the \u in user gets faulty recognized as a Unicode character.
But it could also be that in one of the xml/config files there is a path named with \ instead of \\ or /.

My guess is either your current app location is read with single backlashes where there is a '\u' in the path name from a folder or file starting with a 'u'. Or there is a property in one of the config files that points to a folder with a occurrence of '\u' like '\user' in the path.
 
Sheriff
Posts: 12738
210
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Koen Ursem wrote:My guess is either your current app location is read with single backlashes where there is a '\u' in the path name from a folder or file starting with a 'u'. Or there is a property in one of the config files that points to a folder with a occurrence of '\u' like '\user' in the path.


That is a very good guess. In fact, it's what I would call an "informed and highly-probable guess." Way to think outside the box, Koen! In fact, I'm giving you some Thanksgiving Pie for it, even if it doesn't pan out (which I think it will).

@OP: If you can run the grep command, use it check if your properties file contains "\u" at all. On Windows, I believe the equivalent command is "findstr", at least according to what Google tells me.
 
Koen Ursem
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Junilu Lacar wrote:

Koen Ursem wrote:My guess is either your current app location is read with single backlashes where there is a '\u' in the path name from a folder or file starting with a 'u'. Or there is a property in one of the config files that points to a folder with a occurrence of '\u' like '\user' in the path.


That is a very good guess. In fact, it's what I would call an "informed and highly-probable guess." Way to think outside the box, Koen! In fact, I'm giving you some Thanksgiving Pie for it, even if it doesn't pan out (which I think it will).

@OP: If you can run the grep command, use it check if your properties file contains "\u" at all. On Windows, I believe the equivalent command is "findstr", at least according to what Google tells me.



Well thank you kindly!
I bet most programmers have at least once dealt with issues on paths with slashes and backslashes when using other systems. I had almost the same error a year ago on a vm machine where I fixed a path in the code replacing the \ for a double \\. In this case it does seem a bit different in that there could be a configuration reader that reads the path as a string at first with the properties load function, considering the file type and system it probably sees \u in the string as a encoded Unicode character that would be followed by a digital for the Unicode character.

So if I am indeed correct OP has to find a way to either escape it in the config, save the config file in a different format (UTF-8? not sure on it), or if it is a directory avoid the the occurrence of \u in the folders and file name.
Otherwise the code would have to be changed to escape it if that wouldn't work, but from the story I understand OP is not directly able to change this.
 
Junilu Lacar
Sheriff
Posts: 12738
210
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Koen Ursem wrote:
So if I am indeed correct OP has to find a way to either escape it in the config, save the config file in a different format (UTF-8? not sure on it), or if it is a directory avoid the the occurrence of \u in the folders and file name.
Otherwise the code would have to be changed to escape it if that wouldn't work, but from the story I understand OP is not directly able to change this.


You are probably also correct to suggest using "/" instead of "\".  As far as I know, these will be interpreted correctly even when you're running on a Window$ system.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!