RE: Errors when launching JSwat

"Flatoff Allan" <[email protected]> Fri, 9 Dec 2005 07:59:09 -0600
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
Hi Nathan,

I'm still having problems.

I deleted my previous JSWat Install directory

I ran the installer and this time selected the JDK directory

There were no messages during installation.

I get the same errors when launching JSWat.

Judging by the error messages I think they are XML related in nature.


Here's the contents of my jswat.conf file:

# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}\.jswat"

# options used by netbeans launcher by default, can be overridden by
explicit
# command line switches
netbeans_default_options="-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m
-J-XX:MaxPermSize=96m -J-Xverify:none"

# default location of J2SE JDK, can be overridden by using --jdkhome
<dir> switch
netbeans_jdkhome="C:\Program Files\Java\jdk1.5.0_06"

# clusters' paths separated by path.separator (semicolon on Windows,
colon on Unices)
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cl
uster2"



-----Original Message-----
From: Nathan Fiedler [mailto:[email protected]] 
Sent: Thursday, December 08, 2005 8:22 PM
To: Flatoff Allan
Cc: [email protected]
Subject: Re: [jswat-user] Errors when launching JSwat

 From your first email to me, in which you stated that the installer 
warned you that the JDK you selected was missing the JDI classes, I can 
infer that these additional problems are related to that warning. It is 
worth heeding the warning of the installer and consider what it is 
trying to tell you. Perhaps the messaging needs more explanation that it

currently provides.

Regardless, the solution is simple. Open the etc/jswat.conf file in 
Notepad and change the 'netbeans_jdkhome' value to point to your JDK 
installation (e.g. "C:\Program Files\Java\jdk1.5.0_06"). Right now it is

probably pointing to the JRE, which is a mere subset of the JDK and is 
insufficient for running JSwat. That's what the warning is about, as 
well as the explanation on the downloads page and in the README file 
that accompanies the software.

n


Flatoff Allan wrote:
> Hi,
> 
> I've just downloaded and installed Jswat - when I launch it with 
> jswat.exe I encounter several errors.
> 
> The first one is:
> 
> org.xml.sax.SAXParseException: Premature end of file.
>         at 
>
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPar
seException(Unknown 
> Source)
>         at 
>
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(U
nknown 
> Source)
>         at 
>
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unk
nown 
> Source)
>         at 
>
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unk
nown 
> Source)
>         at 
>
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocV
ersion(Unknown 
> Source)
>         at 
>
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn
own 
> Source)
>         at 
>
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn
own 
> Source)
>         at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
>         at 
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unkno
wn 
> Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at java.beans.XMLDecoder.readObject(Unknown Source)
>         at 
>
com.bluemarsh.jswat.core.session.DefaultSessionManager.loadSessions(Defa
ultSessionManager.java:149) 
> 
>         at 
>
com.bluemarsh.jswat.core.session.SessionProvider.getSessionManager(Sessi
onProvider.java:73) 
> 
>         at 
> com.bluemarsh.jswat.ui.SessionWatcher.<init>(SessionWatcher.java:70)
>         at 
>
com.bluemarsh.jswat.ui.InterfaceInstall.restored(InterfaceInstall.java:4
9)
>         at 
> org.netbeans.core.modules.NbInstaller.loadCode(NbInstaller.java:322)
>         at
org.netbeans.core.modules.NbInstaller.load(NbInstaller.java:240)
>         at 
> org.netbeans.core.modules.ModuleManager.enable(ModuleManager.java:869)
>         at 
> org.netbeans.core.modules.ModuleList.installNew(ModuleList.java:382)
>         at 
> org.netbeans.core.modules.ModuleList.trigger(ModuleList.java:316)
>         at 
> org.netbeans.core.modules.ModuleSystem.restore(ModuleSystem.java:253)
>         at org.netbeans.core.NonGui.run(NonGui.java:355)
>         at org.netbeans.core.Main.run(Main.java:185)
>         at 
> org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:241)
>         at org.netbeans.core.NbTopManager.get(NbTopManager.java:190)
>         at org.netbeans.core.Main.start(Main.java:311)
>         at
org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
> [catch] at java.lang.Thread.run(Unknown Source)
> 
> 
> There are a series of error messages after this.
> 
> It seems like something might be wrong with the config or something.
> 
> Any idea why this doesn't work?
> 
> Thanks!


This e-mail is confidential.  If you are not the intended recipient, you must not disclose or use the information contained in it.  If you have received this e-mail in error, please tell us immediately by return e-mail to [email protected] and delete the document.

E-mails containing unprofessional, discourteous or offensive remarks violate Sentry policy. You may report employee violations by forwarding the message to [email protected].

No recipient may use the information in this e-mail in violation of any civil or criminal statute. Sentry disclaims all liability for any unauthorized uses of this e-mail or its contents.

This e-mail constitutes neither an offer nor an acceptance of any offer. No contract may be entered into by a Sentry employee without express approval from an authorized Sentry manager.

Warning: Computer viruses can be transmitted via e-mail. Sentry accepts no liability or responsibility for any damage caused by any virus transmitted with this e-mail.