Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] 'Decoration Calculation' error using CDO Sessions View
[CDO] 'Decoration Calculation' error using CDO Sessions View [message #929397] Mon, 01 October 2012 12:27 Go to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

Hi all,
we encounter this error while using the CDO Sessions View.
Here is our environment and steps for getting into the error:

- downloaded Eclipse Juno SR1 (4.2.1) RCP & RAP Developers package

- from http://www.elver.org/eclipse/2.0.0/update, installed
MySQL Connector/J 5.1.11.201209301655

- from http://download.eclipse.org/modeling/emf/cdo/updates/releases, installed
CDO R20120918-0947
Net4j DB Framework
Net4j DB Framework MYSQL Adapter 4.1.0.v20120911-1146

- from Juno update site http://download.eclipse.org/releases/juno, installed
Modeling
CDO Model Repository SDK 4.1.1.v20120911-1146

- created a CDO Server product with the following cdo-server.xml
<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>
 
    <acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
    </acceptor>
 
    <repository name="demo">
 
        <store type="db">
            <mappingStrategy type="horizontal">
            	<property name="qualifiedNames" value="true"/>
				<property name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
				<property name="toOneReferences" value="LIKE_ATTRIBUTES"/>
            </mappingStrategy>
            
            <dbAdapter name="mysql"/>
            <dataSource
                class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
                url="jdbc:mysql://localhost/cdotest?createDatabaseIfNotExist=true"
                user="root"
                password="admin"
                />
        </store>
    </repository>
 
</cdoServer>


At this point we start the server (it starts succesfully), then open the CDO Sessions View and:
- open a new Session
- open a Transaction
- expanded the Transaction's children node
=> here an error popup shows (while the children node, the resouce, expands)

Quote:
'Decoration Calculation' has encountered a problem.
An internal error occurred during 'Decoration Calculation'.


After that, in apparently a random way, most contextual menus on the tree nodes are empty
index.php/fa/11675/0/

Does this may have to do with the setup steps and update sites above; in other words, is the above setup sequence right?

Thank you very much
Vincenzo Caselli

[Updated on: Mon, 01 October 2012 12:39]

Report message to a moderator

Re: [CDO] 'Decoration Calculation' error using CDO Sessions View [message #929415 is a reply to message #929397] Mon, 01 October 2012 12:42 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 01.10.2012 14:27, schrieb Vincenzo Caselli:
> Hi all,
> we encounter this error while using the CDO Sessions View.
Can you please paste the complete stack trace here?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> Here is our environment and steps for getting into the error:
>
> - downloaded Eclipse Juno SR1 (4.2.1) RCP & RAP Developers package
>
> - from http://www.elver.org/eclipse/2.0.0/update, installed MySQL Connector/J 5.1.11.201209301655
>
> - from http://download.eclipse.org/modeling/emf/cdo/updates/releases, installed
> CDO R20120918-0947 Net4j DB Framework Net4j DB Framework MYSQL Adapter 4.1.0.v20120911-1146
>
> - from Juno update site http://download.eclipse.org/releases/juno, installed
> Modeling CDO Model Repository SDK 4.1.1.v20120911-1146
>
> - created a CDO Server product with the following cdo-server.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <cdoServer>
>
> <acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
> </acceptor>
>
> <repository name="demo">
>
> <store type="db">
> <mappingStrategy type="horizontal">
> <property name="qualifiedNames" value="true"/>
> <property name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
> <property name="toOneReferences" value="LIKE_ATTRIBUTES"/>
> </mappingStrategy>
> <dbAdapter name="mysql"/>
> <dataSource
> class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
> url="jdbc:mysql://localhost/cdotest?createDatabaseIfNotExist=true"
> user="root"
> password="admin"
> />
> </store>
> </repository>
>
> </cdoServer>
>
> At this point we start the server (it starts succesfully), then open the CDO Sessions View and:
> - open a new Session
> - open a Transaction
> - expanded the Transaction's children node
> => here an error popup shows (while the children node, the resouce, expands)
>
> 'Decoration Calculation' has encountered a problem.
> An internal error occurred during 'Decoration Calculation'
>
> Does this may have to do with the setup steps and update sites above; in other words, is the above setup sequence right?
>
> Thank you very much
> Vincenzo Caselli
>


Re: [CDO] 'Decoration Calculation' error using CDO Sessions View [message #929471 is a reply to message #929415] Mon, 01 October 2012 13:38 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

Hi Eike,
there is no error in Console, just the popup with the contents in previous message.
The maximum detailed info is obtained by clicking "Details" on the popup.
Here is the content:

Quote:
An internal error occurred during: "Decoration Calculation".
Path must include project and resource name: /


Note: the steps to reproduce the error are indeed
- open a new Session
- open a Transaction
- create a Resource
- expanded the Transaction's children node
=> here an error popup

Let me know if I can give you other details.
Cheers
Vincenzo
Re: [CDO] 'Decoration Calculation' error using CDO Sessions View [message #929553 is a reply to message #929471] Mon, 01 October 2012 14:58 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 01.10.2012 15:38, schrieb Vincenzo Caselli:
> Hi Eike,
> there is no error in Console, just the popup with the contents in previous message.
> The maximum detailed info is obtained by clicking "Details" on the popup.
Nothing in the Error Log?

> Here is the content:
>
> Quote:
>> An internal error occurred during: "Decoration Calculation".
>> Path must include project and resource name: /
>
>
> Note: the steps to reproduce the error are indeed
> - open a new Session
> - open a Transaction
> - create a Resource
> - expanded the Transaction's children node
> => here an error popup
When I try with 4.1 I have no errors or other problems.

https://www.google.de/search?hl=de&q=internal+error+%22Decoration+Calculation%22&oq=internal+error+%22Decoration+Calculation%22&gs_l=serp.3..0i7i30l3j0i7i5i30j0i5i30.8830.11176.0.11438.15.15.0.0.0.0.48.624.15.15.0...0.0...1c.1.KkYWFJ4gdMk
shows that this problem appears in many different contexts. I doubt that it is CDO-related. Maybe some other plugins
contribute buggy label decorators?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] 'Decoration Calculation' error using CDO Sessions View [message #929605 is a reply to message #929553] Mon, 01 October 2012 15:52 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

Error Log! Sure, here it is below.
We are testing with Juno SR1 (4.2.1), just released.
I'm not 100% sure, but would bet that 4.2.0 and previous didn't show the problem.
I also think it's nothing related to CDO, but have the suspect on some collateral side-effect of something made on 4.2.1
Cheers
Vincenzo


java.lang.IllegalArgumentException: Path must include project and resource name: /
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2169)
at org.eclipse.core.internal.resources.Container.getFile(Container.java:208)
at org.eclipse.bpel.validator.factory.AdapterFactory.getFileFromPlatformURI(AdapterFactory.java:584)
at org.eclipse.bpel.validator.factory.AdapterFactory.getFileFromURI(AdapterFactory.java:559)
at org.eclipse.bpel.validator.factory.AdapterFactory.adapt_EObject2IResource(AdapterFactory.java:132)
at org.eclipse.bpel.validator.factory.AdapterFactory.getAdapter(AdapterFactory.java:81)
at org.eclipse.core.internal.adapter.AdapterFactoryProxy.getAdapter(AdapterFactoryProxy.java:80)
at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:295)
at org.eclipse.ui.internal.util.Util.getAdapter(Util.java:119)
at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.isEnabledFor(ActionExpression.java:513)
at org.eclipse.ui.internal.ActionExpression$SingleExpression.isEnabledFor(ActionExpression.java:743)
at org.eclipse.ui.internal.ActionExpression.isEnabledFor(ActionExpression.java:1053)
at org.eclipse.ui.internal.decorators.DecoratorDefinition.isEnabledFor(DecoratorDefinition.java:281)
at org.eclipse.ui.internal.decorators.DecoratorManager.getDecoratorsFor(DecoratorManager.java:382)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecoratorsFor(LightweightDecoratorManager.java:315)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:340)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Re: [CDO] 'Decoration Calculation' error using CDO Sessions View [message #929731 is a reply to message #929605] Mon, 01 October 2012 18:03 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 01.10.2012 17:52, schrieb Vincenzo Caselli:
> Error Log! Sure, here it is below.
> We are testing with Juno SR1 (4.2.1), just released. I'm not 100% sure, but would bet that 4.2.0 and previous didn't
> show the problem.
> I also think it's nothing related to CDO, but have the suspect on some collateral side-effect of something made on 4.2.1
> Cheers
> Vincenzo
>
>
> java.lang.IllegalArgumentException: Path must include project and resource name: /
> at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
> at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2169)
> at org.eclipse.core.internal.resources.Container.getFile(Container.java:208)
> at org.eclipse.bpel.validator.factory.AdapterFactory.getFileFromPlatformURI(AdapterFactory.java:584)
> at org.eclipse.bpel.validator.factory.AdapterFactory.getFileFromURI(AdapterFactory.java:559)
> at org.eclipse.bpel.validator.factory.AdapterFactory.adapt_EObject2IResource(AdapterFactory.java:132)
> at org.eclipse.bpel.validator.factory.AdapterFactory.getAdapter(AdapterFactory.java:81)
> at org.eclipse.core.internal.adapter.AdapterFactoryProxy.getAdapter(AdapterFactoryProxy.java:80)
> at org.eclipse.core.internal.runtime.AdapterManager.getAdapter(AdapterManager.java:295)
> at org.eclipse.ui.internal.util.Util.getAdapter(Util.java:119)
> at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.isEnabledFor(ActionExpression.java:513)
> at org.eclipse.ui.internal.ActionExpression$SingleExpression.isEnabledFor(ActionExpression.java:743)
> at org.eclipse.ui.internal.ActionExpression.isEnabledFor(ActionExpression.java:1053)
> at org.eclipse.ui.internal.decorators.DecoratorDefinition.isEnabledFor(DecoratorDefinition.java:281)
> at org.eclipse.ui.internal.decorators.DecoratorManager.getDecoratorsFor(DecoratorManager.java:382)
> at
> org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecoratorsFor(LightweightDecoratorManager.java:315)
> at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:340)
> at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
> at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Maybe I'm not seeing it because we develop and build against 3.8.x.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:EMF Validation service: Excluding a client context
Next Topic:Error: "annotations are only available if source level is 1.5"
Goto Forum:
  


Current Time: Fri Apr 26 02:58:50 GMT 2024

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

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

Back to the top