Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » ClassCastException in XSDSchemaImpl
ClassCastException in XSDSchemaImpl [message #37282] Fri, 13 February 2004 21:20 Go to next message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
Ed or Frank,

I encountered the following CCE when editing an XML schema model via the
editor

Get this ClassCaseException when node.getParentNode() returns a DocumentImpl
instance.

Thread [main] (Suspended (exception ClassCastException))
XSDSchemaImpl$5.handleEvent(Event) line: 2792
DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean) line:
494
ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node, Node,
Node) line: 1535
XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e, Node, Node)
line: 1481
XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
XSDConcreteComponent) line: 1334
XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
XSDConcreteComponent) line: 1362
XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line: 1725
XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line: 1125
NotificationChainImpl.dispatch(Notification) line: 115
NotificationChainImpl.dispatch() line: 103
EObjectContainmentEList(NotifyingListImpl).addAllUnique(int, Collection)
line: 342
EObjectContainmentEList(BasicEList).addAll(int, Collection) line: 729
AddCommand.doExecute() line: 318
AddCommand(AbstractOverrideableCommand).execute() line: 132
CreateChildCommand(CommandWrapper).execute() line: 180
CreateChildCommand.execute() line: 250
BasicCommandStack.execute(Command) line: 93
CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
CreateSiblingAction(Action).runWithEvent(Event) line: 842
Re: ClassCastException in XSDSchemaImpl [message #37316 is a reply to message #37282] Fri, 13 February 2004 22:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

What sample do I need to edit and what steps can I follow to reproduce this?


dfuglsang wrote:

> Ed or Frank,
>
> I encountered the following CCE when editing an XML schema model via the
> editor
>
> Get this ClassCaseException when node.getParentNode() returns a DocumentImpl
> instance.
>
> Thread [main] (Suspended (exception ClassCastException))
> XSDSchemaImpl$5.handleEvent(Event) line: 2792
> DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean) line:
> 494
> ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node, Node,
> Node) line: 1535
> XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e, Node, Node)
> line: 1481
> XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> XSDConcreteComponent) line: 1334
> XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> XSDConcreteComponent) line: 1362
> XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line: 1725
> XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line: 1125
> NotificationChainImpl.dispatch(Notification) line: 115
> NotificationChainImpl.dispatch() line: 103
> EObjectContainmentEList(NotifyingListImpl).addAllUnique(int, Collection)
> line: 342
> EObjectContainmentEList(BasicEList).addAll(int, Collection) line: 729
> AddCommand.doExecute() line: 318
> AddCommand(AbstractOverrideableCommand).execute() line: 132
> CreateChildCommand(CommandWrapper).execute() line: 180
> CreateChildCommand.execute() line: 250
> BasicCommandStack.execute(Command) line: 93
> CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> CreateSiblingAction(Action).runWithEvent(Event) line: 842
Re: ClassCastException in XSDSchemaImpl [message #37349 is a reply to message #37316] Tue, 17 February 2004 16:44 Go to previous messageGo to next message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
Sorry. I attached the xsd that I was editing when I encountered the
problem. The steps to reproduce this are
(1) Open the xsd in the editor.
(2) Add a new child element under the root schema via the syntax tab in the
editor.




"Ed Merks" <merks@ca.ibm.com> wrote in message
news:402D4A31.F4DBF1AD@ca.ibm.com...
> What sample do I need to edit and what steps can I follow to reproduce
this?
>
>
> dfuglsang wrote:
>
> > Ed or Frank,
> >
> > I encountered the following CCE when editing an XML schema model via the
> > editor
> >
> > Get this ClassCaseException when node.getParentNode() returns a
DocumentImpl
> > instance.
> >
> > Thread [main] (Suspended (exception ClassCastException))
> > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean)
line:
> > 494
> > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
Node,
> > Node) line: 1535
> > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e, Node,
Node)
> > line: 1481
> >
XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > XSDConcreteComponent) line: 1334
> > XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > XSDConcreteComponent) line: 1362
> > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line: 1725
> > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line:
1125
> > NotificationChainImpl.dispatch(Notification) line: 115
> > NotificationChainImpl.dispatch() line: 103
> > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
Collection)
> > line: 342
> > EObjectContainmentEList(BasicEList).addAll(int, Collection) line: 729
> > AddCommand.doExecute() line: 318
> > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > CreateChildCommand(CommandWrapper).execute() line: 180
> > CreateChildCommand.execute() line: 250
> > BasicCommandStack.execute(Command) line: 93
> > CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> > CreateSiblingAction(Action).runWithEvent(Event) line: 842
>


  • Attachment: Books.xsd
    (Size: 7.85KB, Downloaded 305 times)
