cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject [Forms, JDO, PostgreSQL] Saving to bean requires transaction
Date Fri, 26 Nov 2004 13:32:53 GMT
Hi Cocooners,

I'm using the Forms with JDO and a PostgreSQL database.
Basically I'm doing the same stuff like in the JDO example
(at least I think so ...)

Problem:

When the binding tries to set a field of the bean, the JDO-
enhanced bean object complains that no transaction is active
(JDOUserException, Eclipse debugger stack attached below)

<code src="flowscript">
     ...
     form.load(bean);
     form.showForm("jdo/forms/employee-form-display");
->  form.save(bean);
     ...
</code>


Is there something special about PostgreSQL in contrast to
HSQLDB? The JDO sample works fine.

Thanks in advance!

-- Andreas


=======================================================
Stack trace from Eclipse debugger
=======================================================

Thread [PoolThread-4] (Suspended (exception NoSuchElementException))
	PersistentNonTransactional(LifeCycleState).assertTransaction(boolean) 
line: not available
	PersistentNonTransactional.transitionWriteField(StateManagerImpl, 
Transaction) line: not available
	StateManagerImpl.prepareSetField2(int, FieldManager) line: not available
	StateManagerImpl.prepareSetField(PersistenceCapable, int, FieldManager) 
line: not available
	StateManagerImpl.setStringField(PersistenceCapable, int, String, 
String) line: not available
	Semester.jdoSetkuerzel(Semester, String) line: not available
	Semester.setKuerzel(String) line: 88
	GeneratedMethodAccessor27.invoke(Object, Object[]) line: not available
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
	Method.invoke(Object, Object[]) line: 324
	ValueUtils.setValue(Object, PropertyDescriptor, Object) line: 418
	BeanPropertyPointer.setValue(Object) line: 258
	BeanPropertyPointer(PropertyPointer).createPath(JXPathContext, Object) 
line: 206
	JXPathContextReferenceImpl.setValue(String, Expression, Object, 
boolean) line: 470
	JXPathContextReferenceImpl.createPathAndSetValue(String, Expression, 
Object) line: 436
	JXPathContextReferenceImpl.createPathAndSetValue(String, Object) line: 427
	ValueJXPathBinding.doSave(Widget, JXPathContext) line: 129
	ValueJXPathBinding(JXPathBindingBase).saveFormToModel(Widget, 
JXPathContext) line: 187
	ComposedJXPathBindingBase.doSave(Widget, JXPathContext) line: 109
	ComposedJXPathBindingBase(JXPathBindingBase).saveFormToModel(Widget, 
JXPathContext) line: 187
	RepeaterJXPathBinding.doSave(Widget, JXPathContext) line: 168
	RepeaterJXPathBinding(JXPathBindingBase).saveFormToModel(Widget, 
JXPathContext) line: 187
	ContextJXPathBinding(ComposedJXPathBindingBase).doSave(Widget, 
JXPathContext) line: 109
	ContextJXPathBinding.doSave(Widget, JXPathContext) line: 74
	ContextJXPathBinding(JXPathBindingBase).saveFormToModel(Widget, 
JXPathContext) line: 187
	ContextJXPathBinding(JXPathBindingBase).saveFormToModel(Widget, Object) 
line: 201
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
available [native method]
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
	Method.invoke(Object, Object[]) line: 324
	NativeJavaMethod.call(Context, Scriptable, Scriptable, Object[]) line: 230
	ScriptRuntime.call(Context, Object, Object, Object[], Scriptable) line: 
1244
	ContinuationInterpreter.interpret(Context, InterpreterState, boolean) 
line: 1134
	ContinuationInterpreter.interpret(Context, InterpreterState) line: 190
	ContinuationInterpreter.interpret(Context, Scriptable, Scriptable, 
Object[], NativeFunction, InterpreterData) line: 138
	InterpretedFunctionImpl.call(Context, Scriptable, Scriptable, Object[]) 
line: 121
	ScriptRuntime.call(Context, Object, Object, Object[], Scriptable) line: 
