ahmeddrira / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

history.xml fails to load, and crashes program #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
This happens upon startup.  

What is the expected output? What do you see instead?
When the jar file is double clicked, the splash screen comes up and just hangs. 
 When I click outside, the splash screen disappears.  When I run the jar file 
from the command line (java -jar 
C:\programs\rest-client\restclient-ui-3.2-jar-with-dependencies.jar), the 
following error is generated:
Caused by: org.xml.sax.SAXParseException; systemId: 
file:///C:/Users/jsmith/.rest-client/history.xml; lineNumber: 1; 
columnNumber:1; Premature end of file.
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1236)
        ... 54 more
3 errors
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
        at org.wiztools.restclient.ServiceLocator.getInstance(ServiceLocator.java:19)
        at org.wiztools.restclient.ui.Main$1.run(Main.java:56)

What version of the product are you using? On what operating system?
restclient-ui-3.2-jar-with-dependencies.jar, Windows 7, 64-bit

Please provide any additional information below.
My history.xml file is attached
Deleting my history.xml file seems to solve the problem.
This is not the first time this has happened.  

Original issue reported on code.google.com by javaguy...@gmail.com on 23 Sep 2013 at 2:17

Attachments:

GoogleCodeExporter commented 9 years ago
This issue is easy to reproduce if you simply have an empty history.xml file, 
and attempt to start the program.  I'm not sure why an empty history.xml file 
would be written in the first place, but this is not the first time this has 
happened.  Deleting the history.xml file and restarting the program is the 
work-around.  

Original comment by javaguy...@gmail.com on 23 Sep 2013 at 2:28

GoogleCodeExporter commented 9 years ago
I upgraded to version 3.2.1, and still get the same problem.

Original comment by javaguy...@gmail.com on 23 Sep 2013 at 2:33

GoogleCodeExporter commented 9 years ago
Thanks for reporting. Merging into already reported Issue 182.

Original comment by subwiz on 24 Sep 2013 at 6:17

GoogleCodeExporter commented 9 years ago
Not able to reproduce the 0-byte file scenario in my Mac. I added this check:

https://code.google.com/p/rest-client/source/diff?spec=svn7613864a5dfb0c68b3a2ff
72fa62b89df933f74f&r=7613864a5dfb0c68b3a2ff72fa62b89df933f74f&format=side&path=/
restclient-ui/src/main/java/org/wiztools/restclient/ui/history/HistoryManagerImp
l.java&old_path=/restclient-ui/src/main/java/org/wiztools/restclient/ui/history/
HistoryManagerImpl.java&old=566c8780d27c158fbf140c359d137378ab2ec874

Hope this should solve the problem.

Original comment by subwiz on 19 Oct 2013 at 9:38