Re: ClassCastException in XSDSchemaImpl [message #37383 is a reply to message #37349] Tue, 17 February 2004 17:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

I can't reproduce this. Should I expect to see this error in my
workspace/.metadata/.log after I try?


dfuglsang wrote:

> Sorry. I attached the xsd that I was editing when I encountered the
> problem. The steps to reproduce this are
> (1) Open the xsd in the editor.
> (2) Add a new child element under the root schema via the syntax tab in the
> editor.
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:402D4A31.F4DBF1AD@ca.ibm.com...
> > What sample do I need to edit and what steps can I follow to reproduce
> this?
> >
> >
> > dfuglsang wrote:
> >
> > > Ed or Frank,
> > >
> > > I encountered the following CCE when editing an XML schema model via the
> > > editor
> > >
> > > Get this ClassCaseException when node.getParentNode() returns a
> DocumentImpl
> > > instance.
> > >
> > > Thread [main] (Suspended (exception ClassCastException))
> > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean)
> line:
> > > 494
> > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> Node,
> > > Node) line: 1535
> > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e, Node,
> Node)
> > > line: 1481
> > >
> XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > XSDConcreteComponent) line: 1334
> > > XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > XSDConcreteComponent) line: 1362
> > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line: 1725
> > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line:
> 1125
> > > NotificationChainImpl.dispatch(Notification) line: 115
> > > NotificationChainImpl.dispatch() line: 103
> > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> Collection)
> > > line: 342
> > > EObjectContainmentEList(BasicEList).addAll(int, Collection) line: 729
> > > AddCommand.doExecute() line: 318
> > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > CreateChildCommand.execute() line: 250
> > > BasicCommandStack.execute(Command) line: 93
> > > CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> >
>
> Name: Books.xsd
> Books.xsd Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode
Re: ClassCastException in XSDSchemaImpl [message #37417 is a reply to message #37383] Wed, 18 February 2004 15:52 Go to previous messageGo to next message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
I do not know if the exception is logged but you will hit it when running
Eclipse in the debug mode with
a ClassCastException java exception breakpoint enabled (caught and
uncaught).

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:40324E66.C471C82E@ca.ibm.com...
> I can't reproduce this. Should I expect to see this error in my
> workspace/.metadata/.log after I try?
>
>
> dfuglsang wrote:
>
> > Sorry. I attached the xsd that I was editing when I encountered the
> > problem. The steps to reproduce this are
> > (1) Open the xsd in the editor.
> > (2) Add a new child element under the root schema via the syntax tab in
the
> > editor.
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:402D4A31.F4DBF1AD@ca.ibm.com...
> > > What sample do I need to edit and what steps can I follow to reproduce
> > this?
> > >
> > >
> > > dfuglsang wrote:
> > >
> > > > Ed or Frank,
> > > >
> > > > I encountered the following CCE when editing an XML schema model via
the
> > > > editor
> > > >
> > > > Get this ClassCaseException when node.getParentNode() returns a
> > DocumentImpl
> > > > instance.
> > > >
> > > > Thread [main] (Suspended (exception ClassCastException))
> > > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> > > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean)
> > line:
> > > > 494
> > > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > > XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> > Node,
> > > > Node) line: 1535
> > > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e,
Node,
> > Node)
> > > > line: 1481
> > > >
> >
XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > > XSDConcreteComponent) line: 1334
> > > > XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > > XSDConcreteComponent) line: 1362
> > > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line:
1725
> > > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line:
> > 1125
> > > > NotificationChainImpl.dispatch(Notification) line: 115
> > > > NotificationChainImpl.dispatch() line: 103
> > > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> > Collection)
> > > > line: 342
> > > > EObjectContainmentEList(BasicEList).addAll(int, Collection) line:
729
> > > > AddCommand.doExecute() line: 318
> > > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > > CreateChildCommand.execute() line: 250
> > > > BasicCommandStack.execute(Command) line: 93
> > > > CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> > > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> > >
> >
> > Name: Books.xsd
> > Books.xsd Type: unspecified type (application/octet-stream)
> > Encoding: x-uuencode
>
Re: ClassCastException in XSDSchemaImpl [message #37451 is a reply to message #37417] Wed, 18 February 2004 17:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Okay, I'll try again. Does it show up in the .log for you?

dfuglsang wrote:

> I do not know if the exception is logged but you will hit it when running
> Eclipse in the debug mode with
> a ClassCastException java exception breakpoint enabled (caught and
> uncaught).
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:40324E66.C471C82E@ca.ibm.com...
> > I can't reproduce this. Should I expect to see this error in my
> > workspace/.metadata/.log after I try?
> >
> >
> > dfuglsang wrote:
> >
> > > Sorry. I attached the xsd that I was editing when I encountered the
> > > problem. The steps to reproduce this are
> > > (1) Open the xsd in the editor.
> > > (2) Add a new child element under the root schema via the syntax tab in
> the
> > > editor.
> > >
> > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > news:402D4A31.F4DBF1AD@ca.ibm.com...
> > > > What sample do I need to edit and what steps can I follow to reproduce
> > > this?
> > > >
> > > >
> > > > dfuglsang wrote:
> > > >
> > > > > Ed or Frank,
> > > > >
> > > > > I encountered the following CCE when editing an XML schema model via
> the
> > > > > editor
> > > > >
> > > > > Get this ClassCaseException when node.getParentNode() returns a
> > > DocumentImpl
> > > > > instance.
> > > > >
> > > > > Thread [main] (Suspended (exception ClassCastException))
> > > > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> > > > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean)
> > > line:
> > > > > 494
> > > > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > > > XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> > > Node,
> > > > > Node) line: 1535
> > > > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e,
> Node,
> > > Node)
> > > > > line: 1481
> > > > >
> > >
> XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > > > XSDConcreteComponent) line: 1334
> > > > > XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > > > XSDConcreteComponent) line: 1362
> > > > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line:
> 1725
> > > > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line:
> > > 1125
> > > > > NotificationChainImpl.dispatch(Notification) line: 115
> > > > > NotificationChainImpl.dispatch() line: 103
> > > > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> > > Collection)
> > > > > line: 342
> > > > > EObjectContainmentEList(BasicEList).addAll(int, Collection) line:
> 729
> > > > > AddCommand.doExecute() line: 318
> > > > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > > > CreateChildCommand.execute() line: 250
> > > > > BasicCommandStack.execute(Command) line: 93
> > > > > CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> > > > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> > > >
> > >
> > > Name: Books.xsd
> > > Books.xsd Type: unspecified type (application/octet-stream)
> > > Encoding: x-uuencode
> >
Re: ClassCastException in XSDSchemaImpl [message #37555 is a reply to message #37451] Mon, 01 March 2004 15:13 Go to previous messageGo to next message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
No. The runtime exception does not show up in the .log file. The exception
might be swallowed somewhere in the event processing framework.


"Ed Merks" <merks@ca.ibm.com> wrote in message
news:40339D36.9F4E1A8D@ca.ibm.com...
> Okay, I'll try again. Does it show up in the .log for you?
>
> dfuglsang wrote:
>
> > I do not know if the exception is logged but you will hit it when
running
> > Eclipse in the debug mode with
> > a ClassCastException java exception breakpoint enabled (caught and
> > uncaught).
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:40324E66.C471C82E@ca.ibm.com...
> > > I can't reproduce this. Should I expect to see this error in my
> > > workspace/.metadata/.log after I try?
> > >
> > >
> > > dfuglsang wrote:
> > >
> > > > Sorry. I attached the xsd that I was editing when I encountered the
> > > > problem. The steps to reproduce this are
> > > > (1) Open the xsd in the editor.
> > > > (2) Add a new child element under the root schema via the syntax tab
in
> > the
> > > > editor.
> > > >
> > > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > > news:402D4A31.F4DBF1AD@ca.ibm.com...
> > > > > What sample do I need to edit and what steps can I follow to
reproduce
> > > > this?
> > > > >
> > > > >
> > > > > dfuglsang wrote:
> > > > >
> > > > > > Ed or Frank,
> > > > > >
> > > > > > I encountered the following CCE when editing an XML schema model
via
> > the
> > > > > > editor
> > > > > >
> > > > > > Get this ClassCaseException when node.getParentNode() returns a
> > > > DocumentImpl
> > > > > > instance.
> > > > > >
> > > > > > Thread [main] (Suspended (exception ClassCastException))
> > > > > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > > > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > > > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line:
1056
> > > > > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node,
boolean)
> > > > line:
> > > > > > 494
> > > > > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > > > >
XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> > > > Node,
> > > > > > Node) line: 1535
> > > > > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e,
> > Node,
> > > > Node)
> > > > > > line: 1481
> > > > > >
> > > >
> >
XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > > > > XSDConcreteComponent) line: 1334
> > > > > >
XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > > > > XSDConcreteComponent) line: 1362
> > > > > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent)
line:
> > 1725
> > > > > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification )
line:
> > > > 1125
> > > > > > NotificationChainImpl.dispatch(Notification) line: 115
> > > > > > NotificationChainImpl.dispatch() line: 103
> > > > > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> > > > Collection)
> > > > > > line: 342
> > > > > > EObjectContainmentEList(BasicEList).addAll(int, Collection)
line:
> > 729
> > > > > > AddCommand.doExecute() line: 318
> > > > > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > > > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > > > > CreateChildCommand.execute() line: 250
> > > > > > BasicCommandStack.execute(Command) line: 93
> > > > > > CreateSiblingAction(StaticSelectionCommandAction).run() line:
227
> > > > > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> > > > >
> > > >
> > > > Name: Books.xsd
> > > > Books.xsd Type: unspecified type (application/octet-stream)
> > > > Encoding: x-uuencode
> > >
>
Re: ClassCastException in XSDSchemaImpl [message #37585 is a reply to message #37555] Mon, 01 March 2004 15:18 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Sorry, I still haven't had time to look at this. It's probably best to open a
bugzilla defect to track this.


dfuglsang wrote:

> No. The runtime exception does not show up in the .log file. The exception
> might be swallowed somewhere in the event processing framework.
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:40339D36.9F4E1A8D@ca.ibm.com...
> > Okay, I'll try again. Does it show up in the .log for you?
> >
> > dfuglsang wrote:
> >
> > > I do not know if the exception is logged but you will hit it when
> running
> > > Eclipse in the debug mode with
> > > a ClassCastException java exception breakpoint enabled (caught and
> > > uncaught).
> > >
> > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > news:40324E66.C471C82E@ca.ibm.com...
> > > > I can't reproduce this. Should I expect to see this error in my
> > > > workspace/.metadata/.log after I try?
> > > >
> > > >
> > > > dfuglsang wrote:
> > > >
> > > > > Sorry. I attached the xsd that I was editing when I encountered the
> > > > > problem. The steps to reproduce this are
> > > > > (1) Open the xsd in the editor.
> > > > > (2) Add a new child element under the root schema via the syntax tab
> in
> > > the
> > > > > editor.
> > > > >
> > > > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > > > news:402D4A31.F4DBF1AD@ca.ibm.com...
> > > > > > What sample do I need to edit and what steps can I follow to
> reproduce
> > > > > this?
> > > > > >
> > > > > >
> > > > > > dfuglsang wrote:
> > > > > >
> > > > > > > Ed or Frank,
> > > > > > >
> > > > > > > I encountered the following CCE when editing an XML schema model
> via
> > > the
> > > > > > > editor
> > > > > > >
> > > > > > > Get this ClassCaseException when node.getParentNode() returns a
> > > > > DocumentImpl
> > > > > > > instance.
> > > > > > >
> > > > > > > Thread [main] (Suspended (exception ClassCastException))
> > > > > > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > > > > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > > > > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line:
> 1056
> > > > > > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node,
> boolean)
> > > > > line:
> > > > > > > 494
> > > > > > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > > > > >
> XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> > > > > Node,
> > > > > > > Node) line: 1535
> > > > > > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e,
> > > Node,
> > > > > Node)
> > > > > > > line: 1481
> > > > > > >
> > > > >
> > >
> XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > > > > > XSDConcreteComponent) line: 1334
> > > > > > >
> XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > > > > > XSDConcreteComponent) line: 1362
> > > > > > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent)
> line:
> > > 1725
> > > > > > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification )
> line:
> > > > > 1125
> > > > > > > NotificationChainImpl.dispatch(Notification) line: 115
> > > > > > > NotificationChainImpl.dispatch() line: 103
> > > > > > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> > > > > Collection)
> > > > > > > line: 342
> > > > > > > EObjectContainmentEList(BasicEList).addAll(int, Collection)
> line:
> > > 729
> > > > > > > AddCommand.doExecute() line: 318
> > > > > > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > > > > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > > > > > CreateChildCommand.execute() line: 250
> > > > > > > BasicCommandStack.execute(Command) line: 93
> > > > > > > CreateSiblingAction(StaticSelectionCommandAction).run() line:
> 227
> > > > > > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> > > > > >
> > > > >
> > > > > Name: Books.xsd
> > > > > Books.xsd Type: unspecified type (application/octet-stream)
> > > > > Encoding: x-uuencode
> > > >
> >
Re: ClassCastException in XSDSchemaImpl [message #583481 is a reply to message #37282] Fri, 13 February 2004 22:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
What sample do I need to edit and what steps can I follow to reproduce this?


dfuglsang wrote:

> Ed or Frank,
>
> I encountered the following CCE when editing an XML schema model via the
> editor
>
> Get this ClassCaseException when node.getParentNode() returns a DocumentImpl
> instance.
>
> Thread [main] (Suspended (exception ClassCastException))
> XSDSchemaImpl$5.handleEvent(Event) line: 2792
> DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean) line:
> 494
> ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node, Node,
> Node) line: 1535
> XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e, Node, Node)
> line: 1481
> XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> XSDConcreteComponent) line: 1334
> XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> XSDConcreteComponent) line: 1362
> XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line: 1725
> XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line: 1125
> NotificationChainImpl.dispatch(Notification) line: 115
> NotificationChainImpl.dispatch() line: 103
> EObjectContainmentEList(NotifyingListImpl).addAllUnique(int, Collection)
> line: 342
> EObjectContainmentEList(BasicEList).addAll(int, Collection) line: 729
> AddCommand.doExecute() line: 318
> AddCommand(AbstractOverrideableCommand).execute() line: 132
> CreateChildCommand(CommandWrapper).execute() line: 180
> CreateChildCommand.execute() line: 250
> BasicCommandStack.execute(Command) line: 93
> CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> CreateSiblingAction(Action).runWithEvent(Event) line: 842


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: ClassCastException in XSDSchemaImpl [message #583492 is a reply to message #37316] Tue, 17 February 2004 16:44 Go to previous message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
Sorry. I attached the xsd that I was editing when I encountered the
problem. The steps to reproduce this are
(1) Open the xsd in the editor.
(2) Add a new child element under the root schema via the syntax tab in the
editor.




"Ed Merks" <merks@ca.ibm.com> wrote in message
news:402D4A31.F4DBF1AD@ca.ibm.com...
> What sample do I need to edit and what steps can I follow to reproduce
this?
>
>
> dfuglsang wrote:
>
> > Ed or Frank,
> >
> > I encountered the following CCE when editing an XML schema model via the
> > editor
> >
> > Get this ClassCaseException when node.getParentNode() returns a
DocumentImpl
> > instance.
> >
> > Thread [main] (Suspended (exception ClassCastException))
> > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean)
line:
> > 494
> > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
Node,
> > Node) line: 1535
> > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e, Node,
Node)
> > line: 1481
> >
XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > XSDConcreteComponent) line: 1334
> > XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > XSDConcreteComponent) line: 1362
> > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line: 1725
> > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line:
1125
> > NotificationChainImpl.dispatch(Notification) line: 115
> > NotificationChainImpl.dispatch() line: 103
> > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
Collection)
> > line: 342
> > EObjectContainmentEList(BasicEList).addAll(int, Collection) line: 729
> > AddCommand.doExecute() line: 318
> > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > CreateChildCommand(CommandWrapper).execute() line: 180
> > CreateChildCommand.execute() line: 250
> > BasicCommandStack.execute(Command) line: 93
> > CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> > CreateSiblingAction(Action).runWithEvent(Event) line: 842
>


  • Attachment: Books.xsd
    (Size: 7.85KB, Downloaded 237 times)