1244
	ScriptableObject.callMethod(Scriptable, String, Object[]) line: 1591
	FOM_JavaScriptInterpreter.handleContinuation(String, List, Redirector) 
line: 788
	CallFunctionNode.invoke(Environment, InvokeContext) line: 120
	MatchNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext, String, Map) line: 49
	MatchNode.invoke(Environment, InvokeContext) line: 107
	PipelineNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext) line: 72
	PipelineNode.invoke(Environment, InvokeContext) line: 126
	PipelinesNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext) line: 72
	PipelinesNode.invoke(Environment, InvokeContext) line: 101
	TreeProcessor.process(Environment, InvokeContext) line: 336
	TreeProcessor.process(Environment) line: 277
	MountNode.invoke(Environment, InvokeContext) line: 103
	ActTypeNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext, String, Map) line: 49
	ActTypeNode.invoke(Environment, InvokeContext) line: 138
	PreparableMatchNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext, String, Map) line: 49
	PreparableMatchNode.invoke(Environment, InvokeContext) line: 130
	PreparableMatchNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext, String, Map) line: 49
	PreparableMatchNode.invoke(Environment, InvokeContext) line: 130
	PipelineNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext) line: 72
	PipelineNode.invoke(Environment, InvokeContext) line: 126
	PipelinesNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext) line: 72
	PipelinesNode.invoke(Environment, InvokeContext) line: 101
	TreeProcessor.process(Environment, InvokeContext) line: 336
	TreeProcessor.process(Environment) line: 277
	MountNode.invoke(Environment, InvokeContext) line: 103
	PreparableMatchNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext, String, Map) line: 49
	PreparableMatchNode.invoke(Environment, InvokeContext) line: 130
	PipelineNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext) line: 72
	PipelineNode.invoke(Environment, InvokeContext) line: 126
	PipelinesNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext) line: 72
	PipelinesNode.invoke(Environment, InvokeContext) line: 101
	TreeProcessor.process(Environment, InvokeContext) line: 336
	TreeProcessor.process(Environment) line: 277
	MountNode.invoke(Environment, InvokeContext) line: 103
	ActTypeNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext, String, Map) line: 49
	ActTypeNode.invoke(Environment, InvokeContext) line: 138
	PreparableMatchNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext, String, Map) line: 49
	PreparableMatchNode.invoke(Environment, InvokeContext) line: 130
	PipelineNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext) line: 72
	PipelineNode.invoke(Environment, InvokeContext) line: 126
	PipelinesNode(AbstractParentProcessingNode).invokeNodes(ProcessingNode[], 
Environment, InvokeContext) line: 72
	PipelinesNode.invoke(Environment, InvokeContext) line: 101
	TreeProcessor.process(Environment, InvokeContext) line: 336
	TreeProcessor.process(Environment) line: 277
	Cocoon.process(Environment) line: 639
	CocoonServlet.service(HttpServletRequest, HttpServletResponse) line: 1098
	CocoonServlet(HttpServlet).service(ServletRequest, ServletResponse) 
line: 853
	ServletHolder.handle(ServletRequest, ServletResponse) line: 358
	WebApplicationHandler.dispatch(String, HttpServletRequest, 
HttpServletResponse, ServletHolder) line: 294
	WebApplicationHandler(ServletHandler).handle(String, String, 
HttpRequest, HttpResponse) line: 567
	WebApplicationContext(HttpContext).handle(String, String, HttpRequest, 
HttpResponse) line: 1807
	WebApplicationContext.handle(String, String, HttpRequest, HttpResponse) 
line: 525
	WebApplicationContext(HttpContext).handle(HttpRequest, HttpResponse) 
line: 1757
	Server(HttpServer).service(HttpRequest, HttpResponse) line: 879
	HttpConnection.service(HttpRequest, HttpResponse) line: 790
	HttpConnection.handleNext() line: 961
	HttpConnection.handle() line: 807
	SocketListener.handleConnection(Socket) line: 218
	SocketListener(ThreadedServer).handle(Object) line: 300
	ThreadPool$PoolThread.run() line: 511


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message