The NPE occurs when accessing some tagged value. It should be no
problem if the value itself is null, then simply null should be
returned. From the stack trace I cannot figure out the real cause.
~Karsten
Am 14.10.2007 um 16:47 schrieb adolfo.ufs:
Darius Jockel wrote:
Hello Adolfo,
adolfo.ufs wrote:
Hi,
I am trying to use the Hibernate Cartridge with oAW 4.2. I have
followed
the Hibernate Tutorial example but whenever I execute the file
workflow.oaw i find this problem:
I'm using Hibernate Cartridge 1.3.0, Eclipse Europa and oAW 4.2
if anyone knows the reason why this happens, please answer this
message.
thank you in advance.
adolfo
The release 1.3.0 of the Hibernate Cartridge is compatible with
oAW 4.1.2
and Eclipse 3.2.x.
The new release (planned for end of october) will be working with
oAW 4.2.
Regards
Darius Jockel
I changed to oAW 4.1.2 and Eclipse 3.2.x and found this problem
INFO -
----------------------------------------------------------------------
----------------
INFO - openArchitectureWare 4.1.2, Build v20070314
INFO - (c) 2005-2007 openarchitectureware.org and contributors
INFO -
----------------------------------------------------------------------
----------------
INFO - running workflow: D:/DSDM -
OpenArchitectureWare/workspace/ufs.dsdm.project/src/main/resources/
workflow.oaw
INFO -
INFO - XmiReader: file 'src/main/resources/example-model.uml' => slot
'model'
INFO - workflow org/fornax/cartridges/uml2/hibernate/hibernate.oaw
INFO - XtendComponent: executing
'org::fornax::cartridges::uml2::hibernate::extensions::ModelTransforma
tion'
INFO - CheckComponent: slot model check file(s):
org::fornax::cartridges::uml2::hibernate::checks::Constraints
org::fornax::cartridges::uml2::hibernate::checks::AssociationChecks
INFO - hibernateCartridge_generator: generating
'org::fornax::cartridges::uml2::hibernate::templates::Root::Root
FOR model'
=> directory 'null'
ERROR - null
java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate
(EStructuralFeatureImpl.java:779)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSettingDelegate
(BasicEObjectImpl.java:1115)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet
(BasicEObjectImpl.java:610)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet
(BasicEObjectImpl.java:595)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet
(BasicEObjectImpl.java:587)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet
(BasicEObjectImpl.java:582)
at
org.eclipse.uml2.uml.internal.operations.ElementOperations.getValue
(ElementOperations.java:557)
at
org.eclipse.uml2.uml.internal.impl.ElementImpl.getValue
(ElementImpl.java:286)
at
org.openarchitectureware.uml2.profile.StereotypeType$1.get
(StereotypeType.java:110)
at
org.openarchitectureware.expression.ast.FeatureCall.evaluateInternal
(FeatureCall.java:115)
at
org.openarchitectureware.expression.ast.Expression.evaluate
(Expression.java:41)
at
org.openarchitectureware.expression.ast.OperationCall.evaluateInternal
(OperationCall.java:88)
at
org.openarchitectureware.expression.ast.Expression.evaluate
(Expression.java:41)
at
org.openarchitectureware.expression.ast.BooleanOperation.evaluateToBoo
lean(BooleanOperation.java:85)
at
org.openarchitectureware.expression.ast.BooleanOperation.evaluateInter
nal(BooleanOperation.java:58)
at
org.openarchitectureware.expression.ast.Expression.evaluate
(Expression.java:41)
at
org.openarchitectureware.expression.ast.IfExpression.evaluateInternal(
IfExpression.java:58)
at
org.openarchitectureware.expression.ast.Expression.evaluate
(Expression.java:41)
at
org.openarchitectureware.xtend.ast.ExpressionExtensionStatement.evalua
teInternal2(ExpressionExtensionStatement.java:71)
at
org.openarchitectureware.xtend.ast.ExpressionExtensionStatement.evalua
teInternal(ExpressionExtensionStatement.java:55)
at
org.openarchitectureware.xtend.ast.Extension.evaluate
(Extension.java:117)
at
org.openarchitectureware.expression.ast.OperationCall.evaluateInternal
(OperationCall.java:103)
at
org.openarchitectureware.expression.ast.Expression.evaluate
(Expression.java:41)
at
org.openarchitectureware.xpand2.ast.ExpressionStatement.evaluateIntern
al(ExpressionStatement.java:93)
at
org.openarchitectureware.xpand2.ast.Statement.evaluate
(Statement.java:39)
at
org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate
(AbstractDefinition.java:112)
at
org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition
(ExpandStatement.java:185)
at
org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal
(ExpandStatement.java:161)
at
org.openarchitectureware.xpand2.ast.Statement.evaluate
(Statement.java:39)
at
org.openarchitectureware.xpand2.ast.FileStatement.evaluateInternal
(FileStatement.java:75)
at
org.openarchitectureware.xpand2.ast.Statement.evaluate
(Statement.java:39)
at
org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate
(AbstractDefinition.java:112)
at
org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition
(ExpandStatement.java:185)
at
org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal
(ExpandStatement.java:161)
at
org.openarchitectureware.xpand2.ast.Statement.evaluate
(Statement.java:39)
at
org.openarchitectureware.xpand2.ast.IfStatement.evaluateInternal
(IfStatement.java:81)
at
org.openarchitectureware.xpand2.ast.Statement.evaluate
(Statement.java:39)
at
org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate
(AbstractDefinition.java:112)
at
org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition
(ExpandStatement.java:185)
at
org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal
(ExpandStatement.java:148)
at
org.openarchitectureware.xpand2.ast.Statement.evaluate
(Statement.java:39)
at
org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate
(AbstractDefinition.java:112)
at
org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition
(ExpandStatement.java:185)
at
org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal
(ExpandStatement.java:161)
at
org.openarchitectureware.xpand2.ast.Statement.evaluate
(Statement.java:39)
at
org.openarchitectureware.xpand2.Generator.invokeInternal
(Generator.java:221)
at
org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2.invok
e(AbstractWorkflowComponent2.java:38)
at
org.openarchitectureware.workflow.container.CompositeComponent.interna
lInvoke(CompositeComponent.java:81)
at
org.openarchitectureware.workflow.container.CompositeComponent.invoke(
CompositeComponent.java:69)
at
org.openarchitectureware.workflow.container.CompositeComponent.interna
lInvoke(CompositeComponent.java:81)
at
org.openarchitectureware.workflow.container.CompositeComponent.invoke(
CompositeComponent.java:69)
at
org.openarchitectureware.workflow.WorkflowRunner.executeWorkflow
(WorkflowRunner.java:243)
at
org.openarchitectureware.workflow.WorkflowRunner.run
(WorkflowRunner.java:172)
at
org.openarchitectureware.workflow.WorkflowRunner.main
(WorkflowRunner.java:122)
if anyone knows the reason why this happens, please answer this
message.
thank you in advance.
adolfo
--
View this message in context: http://www.nabble.com/Help-with-
Hibernate-Cartridge-tf4565346s17564.html#a13199702
Sent from the Fornax-Platform mailing list archive at Nabble.com.
----------------------------------------------------------------------
---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer