Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO]Problem creating CDO/RAP target profile
[CDO]Problem creating CDO/RAP target profile [message #431932] Thu, 30 July 2009 04:11 Go to next message
Steve Robenalt is currently offline Steve RobenaltFriend
Messages: 22
Registered: July 2009
Junior Member
Hi all,

I am working with CDO and have had a pretty seamless experience (until
now). I have an RCP application using multiple ecore models internally,
formerly all using XMI persistence. Recently, I have been converting one
of the 6 ecore models to use CDO so I could share configuration
information on the network and store it on a server.

The RCP application has been converted successfully and has been passing
all of the tests so far. I have also been able to use the default CDO
editor to update the model with no problem.

So why am I posting? Basically, I need a web-based editor application for
this same model to perform CRUD operations. As a first step, I have
created a basic RAP application with view from the wizard, and added a CDO
session and view based on the code that works in the RCP app to replace
the content provider in the RAP application. In debug, I have verified
that I am opening the CDO session, creating the CDO view, and opening my
CDOResource with no problem. However, when I attempt to access my resource
to load my model as I do in the RCP app, I get a NullPointerException in
the CDOClassifierRef constructor (see stack trace below).

For the moment, I am suspecting that I have an incomplete RAP/CDO target
profile, though PDE insists that it is complete, including optional
dependencies. Thus my question:

What is the minimum set of EMF/CDO/Net4j plugins required to support a CDO
client? For the record, I am using the tcp net4j signal protocol in both
the RCP app that works and the RAP app that doesn't. The database is the
default derby database with only a name change from the standard one, and
with audit mode turned off. At the moment, I have no reason to suspect the
RAP portion of the target profile, which is a default RAP 1.2 target and
which works fine until the CDO error.

I'll continue to beat my head against the wall on this, but any advice
would be appreciated. If I solve it myself, I'll post a followup.

Thanks,
Steve Robenalt

java.lang.NullPointerException
at
org.eclipse.emf.cdo.common.model.CDOClassifierRef.<init>(CDOClassifierRef.java:53)
at
org.eclipse.emf.cdo.internal.common.io.CDODataInputImpl.read CDOClassifierRef(CDODataInputImpl.java:129)
at
org.eclipse.emf.cdo.internal.common.io.CDODataInputImpl.read CDOClassifierRefAndResolve(CDODataInputImpl.java:134)
at
org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision. <init>(AbstractCDORevision.java:116)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl . <init>(CDORevisionImpl.java:44)
at
org.eclipse.emf.cdo.internal.common.io.CDODataInputImpl.read CDORevision(CDODataInputImpl.java:217)
at
org.eclipse.emf.internal.cdo.net4j.protocol.LoadRevisionRequ est.confirming(LoadRevisionRequest.java:131)
at
org.eclipse.emf.internal.cdo.net4j.protocol.LoadRevisionRequ est.confirming(LoadRevisionRequest.java:1)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
at
org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
at
org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:319)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.loadRevisions(CDOClientProtocol.java:110)
at
org.eclipse.emf.internal.cdo.session.CDORevisionManagerImpl. loadRevisions(CDORevisionManagerImpl.java:124)
at
org.eclipse.emf.internal.cdo.session.CDORevisionManagerImpl. loadRevision(CDORevisionManagerImpl.java:106)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevision(CDORevisionResolverImpl.java:155)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevision(CDORevisionResolverImpl.java:1)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.getRevision(CD OViewImpl.java:684)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.createObject(C DOViewImpl.java:823)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.getObject(CDOV iewImpl.java:722)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.convertIDToObj ect(CDOViewImpl.java:1016)
at org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore. java:384)
at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:177)
at
org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreELis t.delegateGet(EStoreEObjectImpl.java:225)
at
org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEL ist.java:236)
at com.webcircuit.apps.optics.web.facility.View.loadModel(View. java:139)
at
com.webcircuit.apps.optics.web.facility.View.createPartContr ol(View.java:95)
at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:371)
at
org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:230)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:31 2)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:54 5)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:185)
at
org.eclipse.rap.internal.design.example.business.stacks.View StackPresentation.selectPart(ViewStackPresentation.java:827)
at
org.eclipse.rap.ui.interactiondesign.internal.ConfigurableSt ackProxy.selectPart(ConfigurableStackProxy.java:424)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1268)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1221)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 20)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:659)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:585)
at
org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:569)
at
org.eclipse.ui.internal.PerspectiveHelper.activate(Perspecti veHelper.java:269)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.j ava:930)
at
org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPa ge.java:2494)
at
org.eclipse.ui.internal.WorkbenchWindow$22.run(WorkbenchWind ow.java:2933)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:66)
at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:2914)
at
org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:720)
at
org.eclipse.ui.internal.Workbench$18.runWithException(Workbe nch.java:1065)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
at
org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync (UICallBackManager.java:115)
at org.eclipse.swt.widgets.Display$2.run(Display.java:695)
at
org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler. runNonUIThreadWithFakeContext(UICallBackServiceHandler.java: 460)
at
org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeC ontext(UICallBack.java:44)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:693)
at
org.eclipse.ui.internal.StartupThreading.runWithWorkbenchExc eptions(StartupThreading.java:55)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:1061)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1888)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1824)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:188)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:790)
at
org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1430)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
at
org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync (UICallBackManager.java:115)
at org.eclipse.swt.widgets.Display$2.run(Display.java:695)
at
org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler. runNonUIThreadWithFakeContext(UICallBackServiceHandler.java: 460)
at
org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeC ontext(UICallBack.java:44)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:693)
at
org.eclipse.ui.internal.StartupThreading.runWithoutException s(StartupThreading.java:110)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1425)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2406)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 95)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:514)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:497)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
at
com.webcircuit.apps.customer.web.facility.Application.create UI(Application.java:17)
at
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:231)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:119)
at java.lang.Thread.run(Thread.java:619)
Re: [CDO]Problem creating CDO/RAP target profile [message #431933 is a reply to message #431932] Thu, 30 July 2009 05:42 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000209030202090602020205
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Steve,

The exception most probably means that the client and server version of
CDOProtocol code do not match together properly. If you compare the read
constructor (which threw the exception) with the write() method just
below it you see that there's not way to write null:

| *public *CDOClassifierRef(CDODataInput in) *throws *IOException
{
String uri = in.readCDOPackageURI();
*if *(uri == *null*)
{
*throw new *IOException(Messages.getString("CDOClassifierRef.1") + uri); //$NON-NLS-1$
}

*int *hash = uri.lastIndexOf(URI_SEPARATOR);
*if *(hash == -1)
{
*throw new *IOException(Messages.getString("CDOClassifierRef.1") + uri); //$NON-NLS-1$
}

packageURI = uri.substring(0, hash);
classifierName = uri.substring(hash + 1);
}

*public **void *write(CDODataOutput out) *throws *IOException
{
out.writeCDOPackageURI(packageURI + URI_SEPARATOR + classifierName);
}|


So this is either a very strange bug or just a deployment problem on
your side. Which version(s) of CDO and Net4j are you using? Can you try
it with the HEAD sources, too?

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Steve Robenalt schrieb:
> Hi all,
>
> I am working with CDO and have had a pretty seamless experience (until
> now). I have an RCP application using multiple ecore models
> internally, formerly all using XMI persistence. Recently, I have been
> converting one of the 6 ecore models to use CDO so I could share
> configuration information on the network and store it on a server.
>
> The RCP application has been converted successfully and has been
> passing all of the tests so far. I have also been able to use the
> default CDO editor to update the model with no problem.
>
> So why am I posting? Basically, I need a web-based editor application
> for this same model to perform CRUD operations. As a first step, I
> have created a basic RAP application with view from the wizard, and
> added a CDO session and view based on the code that works in the RCP
> app to replace the content provider in the RAP application. In debug,
> I have verified that I am opening the CDO session, creating the CDO
> view, and opening my CDOResource with no problem. However, when I
> attempt to access my resource to load my model as I do in the RCP app,
> I get a NullPointerException in the CDOClassifierRef constructor (see
> stack trace below).
>
> For the moment, I am suspecting that I have an incomplete RAP/CDO
> target profile, though PDE insists that it is complete, including
> optional dependencies. Thus my question:
>
> What is the minimum set of EMF/CDO/Net4j plugins required to support a
> CDO client? For the record, I am using the tcp net4j signal protocol
> in both the RCP app that works and the RAP app that doesn't. The
> database is the default derby database with only a name change from
> the standard one, and with audit mode turned off. At the moment, I
> have no reason to suspect the RAP portion of the target profile, which
> is a default RAP 1.2 target and which works fine until the CDO error.
> I'll continue to beat my head against the wall on this, but any advice
> would be appreciated. If I solve it myself, I'll post a followup.
>
> Thanks,
> Steve Robenalt
> java.lang.NullPointerException
> at
> org.eclipse.emf.cdo.common.model.CDOClassifierRef.<init>(CDOClassifierRef.java:53)
>
> at
> org.eclipse.emf.cdo.internal.common.io.CDODataInputImpl.read CDOClassifierRef(CDODataInputImpl.java:129)
>
> at
> org.eclipse.emf.cdo.internal.common.io.CDODataInputImpl.read CDOClassifierRefAndResolve(CDODataInputImpl.java:134)
>
> at
> org.eclipse.emf.cdo.spi.common.revision.AbstractCDORevision. <init>(AbstractCDORevision.java:116)
>
> at
> org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl . <init>(CDORevisionImpl.java:44)
>
> at
> org.eclipse.emf.cdo.internal.common.io.CDODataInputImpl.read CDORevision(CDODataInputImpl.java:217)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.LoadRevisionRequ est.confirming(LoadRevisionRequest.java:131)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.LoadRevisionRequ est.confirming(LoadRevisionRequest.java:1)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientRequest .confirming(CDOClientRequest.java:77)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExtendedI nput(RequestWithConfirmation.java:123)
>
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:312)
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doExecute(R equestWithConfirmation.java:103)
>
> at org.eclipse.net4j.signal.SignalActor.execute(SignalActor.jav a:66)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:239)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:423)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.doSend(Requ estWithConfirmation.java:87)
>
> at
> org.eclipse.net4j.signal.RequestWithConfirmation.send(Reques tWithConfirmation.java:73)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:286)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.send(CDOClientProtocol.java:319)
>
> at
> org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtoco l.loadRevisions(CDOClientProtocol.java:110)
>
> at
> org.eclipse.emf.internal.cdo.session.CDORevisionManagerImpl. loadRevisions(CDORevisionManagerImpl.java:124)
>
> at
> org.eclipse.emf.internal.cdo.session.CDORevisionManagerImpl. loadRevision(CDORevisionManagerImpl.java:106)
>
> at
> org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevision(CDORevisionResolverImpl.java:155)
>
> at
> org.eclipse.emf.cdo.internal.common.revision.CDORevisionReso lverImpl.getRevision(CDORevisionResolverImpl.java:1)
>
> at
> org.eclipse.emf.internal.cdo.view.CDOViewImpl.getRevision(CD OViewImpl.java:684)
>
> at
> org.eclipse.emf.internal.cdo.view.CDOViewImpl.createObject(C DOViewImpl.java:823)
>
> at
> org.eclipse.emf.internal.cdo.view.CDOViewImpl.getObject(CDOV iewImpl.java:722)
>
> at
> org.eclipse.emf.internal.cdo.view.CDOViewImpl.convertIDToObj ect(CDOViewImpl.java:1016)
>
> at
> org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore. java:384)
> at org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:177)
> at
> org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreELis t.delegateGet(EStoreEObjectImpl.java:225)
>
> at
> org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEL ist.java:236)
> at
> com.webcircuit.apps.optics.web.facility.View.loadModel(View. java:139)
> at
> com.webcircuit.apps.optics.web.facility.View.createPartContr ol(View.java:95)
>
> at
> org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:371)
>
> at
> org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:230)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:31 2)
> at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:54 5)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:185)
>
> at
> org.eclipse.rap.internal.design.example.business.stacks.View StackPresentation.selectPart(ViewStackPresentation.java:827)
>
> at
> org.eclipse.rap.ui.interactiondesign.internal.ConfigurableSt ackProxy.selectPart(ConfigurableStackProxy.java:424)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1268)
>
> at
> org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1221)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 20)
> at
> org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:659)
> at
> org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:585)
> at
> org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:569)
>
> at
> org.eclipse.ui.internal.PerspectiveHelper.activate(Perspecti veHelper.java:269)
>
> at
> org.eclipse.ui.internal.Perspective.onActivate(Perspective.j ava:930)
> at
> org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPa ge.java:2494)
> at
> org.eclipse.ui.internal.WorkbenchWindow$22.run(WorkbenchWind ow.java:2933)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:66)
> at
> org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:2914)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:720)
>
> at
> org.eclipse.ui.internal.Workbench$18.runWithException(Workbe nch.java:1065)
>
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
>
> at
> org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync (UICallBackManager.java:115)
>
> at org.eclipse.swt.widgets.Display$2.run(Display.java:695)
> at
> org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler. runNonUIThreadWithFakeContext(UICallBackServiceHandler.java: 460)
>
> at
> org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeC ontext(UICallBack.java:44)
>
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:693)
> at
> org.eclipse.ui.internal.StartupThreading.runWithWorkbenchExc eptions(StartupThreading.java:55)
>
> at
> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:1061)
>
> at
> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1888)
>
> at
> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1824)
>
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:188)
>
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:790)
>
> at
> org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1430)
>
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
>
> at
> org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync (UICallBackManager.java:115)
>
> at org.eclipse.swt.widgets.Display$2.run(Display.java:695)
> at
> org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler. runNonUIThreadWithFakeContext(UICallBackServiceHandler.java: 460)
>
> at
> org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeC ontext(UICallBack.java:44)
>
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:693)
> at
> org.eclipse.ui.internal.StartupThreading.runWithoutException s(StartupThreading.java:110)
>
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1425)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2406)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 95)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:514)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:497)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
> at
> com.webcircuit.apps.customer.web.facility.Application.create UI(Application.java:17)
>
> at
> org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:231)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:119)
>
> at java.lang.Thread.run(Thread.java:619)
>
>

