Skip to main content



      Home
Home » Eclipse Projects » GEF » Xerces parser problem with GEF plugin
Xerces parser problem with GEF plugin [message #122604] Tue, 16 March 2004 07:16 Go to next message
Eclipse UserFriend
Originally posted by: jig.patel.excite.com

-I get the following message when a class (called from my GEF plugin at
runtime)
trys to create a new instance of the SAX parser.
(I have included the xerces .jar files in my plugins java build path.)


Unhandled exception caught in event loop.
Reason:
org/apache/xerces/parsers/SAXParser


However when I run the parser as a standalone java application (from
eclipse) it runs fine.

Im pretty sure eclipse is causing the problem but im not sure how to fix it.
-I have noticed that a xerces plugin is included with eclipse, but if I
remove that, eclipse doesnt start.

(At the moment the parser just parses an xml file, and prints the content,
so there is no interaction with the plugin. The plugin just creates a new
instance of my parser, which automatically attempts to parse a predefined
file.)

Any help/tips greatly appreciated.

-Jig.
Re: Xerces parser problem with GEF plugin [message #122631 is a reply to message #122604] Tue, 16 March 2004 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You should look in your .log file in the .metadata directory of your
workspace to find out the exact exception that is being thrown.

"J Patel" <jig.patel@excite.com> wrote in message
news:c36qui$hf8$1@eclipse.org...
> -I get the following message when a class (called from my GEF plugin at
> runtime)
> trys to create a new instance of the SAX parser.
> (I have included the xerces .jar files in my plugins java build path.)
>
>
> Unhandled exception caught in event loop.
> Reason:
> org/apache/xerces/parsers/SAXParser
>
>
> However when I run the parser as a standalone java application (from
> eclipse) it runs fine.
>
> Im pretty sure eclipse is causing the problem but im not sure how to fix
it.
> -I have noticed that a xerces plugin is included with eclipse, but if I
> remove that, eclipse doesnt start.
>
> (At the moment the parser just parses an xml file, and prints the content,
> so there is no interaction with the plugin. The plugin just creates a new
> instance of my parser, which automatically attempts to parse a predefined
> file.)
>
> Any help/tips greatly appreciated.
>
> -Jig.
>
>
Re: Xerces parser problem with GEF plugin [message #122638 is a reply to message #122631] Tue, 16 March 2004 09:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jig.patel.excite.com

I already know that if i remove the xerces plugin (the ones thats part of
eclipse) eclipse doesnt start because it cant locate it:
-"java.lang.RuntimeException: Fatal Error: Unable to locate matching
org.apache.xerces plug-in."

But im hoping to find a solution that can allow my specified version of
xerces parser (which ive included in the plugin project build path) to
coexist with the version thats part of eclipse.
-Or find another suitable solution that will allow me to get my parser
working.



"Whitney Sorenson" <none@us.ibm.com> wrote in message
news:c373it$sqo$1@eclipse.org...
> You should look in your .log file in the .metadata directory of your
> workspace to find out the exact exception that is being thrown.
>
> "J Patel" <jig.patel@excite.com> wrote in message
> news:c36qui$hf8$1@eclipse.org...
> > -I get the following message when a class (called from my GEF plugin at
> > runtime)
> > trys to create a new instance of the SAX parser.
> > (I have included the xerces .jar files in my plugins java build path.)
> >
> >
> > Unhandled exception caught in event loop.
> > Reason:
> > org/apache/xerces/parsers/SAXParser
> >
> >
> > However when I run the parser as a standalone java application (from
> > eclipse) it runs fine.
> >
> > Im pretty sure eclipse is causing the problem but im not sure how to fix
> it.
> > -I have noticed that a xerces plugin is included with eclipse, but if I
> > remove that, eclipse doesnt start.
> >
> > (At the moment the parser just parses an xml file, and prints the
content,
> > so there is no interaction with the plugin. The plugin just creates a
new
> > instance of my parser, which automatically attempts to parse a
predefined
> > file.)
> >
> > Any help/tips greatly appreciated.
> >
> > -Jig.
> >
> >
>
>
Re: Xerces parser problem with GEF plugin [message #122643 is a reply to message #122638] Tue, 16 March 2004 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

So what's the exception in the .log file that causes this message:
Unhandled exception caught in event loop.
Reason:
org/apache/xerces/parsers/SAXParser

(check runtime-workbench-workspace maybe?)

"J Patel" <jig.patel@excite.com> wrote in message
news:c3748a$to8$1@eclipse.org...
>
> I already know that if i remove the xerces plugin (the ones thats part of
> eclipse) eclipse doesnt start because it cant locate it:
> -"java.lang.RuntimeException: Fatal Error: Unable to locate matching
> org.apache.xerces plug-in."
>
> But im hoping to find a solution that can allow my specified version of
> xerces parser (which ive included in the plugin project build path) to
> coexist with the version thats part of eclipse.
> -Or find another suitable solution that will allow me to get my parser
> working.
>
>
>
> "Whitney Sorenson" <none@us.ibm.com> wrote in message
> news:c373it$sqo$1@eclipse.org...
> > You should look in your .log file in the .metadata directory of your
> > workspace to find out the exact exception that is being thrown.
> >
> > "J Patel" <jig.patel@excite.com> wrote in message
> > news:c36qui$hf8$1@eclipse.org...
> > > -I get the following message when a class (called from my GEF plugin
at
> > > runtime)
> > > trys to create a new instance of the SAX parser.
> > > (I have included the xerces .jar files in my plugins java build path.)
> > >
> > >
> > > Unhandled exception caught in event loop.
> > > Reason:
> > > org/apache/xerces/parsers/SAXParser
> > >
> > >
> > > However when I run the parser as a standalone java application (from
> > > eclipse) it runs fine.
> > >
> > > Im pretty sure eclipse is causing the problem but im not sure how to
fix
> > it.
> > > -I have noticed that a xerces plugin is included with eclipse, but if
I
> > > remove that, eclipse doesnt start.
> > >
> > > (At the moment the parser just parses an xml file, and prints the
> content,
> > > so there is no interaction with the plugin. The plugin just creates a
> new
> > > instance of my parser, which automatically attempts to parse a
> predefined
> > > file.)
> > >
> > > Any help/tips greatly appreciated.
> > >
> > > -Jig.
> > >
> > >
> >
> >
>
>
Re: Xerces parser problem with GEF plugin [message #122648 is a reply to message #122643] Tue, 16 March 2004 11:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jig.patel.excite.com

Whitney,

I think we talking about diff. things -to clarify:

"Unhandled exception caught in event loop.
Reason:
org/apache/xerces/parsers/SAXParser"
-is the messege generated @ runtime by the workbench, as my parser cant be
initilised when called by my plugin -when my plugin tries to create an new
example file like the logic diagram example. (File -> new -> example ->
(select type) -> finish)doesnt work as my parser is called when the example
diagram is meant to be made.
(this is the integration problem with the plugin, as the parser works fine
when launched as a java application)

I have noticed that eclipse comes with a xerces plugin, -which i am not
using. When i removed this xerces plugin (hoping that it might rectify the
above problem), eclipse wont start and the following messege is generated in
the .log file:
"java.lang.RuntimeException: Fatal Error: Unable to locate matching
org.apache.xerces plug-in."
-im pretty sure this is because eclipse needs this plugin to run.


hope that clarifies what the problem is.
-Jig




"Whitney Sorenson" <none@us.ibm.com> wrote in message
news:c3761v$o8$1@eclipse.org...
> So what's the exception in the .log file that causes this message:
> Unhandled exception caught in event loop.
> Reason:
> org/apache/xerces/parsers/SAXParser
>
> (check runtime-workbench-workspace maybe?)
>
> "J Patel" <jig.patel@excite.com> wrote in message
> news:c3748a$to8$1@eclipse.org...
> >
> > I already know that if i remove the xerces plugin (the ones thats part
of
> > eclipse) eclipse doesnt start because it cant locate it:
> > -"java.lang.RuntimeException: Fatal Error: Unable to locate matching
> > org.apache.xerces plug-in."
> >
> > But im hoping to find a solution that can allow my specified version of
> > xerces parser (which ive included in the plugin project build path) to
> > coexist with the version thats part of eclipse.
> > -Or find another suitable solution that will allow me to get my parser
> > working.
> >
> >
> >
> > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > news:c373it$sqo$1@eclipse.org...
> > > You should look in your .log file in the .metadata directory of your
> > > workspace to find out the exact exception that is being thrown.
> > >
> > > "J Patel" <jig.patel@excite.com> wrote in message
> > > news:c36qui$hf8$1@eclipse.org...
> > > > -I get the following message when a class (called from my GEF plugin
> at
> > > > runtime)
> > > > trys to create a new instance of the SAX parser.
> > > > (I have included the xerces .jar files in my plugins java build
path.)
> > > >
> > > >
> > > > Unhandled exception caught in event loop.
> > > > Reason:
> > > > org/apache/xerces/parsers/SAXParser
> > > >
> > > >
> > > > However when I run the parser as a standalone java application (from
> > > > eclipse) it runs fine.
> > > >
> > > > Im pretty sure eclipse is causing the problem but im not sure how to
> fix
> > > it.
> > > > -I have noticed that a xerces plugin is included with eclipse, but
if
> I
> > > > remove that, eclipse doesnt start.
> > > >
> > > > (At the moment the parser just parses an xml file, and prints the
> > content,
> > > > so there is no interaction with the plugin. The plugin just creates
a
> > new
> > > > instance of my parser, which automatically attempts to parse a
> > predefined
> > > > file.)
> > > >
> > > > Any help/tips greatly appreciated.
> > > >
> > > > -Jig.
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Xerces parser problem with GEF plugin [message #122674 is a reply to message #122648] Tue, 16 March 2004 14:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I understand the problem - here's what you can do to find out more about it:

Open up the .metadata directory of your runtime-workbench-workspace. In the
..metadata directory, there is a .log file which contains the verbose details
of this error:
"Unhandled exception caught in event loop.
Reason:
org/apache/xerces/parsers/SAXParser"
Seeing this extra information about what caused this exception will help you
determine exactly what is going wrong when you are running your plug-in.
This is because when Eclipse encounters an unhandled exception, such as the
one above, it prints out the exact exception to the .log file. This error
has nothing to do with eclipse not starting when you remove the xerces
plug-in.


"J Patel" <jig.patel@excite.com> wrote in message
news:c37834$3jm$1@eclipse.org...
> Whitney,
>
> I think we talking about diff. things -to clarify:
>
> "Unhandled exception caught in event loop.
> Reason:
> org/apache/xerces/parsers/SAXParser"
> -is the messege generated @ runtime by the workbench, as my parser cant be
> initilised when called by my plugin -when my plugin tries to create an new
> example file like the logic diagram example. (File -> new -> example ->
> (select type) -> finish)doesnt work as my parser is called when the
example
> diagram is meant to be made.
> (this is the integration problem with the plugin, as the parser works fine
> when launched as a java application)
>
> I have noticed that eclipse comes with a xerces plugin, -which i am not
> using. When i removed this xerces plugin (hoping that it might rectify
the
> above problem), eclipse wont start and the following messege is generated
in
> the .log file:
> "java.lang.RuntimeException: Fatal Error: Unable to locate matching
> org.apache.xerces plug-in."
> -im pretty sure this is because eclipse needs this plugin to run.
>
>
> hope that clarifies what the problem is.
> -Jig
>
>
>
>
> "Whitney Sorenson" <none@us.ibm.com> wrote in message
> news:c3761v$o8$1@eclipse.org...
> > So what's the exception in the .log file that causes this message:
> > Unhandled exception caught in event loop.
> > Reason:
> > org/apache/xerces/parsers/SAXParser
> >
> > (check runtime-workbench-workspace maybe?)
> >
> > "J Patel" <jig.patel@excite.com> wrote in message
> > news:c3748a$to8$1@eclipse.org...
> > >
> > > I already know that if i remove the xerces plugin (the ones thats part
> of
> > > eclipse) eclipse doesnt start because it cant locate it:
> > > -"java.lang.RuntimeException: Fatal Error: Unable to locate matching
> > > org.apache.xerces plug-in."
> > >
> > > But im hoping to find a solution that can allow my specified version
of
> > > xerces parser (which ive included in the plugin project build path) to
> > > coexist with the version thats part of eclipse.
> > > -Or find another suitable solution that will allow me to get my parser
> > > working.
> > >
> > >
> > >
> > > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > > news:c373it$sqo$1@eclipse.org...
> > > > You should look in your .log file in the .metadata directory of your
> > > > workspace to find out the exact exception that is being thrown.
> > > >
> > > > "J Patel" <jig.patel@excite.com> wrote in message
> > > > news:c36qui$hf8$1@eclipse.org...
> > > > > -I get the following message when a class (called from my GEF
plugin
> > at
> > > > > runtime)
> > > > > trys to create a new instance of the SAX parser.
> > > > > (I have included the xerces .jar files in my plugins java build
> path.)
> > > > >
> > > > >
> > > > > Unhandled exception caught in event loop.
> > > > > Reason:
> > > > > org/apache/xerces/parsers/SAXParser
> > > > >
> > > > >
> > > > > However when I run the parser as a standalone java application
(from
> > > > > eclipse) it runs fine.
> > > > >
> > > > > Im pretty sure eclipse is causing the problem but im not sure how
to
> > fix
> > > > it.
> > > > > -I have noticed that a xerces plugin is included with eclipse, but
> if
> > I
> > > > > remove that, eclipse doesnt start.
> > > > >
> > > > > (At the moment the parser just parses an xml file, and prints the
> > > content,
> > > > > so there is no interaction with the plugin. The plugin just
creates
> a
> > > new
> > > > > instance of my parser, which automatically attempts to parse a
> > > predefined
> > > > > file.)
> > > > >
> > > > > Any help/tips greatly appreciated.
> > > > >
> > > > > -Jig.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Xerces parser problem with GEF plugin [message #122712 is a reply to message #122674] Tue, 16 March 2004 15:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jig.patel.excite.com

Thanks Whitney, i understand what you mean now.

the source of the prob. is:
"java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser"

i dont understand how this can be, as the code compiles fine, and all the
appropriate libraries have been included in the build path. (I even included
a ref. to xerces in my windows classpath)

am i missing somthing obvious?

-Jig.



"Whitney Sorenson" <none@us.ibm.com> wrote in message
news:c37jh3$jef$1@eclipse.org...
> I understand the problem - here's what you can do to find out more about
it:
>
> Open up the .metadata directory of your runtime-workbench-workspace. In
the
> .metadata directory, there is a .log file which contains the verbose
details
> of this error:
> "Unhandled exception caught in event loop.
> Reason:
> org/apache/xerces/parsers/SAXParser"
> Seeing this extra information about what caused this exception will help
you
> determine exactly what is going wrong when you are running your plug-in.
> This is because when Eclipse encounters an unhandled exception, such as
the
> one above, it prints out the exact exception to the .log file. This error
> has nothing to do with eclipse not starting when you remove the xerces
> plug-in.
>
>
> "J Patel" <jig.patel@excite.com> wrote in message
> news:c37834$3jm$1@eclipse.org...
> > Whitney,
> >
> > I think we talking about diff. things -to clarify:
> >
> > "Unhandled exception caught in event loop.
> > Reason:
> > org/apache/xerces/parsers/SAXParser"
> > -is the messege generated @ runtime by the workbench, as my parser cant
be
> > initilised when called by my plugin -when my plugin tries to create an
new
> > example file like the logic diagram example. (File -> new -> example ->
> > (select type) -> finish)doesnt work as my parser is called when the
> example
> > diagram is meant to be made.
> > (this is the integration problem with the plugin, as the parser works
fine
> > when launched as a java application)
> >
> > I have noticed that eclipse comes with a xerces plugin, -which i am not
> > using. When i removed this xerces plugin (hoping that it might rectify
> the
> > above problem), eclipse wont start and the following messege is
generated
> in
> > the .log file:
> > "java.lang.RuntimeException: Fatal Error: Unable to locate matching
> > org.apache.xerces plug-in."
> > -im pretty sure this is because eclipse needs this plugin to run.
> >
> >
> > hope that clarifies what the problem is.
> > -Jig
> >
> >
> >
> >
> > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > news:c3761v$o8$1@eclipse.org...
> > > So what's the exception in the .log file that causes this message:
> > > Unhandled exception caught in event loop.
> > > Reason:
> > > org/apache/xerces/parsers/SAXParser
> > >
> > > (check runtime-workbench-workspace maybe?)
> > >
> > > "J Patel" <jig.patel@excite.com> wrote in message
> > > news:c3748a$to8$1@eclipse.org...
> > > >
> > > > I already know that if i remove the xerces plugin (the ones thats
part
> > of
> > > > eclipse) eclipse doesnt start because it cant locate it:
> > > > -"java.lang.RuntimeException: Fatal Error: Unable to locate matching
> > > > org.apache.xerces plug-in."
> > > >
> > > > But im hoping to find a solution that can allow my specified version
> of
> > > > xerces parser (which ive included in the plugin project build path)
to
> > > > coexist with the version thats part of eclipse.
> > > > -Or find another suitable solution that will allow me to get my
parser
> > > > working.
> > > >
> > > >
> > > >
> > > > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > > > news:c373it$sqo$1@eclipse.org...
> > > > > You should look in your .log file in the .metadata directory of
your
> > > > > workspace to find out the exact exception that is being thrown.
> > > > >
> > > > > "J Patel" <jig.patel@excite.com> wrote in message
> > > > > news:c36qui$hf8$1@eclipse.org...
> > > > > > -I get the following message when a class (called from my GEF
> plugin
> > > at
> > > > > > runtime)
> > > > > > trys to create a new instance of the SAX parser.
> > > > > > (I have included the xerces .jar files in my plugins java build
> > path.)
> > > > > >
> > > > > >
> > > > > > Unhandled exception caught in event loop.
> > > > > > Reason:
> > > > > > org/apache/xerces/parsers/SAXParser
> > > > > >
> > > > > >
> > > > > > However when I run the parser as a standalone java application
> (from
> > > > > > eclipse) it runs fine.
> > > > > >
> > > > > > Im pretty sure eclipse is causing the problem but im not sure
how
> to
> > > fix
> > > > > it.
> > > > > > -I have noticed that a xerces plugin is included with eclipse,
but
> > if
> > > I
> > > > > > remove that, eclipse doesnt start.
> > > > > >
> > > > > > (At the moment the parser just parses an xml file, and prints
the
> > > > content,
> > > > > > so there is no interaction with the plugin. The plugin just
> creates
> > a
> > > > new
> > > > > > instance of my parser, which automatically attempts to parse a
> > > > predefined
> > > > > > file.)
> > > > > >
> > > > > > Any help/tips greatly appreciated.
> > > > > >
> > > > > > -Jig.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Xerces parser problem with GEF plugin [message #122717 is a reply to message #122712] Tue, 16 March 2004 16:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Does your plugin.xml require the xerces plug-in? In the Plug-in Manifest
Editor, in the Dependencies tab, add it as a required plug-in if you havn't
already.

"J Patel" <jig.patel@excite.com> wrote in message
news:c37ose$q8m$1@eclipse.org...
> Thanks Whitney, i understand what you mean now.
>
> the source of the prob. is:
> "java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser"
>
> i dont understand how this can be, as the code compiles fine, and all the
> appropriate libraries have been included in the build path. (I even
included
> a ref. to xerces in my windows classpath)
>
> am i missing somthing obvious?
>
> -Jig.
>
>
>
> "Whitney Sorenson" <none@us.ibm.com> wrote in message
> news:c37jh3$jef$1@eclipse.org...
> > I understand the problem - here's what you can do to find out more about
> it:
> >
> > Open up the .metadata directory of your runtime-workbench-workspace. In
> the
> > .metadata directory, there is a .log file which contains the verbose
> details
> > of this error:
> > "Unhandled exception caught in event loop.
> > Reason:
> > org/apache/xerces/parsers/SAXParser"
> > Seeing this extra information about what caused this exception will help
> you
> > determine exactly what is going wrong when you are running your plug-in.
> > This is because when Eclipse encounters an unhandled exception, such as
> the
> > one above, it prints out the exact exception to the .log file. This
error
> > has nothing to do with eclipse not starting when you remove the xerces
> > plug-in.
> >
> >
> > "J Patel" <jig.patel@excite.com> wrote in message
> > news:c37834$3jm$1@eclipse.org...
> > > Whitney,
> > >
> > > I think we talking about diff. things -to clarify:
> > >
> > > "Unhandled exception caught in event loop.
> > > Reason:
> > > org/apache/xerces/parsers/SAXParser"
> > > -is the messege generated @ runtime by the workbench, as my parser
cant
> be
> > > initilised when called by my plugin -when my plugin tries to create an
> new
> > > example file like the logic diagram example. (File -> new ->
example ->
> > > (select type) -> finish)doesnt work as my parser is called when the
> > example
> > > diagram is meant to be made.
> > > (this is the integration problem with the plugin, as the parser works
> fine
> > > when launched as a java application)
> > >
> > > I have noticed that eclipse comes with a xerces plugin, -which i am
not
> > > using. When i removed this xerces plugin (hoping that it might
rectify
> > the
> > > above problem), eclipse wont start and the following messege is
> generated
> > in
> > > the .log file:
> > > "java.lang.RuntimeException: Fatal Error: Unable to locate matching
> > > org.apache.xerces plug-in."
> > > -im pretty sure this is because eclipse needs this plugin to run.
> > >
> > >
> > > hope that clarifies what the problem is.
> > > -Jig
> > >
> > >
> > >
> > >
> > > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > > news:c3761v$o8$1@eclipse.org...
> > > > So what's the exception in the .log file that causes this message:
> > > > Unhandled exception caught in event loop.
> > > > Reason:
> > > > org/apache/xerces/parsers/SAXParser
> > > >
> > > > (check runtime-workbench-workspace maybe?)
> > > >
> > > > "J Patel" <jig.patel@excite.com> wrote in message
> > > > news:c3748a$to8$1@eclipse.org...
> > > > >
> > > > > I already know that if i remove the xerces plugin (the ones thats
> part
> > > of
> > > > > eclipse) eclipse doesnt start because it cant locate it:
> > > > > -"java.lang.RuntimeException: Fatal Error: Unable to locate
matching
> > > > > org.apache.xerces plug-in."
> > > > >
> > > > > But im hoping to find a solution that can allow my specified
version
> > of
> > > > > xerces parser (which ive included in the plugin project build
path)
> to
> > > > > coexist with the version thats part of eclipse.
> > > > > -Or find another suitable solution that will allow me to get my
> parser
> > > > > working.
> > > > >
> > > > >
> > > > >
> > > > > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > > > > news:c373it$sqo$1@eclipse.org...
> > > > > > You should look in your .log file in the .metadata directory of
> your
> > > > > > workspace to find out the exact exception that is being thrown.
> > > > > >
> > > > > > "J Patel" <jig.patel@excite.com> wrote in message
> > > > > > news:c36qui$hf8$1@eclipse.org...
> > > > > > > -I get the following message when a class (called from my GEF
> > plugin
> > > > at
> > > > > > > runtime)
> > > > > > > trys to create a new instance of the SAX parser.
> > > > > > > (I have included the xerces .jar files in my plugins java
build
> > > path.)
> > > > > > >
> > > > > > >
> > > > > > > Unhandled exception caught in event loop.
> > > > > > > Reason:
> > > > > > > org/apache/xerces/parsers/SAXParser
> > > > > > >
> > > > > > >
> > > > > > > However when I run the parser as a standalone java application
> > (from
> > > > > > > eclipse) it runs fine.
> > > > > > >
> > > > > > > Im pretty sure eclipse is causing the problem but im not sure
> how
> > to
> > > > fix
> > > > > > it.
> > > > > > > -I have noticed that a xerces plugin is included with eclipse,
> but
> > > if
> > > > I
> > > > > > > remove that, eclipse doesnt start.
> > > > > > >
> > > > > > > (At the moment the parser just parses an xml file, and prints
> the
> > > > > content,
> > > > > > > so there is no interaction with the plugin. The plugin just
> > creates
> > > a
> > > > > new
> > > > > > > instance of my parser, which automatically attempts to parse a
> > > > > predefined
> > > > > > > file.)
> > > > > > >
> > > > > > > Any help/tips greatly appreciated.
> > > > > > >
> > > > > > > -Jig.
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
thanks [message #122727 is a reply to message #122717] Tue, 16 March 2004 18:15 Go to previous message
Eclipse UserFriend
Originally posted by: jig.patel.excite.com

that did the job. -cant believe it was that simple.

thanks for all your help Whitney.

-Jig




"Whitney Sorenson" <none@us.ibm.com> wrote in message
news:c37rj9$tot$1@eclipse.org...
> Does your plugin.xml require the xerces plug-in? In the Plug-in Manifest
> Editor, in the Dependencies tab, add it as a required plug-in if you
havn't
> already.
>
> "J Patel" <jig.patel@excite.com> wrote in message
> news:c37ose$q8m$1@eclipse.org...
> > Thanks Whitney, i understand what you mean now.
> >
> > the source of the prob. is:
> > "java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser"
> >
> > i dont understand how this can be, as the code compiles fine, and all
the
> > appropriate libraries have been included in the build path. (I even
> included
> > a ref. to xerces in my windows classpath)
> >
> > am i missing somthing obvious?
> >
> > -Jig.
> >
> >
> >
> > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > news:c37jh3$jef$1@eclipse.org...
> > > I understand the problem - here's what you can do to find out more
about
> > it:
> > >
> > > Open up the .metadata directory of your runtime-workbench-workspace.
In
> > the
> > > .metadata directory, there is a .log file which contains the verbose
> > details
> > > of this error:
> > > "Unhandled exception caught in event loop.
> > > Reason:
> > > org/apache/xerces/parsers/SAXParser"
> > > Seeing this extra information about what caused this exception will
help
> > you
> > > determine exactly what is going wrong when you are running your
plug-in.
> > > This is because when Eclipse encounters an unhandled exception, such
as
> > the
> > > one above, it prints out the exact exception to the .log file. This
> error
> > > has nothing to do with eclipse not starting when you remove the xerces
> > > plug-in.
> > >
> > >
> > > "J Patel" <jig.patel@excite.com> wrote in message
> > > news:c37834$3jm$1@eclipse.org...
> > > > Whitney,
> > > >
> > > > I think we talking about diff. things -to clarify:
> > > >
> > > > "Unhandled exception caught in event loop.
> > > > Reason:
> > > > org/apache/xerces/parsers/SAXParser"
> > > > -is the messege generated @ runtime by the workbench, as my parser
> cant
> > be
> > > > initilised when called by my plugin -when my plugin tries to create
an
> > new
> > > > example file like the logic diagram example. (File -> new ->
> example ->
> > > > (select type) -> finish)doesnt work as my parser is called when the
> > > example
> > > > diagram is meant to be made.
> > > > (this is the integration problem with the plugin, as the parser
works
> > fine
> > > > when launched as a java application)
> > > >
> > > > I have noticed that eclipse comes with a xerces plugin, -which i am
> not
> > > > using. When i removed this xerces plugin (hoping that it might
> rectify
> > > the
> > > > above problem), eclipse wont start and the following messege is
> > generated
> > > in
> > > > the .log file:
> > > > "java.lang.RuntimeException: Fatal Error: Unable to locate matching
> > > > org.apache.xerces plug-in."
> > > > -im pretty sure this is because eclipse needs this plugin to run.
> > > >
> > > >
> > > > hope that clarifies what the problem is.
> > > > -Jig
> > > >
> > > >
> > > >
> > > >
> > > > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > > > news:c3761v$o8$1@eclipse.org...
> > > > > So what's the exception in the .log file that causes this message:
> > > > > Unhandled exception caught in event loop.
> > > > > Reason:
> > > > > org/apache/xerces/parsers/SAXParser
> > > > >
> > > > > (check runtime-workbench-workspace maybe?)
> > > > >
> > > > > "J Patel" <jig.patel@excite.com> wrote in message
> > > > > news:c3748a$to8$1@eclipse.org...
> > > > > >
> > > > > > I already know that if i remove the xerces plugin (the ones
thats
> > part
> > > > of
> > > > > > eclipse) eclipse doesnt start because it cant locate it:
> > > > > > -"java.lang.RuntimeException: Fatal Error: Unable to locate
> matching
> > > > > > org.apache.xerces plug-in."
> > > > > >
> > > > > > But im hoping to find a solution that can allow my specified
> version
> > > of
> > > > > > xerces parser (which ive included in the plugin project build
> path)
> > to
> > > > > > coexist with the version thats part of eclipse.
> > > > > > -Or find another suitable solution that will allow me to get my
> > parser
> > > > > > working.
> > > > > >
> > > > > >
> > > > > >
> > > > > > "Whitney Sorenson" <none@us.ibm.com> wrote in message
> > > > > > news:c373it$sqo$1@eclipse.org...
> > > > > > > You should look in your .log file in the .metadata directory
of
> > your
> > > > > > > workspace to find out the exact exception that is being
thrown.
> > > > > > >
> > > > > > > "J Patel" <jig.patel@excite.com> wrote in message
> > > > > > > news:c36qui$hf8$1@eclipse.org...
> > > > > > > > -I get the following message when a class (called from my
GEF
> > > plugin
> > > > > at
> > > > > > > > runtime)
> > > > > > > > trys to create a new instance of the SAX parser.
> > > > > > > > (I have included the xerces .jar files in my plugins java
> build
> > > > path.)
> > > > > > > >
> > > > > > > >
> > > > > > > > Unhandled exception caught in event loop.
> > > > > > > > Reason:
> > > > > > > > org/apache/xerces/parsers/SAXParser
> > > > > > > >
> > > > > > > >
> > > > > > > > However when I run the parser as a standalone java
application
> > > (from
> > > > > > > > eclipse) it runs fine.
> > > > > > > >
> > > > > > > > Im pretty sure eclipse is causing the problem but im not
sure
> > how
> > > to
> > > > > fix
> > > > > > > it.
> > > > > > > > -I have noticed that a xerces plugin is included with
eclipse,
> > but
> > > > if
> > > > > I
> > > > > > > > remove that, eclipse doesnt start.
> > > > > > > >
> > > > > > > > (At the moment the parser just parses an xml file, and
prints
> > the
> > > > > > content,
> > > > > > > > so there is no interaction with the plugin. The plugin just
> > > creates
> > > > a
> > > > > > new
> > > > > > > > instance of my parser, which automatically attempts to parse
a
> > > > > > predefined
> > > > > > > > file.)
> > > > > > > >
> > > > > > > > Any help/tips greatly appreciated.
> > > > > > > >
> > > > > > > > -Jig.
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:Forcing Figure Redraw
Next Topic:ScrollPane for model View
Goto Forum:
  


Current Time: Thu Jul 17 13:31:38 EDT 2025

Powered by FUDForum. Page generated in 0.09917 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top