Re: ClassCastException in XSDSchemaImpl [message #583507 is a reply to message #37349] Tue, 17 February 2004 17:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
I can't reproduce this. Should I expect to see this error in my
workspace/.metadata/.log after I try?


dfuglsang wrote:

> Sorry. I attached the xsd that I was editing when I encountered the
> problem. The steps to reproduce this are
> (1) Open the xsd in the editor.
> (2) Add a new child element under the root schema via the syntax tab in the
> editor.
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:402D4A31.F4DBF1AD@ca.ibm.com...
> > What sample do I need to edit and what steps can I follow to reproduce
> this?
> >
> >
> > dfuglsang wrote:
> >
> > > Ed or Frank,
> > >
> > > I encountered the following CCE when editing an XML schema model via the
> > > editor
> > >
> > > Get this ClassCaseException when node.getParentNode() returns a
> DocumentImpl
> > > instance.
> > >
> > > Thread [main] (Suspended (exception ClassCastException))
> > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean)
> line:
> > > 494
> > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> Node,
> > > Node) line: 1535
> > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e, Node,
> Node)
> > > line: 1481
> > >
> XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > XSDConcreteComponent) line: 1334
> > > XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > XSDConcreteComponent) line: 1362
> > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line: 1725
> > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line:
> 1125
> > > NotificationChainImpl.dispatch(Notification) line: 115
> > > NotificationChainImpl.dispatch() line: 103
> > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> Collection)
> > > line: 342
> > > EObjectContainmentEList(BasicEList).addAll(int, Collection) line: 729
> > > AddCommand.doExecute() line: 318
> > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > CreateChildCommand.execute() line: 250
> > > BasicCommandStack.execute(Command) line: 93
> > > CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> >
>
> Name: Books.xsd
> Books.xsd Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: ClassCastException in XSDSchemaImpl [message #583518 is a reply to message #37383] Wed, 18 February 2004 15:52 Go to previous message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
I do not know if the exception is logged but you will hit it when running
Eclipse in the debug mode with
a ClassCastException java exception breakpoint enabled (caught and
uncaught).

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:40324E66.C471C82E@ca.ibm.com...
> I can't reproduce this. Should I expect to see this error in my
> workspace/.metadata/.log after I try?
>
>
> dfuglsang wrote:
>
> > Sorry. I attached the xsd that I was editing when I encountered the
> > problem. The steps to reproduce this are
> > (1) Open the xsd in the editor.
> > (2) Add a new child element under the root schema via the syntax tab in
the
> > editor.
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:402D4A31.F4DBF1AD@ca.ibm.com...
> > > What sample do I need to edit and what steps can I follow to reproduce
> > this?
> > >
> > >
> > > dfuglsang wrote:
> > >
> > > > Ed or Frank,
> > > >
> > > > I encountered the following CCE when editing an XML schema model via
the
> > > > editor
> > > >
> > > > Get this ClassCaseException when node.getParentNode() returns a
> > DocumentImpl
> > > > instance.
> > > >
> > > > Thread [main] (Suspended (exception ClassCastException))
> > > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> > > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean)
> > line:
> > > > 494
> > > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > > XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> > Node,
> > > > Node) line: 1535
> > > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e,
Node,
> > Node)
> > > > line: 1481
> > > >
> >
XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > > XSDConcreteComponent) line: 1334
> > > > XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > > XSDConcreteComponent) line: 1362
> > > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line:
1725
> > > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line:
> > 1125
> > > > NotificationChainImpl.dispatch(Notification) line: 115
> > > > NotificationChainImpl.dispatch() line: 103
> > > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> > Collection)
> > > > line: 342
> > > > EObjectContainmentEList(BasicEList).addAll(int, Collection) line:
729
> > > > AddCommand.doExecute() line: 318
> > > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > > CreateChildCommand.execute() line: 250
> > > > BasicCommandStack.execute(Command) line: 93
> > > > CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> > > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> > >
> >
> > Name: Books.xsd
> > Books.xsd Type: unspecified type (application/octet-stream)
> > Encoding: x-uuencode
>
Re: ClassCastException in XSDSchemaImpl [message #583528 is a reply to message #37417] Wed, 18 February 2004 17:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Okay, I'll try again. Does it show up in the .log for you?

dfuglsang wrote:

> I do not know if the exception is logged but you will hit it when running
> Eclipse in the debug mode with
> a ClassCastException java exception breakpoint enabled (caught and
> uncaught).
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:40324E66.C471C82E@ca.ibm.com...
> > I can't reproduce this. Should I expect to see this error in my
> > workspace/.metadata/.log after I try?
> >
> >
> > dfuglsang wrote:
> >
> > > Sorry. I attached the xsd that I was editing when I encountered the
> > > problem. The steps to reproduce this are
> > > (1) Open the xsd in the editor.
> > > (2) Add a new child element under the root schema via the syntax tab in
> the
> > > editor.
> > >
> > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > news:402D4A31.F4DBF1AD@ca.ibm.com...
> > > > What sample do I need to edit and what steps can I follow to reproduce
> > > this?
> > > >
> > > >
> > > > dfuglsang wrote:
> > > >
> > > > > Ed or Frank,
> > > > >
> > > > > I encountered the following CCE when editing an XML schema model via
> the
> > > > > editor
> > > > >
> > > > > Get this ClassCaseException when node.getParentNode() returns a
> > > DocumentImpl
> > > > > instance.
> > > > >
> > > > > Thread [main] (Suspended (exception ClassCastException))
> > > > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line: 1056
> > > > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node, boolean)
> > > line:
> > > > > 494
> > > > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > > > XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> > > Node,
> > > > > Node) line: 1535
> > > > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e,
> Node,
> > > Node)
> > > > > line: 1481
> > > > >
> > >
> XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > > > XSDConcreteComponent) line: 1334
> > > > > XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > > > XSDConcreteComponent) line: 1362
> > > > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line:
> 1725
> > > > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line:
> > > 1125
> > > > > NotificationChainImpl.dispatch(Notification) line: 115
> > > > > NotificationChainImpl.dispatch() line: 103
> > > > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> > > Collection)
> > > > > line: 342
> > > > > EObjectContainmentEList(BasicEList).addAll(int, Collection) line:
> 729
> > > > > AddCommand.doExecute() line: 318
> > > > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > > > CreateChildCommand.execute() line: 250
> > > > > BasicCommandStack.execute(Command) line: 93
> > > > > CreateSiblingAction(StaticSelectionCommandAction).run() line: 227
> > > > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> > > >
> > >
> > > Name: Books.xsd
> > > Books.xsd Type: unspecified type (application/octet-stream)
> > > Encoding: x-uuencode
> >


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: ClassCastException in XSDSchemaImpl [message #583577 is a reply to message #37451] Mon, 01 March 2004 15:13 Go to previous message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
No. The runtime exception does not show up in the .log file. The exception
might be swallowed somewhere in the event processing framework.


"Ed Merks" <merks@ca.ibm.com> wrote in message
news:40339D36.9F4E1A8D@ca.ibm.com...
> Okay, I'll try again. Does it show up in the .log for you?
>
> dfuglsang wrote:
>
> > I do not know if the exception is logged but you will hit it when
running
> > Eclipse in the debug mode with
> > a ClassCastException java exception breakpoint enabled (caught and
> > uncaught).
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:40324E66.C471C82E@ca.ibm.com...
> > > I can't reproduce this. Should I expect to see this error in my
> > > workspace/.metadata/.log after I try?
> > >
> > >
> > > dfuglsang wrote:
> > >
> > > > Sorry. I attached the xsd that I was editing when I encountered the
> > > > problem. The steps to reproduce this are
> > > > (1) Open the xsd in the editor.
> > > > (2) Add a new child element under the root schema via the syntax tab
in
> > the
> > > > editor.
> > > >
> > > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > > news:402D4A31.F4DBF1AD@ca.ibm.com...
> > > > > What sample do I need to edit and what steps can I follow to
reproduce
> > > > this?
> > > > >
> > > > >
> > > > > dfuglsang wrote:
> > > > >
> > > > > > Ed or Frank,
> > > > > >
> > > > > > I encountered the following CCE when editing an XML schema model
via
> > the
> > > > > > editor
> > > > > >
> > > > > > Get this ClassCaseException when node.getParentNode() returns a
> > > > DocumentImpl
> > > > > > instance.
> > > > > >
> > > > > > Thread [main] (Suspended (exception ClassCastException))
> > > > > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > > > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > > > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line:
1056
> > > > > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node,
boolean)
> > > > line:
> > > > > > 494
> > > > > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > > > >
XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> > > > Node,
> > > > > > Node) line: 1535
> > > > > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e,
> > Node,
> > > > Node)
> > > > > > line: 1481
> > > > > >
> > > >
> >
XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > > > > XSDConcreteComponent) line: 1334
> > > > > >
XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > > > > XSDConcreteComponent) line: 1362
> > > > > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent)
line:
> > 1725
> > > > > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification )
line:
> > > > 1125
> > > > > > NotificationChainImpl.dispatch(Notification) line: 115
> > > > > > NotificationChainImpl.dispatch() line: 103
> > > > > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> > > > Collection)
> > > > > > line: 342
> > > > > > EObjectContainmentEList(BasicEList).addAll(int, Collection)
line:
> > 729
> > > > > > AddCommand.doExecute() line: 318
> > > > > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > > > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > > > > CreateChildCommand.execute() line: 250
> > > > > > BasicCommandStack.execute(Command) line: 93
> > > > > > CreateSiblingAction(StaticSelectionCommandAction).run() line:
227
> > > > > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> > > > >
> > > >
> > > > Name: Books.xsd
> > > > Books.xsd Type: unspecified type (application/octet-stream)
> > > > Encoding: x-uuencode
> > >
>
Re: ClassCastException in XSDSchemaImpl [message #583581 is a reply to message #37555] Mon, 01 March 2004 15:18 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Sorry, I still haven't had time to look at this. It's probably best to open a
bugzilla defect to track this.


dfuglsang wrote:

> No. The runtime exception does not show up in the .log file. The exception
> might be swallowed somewhere in the event processing framework.
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:40339D36.9F4E1A8D@ca.ibm.com...
> > Okay, I'll try again. Does it show up in the .log for you?
> >
> > dfuglsang wrote:
> >
> > > I do not know if the exception is logged but you will hit it when
> running
> > > Eclipse in the debug mode with
> > > a ClassCastException java exception breakpoint enabled (caught and
> > > uncaught).
> > >
> > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > news:40324E66.C471C82E@ca.ibm.com...
> > > > I can't reproduce this. Should I expect to see this error in my
> > > > workspace/.metadata/.log after I try?
> > > >
> > > >
> > > > dfuglsang wrote:
> > > >
> > > > > Sorry. I attached the xsd that I was editing when I encountered the
> > > > > problem. The steps to reproduce this are
> > > > > (1) Open the xsd in the editor.
> > > > > (2) Add a new child element under the root schema via the syntax tab
> in
> > > the
> > > > > editor.
> > > > >
> > > > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > > > news:402D4A31.F4DBF1AD@ca.ibm.com...
> > > > > > What sample do I need to edit and what steps can I follow to
> reproduce
> > > > > this?
> > > > > >
> > > > > >
> > > > > > dfuglsang wrote:
> > > > > >
> > > > > > > Ed or Frank,
> > > > > > >
> > > > > > > I encountered the following CCE when editing an XML schema model
> via
> > > the
> > > > > > > editor
> > > > > > >
> > > > > > > Get this ClassCaseException when node.getParentNode() returns a
> > > > > DocumentImpl
> > > > > > > instance.
> > > > > > >
> > > > > > > Thread [main] (Suspended (exception ClassCastException))
> > > > > > > XSDSchemaImpl$5.handleEvent(Event) line: 2792
> > > > > > > DocumentImpl.dispatchEvent(NodeImpl, Event) line: 749
> > > > > > > DocumentImpl.insertedNode(NodeImpl, NodeImpl, boolean) line:
> 1056
> > > > > > > ElementNSImpl(ParentNode).internalInsertBefore(Node, Node,
> boolean)
> > > > > line:
> > > > > > > 494
> > > > > > > ElementNSImpl(ParentNode).insertBefore(Node, Node) line: 322
> > > > > > >
> XSDSchemaImpl(XSDConcreteComponentImpl).forceNiceInsertBefor e(Node,
> > > > > Node,
> > > > > > > Node) line: 1535
> > > > > > > XSDSchemaImpl(XSDConcreteComponentImpl).niceInsertBefore(Nod e,
> > > Node,
> > > > > Node)
> > > > > > > line: 1481
> > > > > > >
> > > > >
> > >
> XSDSchemaImpl(XSDConcreteComponentImpl).handleElementForAdop t(EReference,
> > > > > > > XSDConcreteComponent) line: 1334
> > > > > > >
> XSDSchemaImpl(XSDConcreteComponentImpl).adoptContent(ERefere nce,
> > > > > > > XSDConcreteComponent) line: 1362
> > > > > > > XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent)
> line:
> > > 1725
> > > > > > > XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification )
> line:
> > > > > 1125
> > > > > > > NotificationChainImpl.dispatch(Notification) line: 115
> > > > > > > NotificationChainImpl.dispatch() line: 103
> > > > > > > EObjectContainmentEList(NotifyingListImpl).addAllUnique(int,
> > > > > Collection)
> > > > > > > line: 342
> > > > > > > EObjectContainmentEList(BasicEList).addAll(int, Collection)
> line:
> > > 729
> > > > > > > AddCommand.doExecute() line: 318
> > > > > > > AddCommand(AbstractOverrideableCommand).execute() line: 132
> > > > > > > CreateChildCommand(CommandWrapper).execute() line: 180
> > > > > > > CreateChildCommand.execute() line: 250
> > > > > > > BasicCommandStack.execute(Command) line: 93
> > > > > > > CreateSiblingAction(StaticSelectionCommandAction).run() line:
> 227
> > > > > > > CreateSiblingAction(Action).runWithEvent(Event) line: 842
> > > > > >
> > > > >
> > > > > Name: Books.xsd
> > > > > Books.xsd Type: unspecified type (application/octet-stream)
> > > > > Encoding: x-uuencode
> > > >
> >


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:NullpointerException in XSDSchemaImpl
Next Topic:How to access type definitions from XSD namespace as part of ResourceSet?
Goto Forum:
  


Current Time: Fri Apr 19 11:51:53 GMT 2024

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

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

Back to the top