--------------000209030202090602020205
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Steve,<br>
<br>
The exception most probably means that the client and server version of
CDOProtocol code do not match together properly. If you compare the
read constructor (which threw the exception) with the write() method
just below it you see that there's not way to write null:<br>
<br>
<title></title>
<style type="text/css">
<!--code { font-family: Courier New, Courier; font-size: 10pt; margin: 0px; }-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ======================================================== -->
<!-- = Java Sourcecode to HTML automatically converted code = --><!-- = Java2Html Converter 5.0 [2006-02-26] by Markus Gebhard markus@jave.de = -->
<!-- = Further information: http://www.java2html.de = -->
<div class="java" align="left">
<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<!-- start source code --> <td align="left" nowrap="nowrap"
valign="top"> <code><font color="#ffffff">


Re: [CDO]Problem creating CDO/RAP target profile [message #431956 is a reply to message #431933] Thu, 30 July 2009 14:27 Go to previous messageGo to next message
Steve Robenalt is currently offline Steve RobenaltFriend
Messages: 22
Registered: July 2009
Junior Member
Hi Eike,

Thanks for the quick reply. I found the problem and it's now working.

Debugging a bit further revealed that the uri was null in the
CDOClassifierRef constructor on the third call. The first call was for
CDOResource, the second was for my model's root element, the third (which
failed) was for another class in my model. From this, I hypothesized that
my model was not being loaded properly. I had the model and model.edit in
my workspace, though unchanged from what the other apps were using. I
exported the model and model.edit from my workspace, moved the resulting
plugins into my target profile, and relaunched, after which it worked with
no further issues.

I'm not sure why it would work one way, but not the other, but I'll have
to look into it another day.

Thanks again,
Steve Robenalt
Re: [CDO]Problem creating CDO/RAP target profile [message #431957 is a reply to message #431956] Thu, 30 July 2009 15:51 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Steve,

I'm glad that you found it ;-)

Model management is a subtle topic in CDO, although it should be pretty
transparent in the normal cases from a user perspective. Let me know if
you need further assistance...

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Steve Robenalt schrieb:
> Hi Eike,
>
> Thanks for the quick reply. I found the problem and it's now working.
>
> Debugging a bit further revealed that the uri was null in the
> CDOClassifierRef constructor on the third call. The first call was for
> CDOResource, the second was for my model's root element, the third
> (which failed) was for another class in my model. From this, I
> hypothesized that my model was not being loaded properly. I had the
> model and model.edit in my workspace, though unchanged from what the
> other apps were using. I exported the model and model.edit from my
> workspace, moved the resulting plugins into my target profile, and
> relaunched, after which it worked with no further issues.
>
> I'm not sure why it would work one way, but not the other, but I'll
> have to look into it another day.
>
> Thanks again,
> Steve Robenalt
>
>


Previous Topic:EMF Meta Tooling
Next Topic:XSDEcoreBuilder --> using a different EcorePackage instance
Goto Forum:
  


Current Time: Thu Apr 25 01:07:22 GMT 2024

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

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

Back to the top