Re: Newbie web services with WO question
Re: Newbie web services with WO question
- Subject: Re: Newbie web services with WO question
- From: Chuck Hill <email@hidden>
- Date: Thu, 25 May 2006 13:15:48 -0700
Hi Luigi,
On May 25, 2006, at 1:07 PM, Luigi Giannini wrote:
> I search in the web and find JTDS jdbc that seem (to me) a valid,
> mature and fast jdbc driver for MS-sql-srv.
> May be that the jdbc driver generate the problem but if so, please,
It may be that driver. Can you post the entire stack trace?
Please be patient: what you mean with 'stack trace'?
Below there's the Xcode Run Log (I hope is what you ask ...):
Yes, that is what I meant.
I don't see any obvious problem from the log below. Can you try
adding this to your Main.java page (I am assuming there is one).
Link a WOHyperlink to it and see what happens when you click it
public WOComponent createNewPazientiAnagrafica()
{
session().defaultEditingContext().insertObject(new
PazientiAnagrafica());
session().defaultEditingContext().saveChanges();
return context().page();
}
I am trying to see if this produces the same error.
Chuck
java.lang.IllegalStateException: Adaptor
com.webobjects.jdbcadaptor.JDBCAdaptor@538b14 failed to provide new
primary keys for entity 'PazientiAnagrafica'
at
com.webobjects.eoaccess.EODatabaseContext.prepareForSaveWithCoordinato
r(EODatabaseContext.java:5885)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditing
Context(EOObjectStoreCoordinator.java:409)
at com.webobjects.eocontrol.EOEditingContext.saveChanges
(EOEditingContext.java:3226)
at
com.webobjects.webservices.generation.WOOperation.saveChangesInEditing
Context(WOOperation.java:96)
at com.webobjects.webservices.generation.WOInsertOperation.invoke
(WOInsertOperation.java:63)
at com.webobjects.webservices.generation.WOOperation._invoke
(WOOperation.java:120)
at
com.webobjects.webservices.generation._WSRuleUtilities.invokeOperation
OnService(_WSRuleUtilities.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects.appserver._private.WORPCProvider.processMessage
(WORPCProvider.java:351)
at org.apache.axis.providers.java.JavaProvider.invoke
(JavaProvider.java:333)
at org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.handlers.soap.SOAPService.invoke
(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at
com.webobjects.appserver._private.WOWebService.performActionNamed
(WOWebService.java:375)
at
com.webobjects.appserver._private.WOActionRequestHandler._handleReques
t(WOActionRequestHandler.java:240)
at
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest
(WOActionRequestHandler.java:142)
at
com.webobjects.appserver._private.WOWebServiceRequestHandler.handleReq
uest(WOWebServiceRequestHandler.java:95)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)[2006-05-25
21:47:45 CEST] <WorkerThread9> AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
Server.userException
faultSubcode:
faultString: java.lang.IllegalArgumentException:
java.lang.IllegalStateException: Adaptor
com.webobjects.jdbcadaptor.JDBCAdaptor@538b14 failed to provide new
primary keys for entity 'PazientiAnagrafica'
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
java.lang.IllegalArgumentException: java.lang.IllegalStateException:
Adaptor com.webobjects.jdbcadaptor.JDBCAdaptor@538b14 failed to
provide new primary keys for entity 'PazientiAnagrafica'
at
com.webobjects.webservices.generation._WSRuleUtilities.invokeOperation
OnService(_WSRuleUtilities.java:212)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.j
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
ava:585)
at com.webobjects.appserver._private.WORPCProvider.processMessage
(WORPCProvider.java:351)
at org.apache.axis.providers.java.JavaProvider.invoke
(JavaProvider.java:333)
at org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.handlers.soap.SOAPService.invoke
(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at
com.webobjects.appserver._private.WOWebService.performActionNamed
(WOWebService.java:375)
at
com.webobjects.appserver._private.WOActionRequestHandler._handleReques
t(WOActionRequestHandler.java:240)
at
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest
(WOActionRequestHandler.java:142)
at
com.webobjects.appserver._private.WOWebServiceRequestHandler.handleReq
uest(WOWebServiceRequestHandler.java:95)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
java.lang.IllegalArgumentException: java.lang.IllegalStateException:
Adaptor com.webobjects.jdbcadaptor.JDBCAdaptor@538b14 failed to
provide new primary keys for entity 'PazientiAnagrafica'
at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
at org.apache.axis.providers.java.JavaProvider.invoke
(JavaProvider.java:343)
at org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.handlers.soap.SOAPService.invoke
(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at
com.webobjects.appserver._private.WOWebService.performActionNamed
(WOWebService.java:375)
at
com.webobjects.appserver._private.WOActionRequestHandler._handleReques
t(WOActionRequestHandler.java:240)
at
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest
(WOActionRequestHandler.java:142)
at
com.webobjects.appserver._private.WOWebServiceRequestHandler.handleReq
uest(WOWebServiceRequestHandler.java:95)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.IllegalArgumentException:
java.lang.IllegalStateException: Adaptor
com.webobjects.jdbcadaptor.JDBCAdaptor@538b14 failed to provide new
primary keys for entity 'PazientiAnagrafica'
at
com.webobjects.webservices.generation._WSRuleUtilities.invokeOperation
OnService(_WSRuleUtilities.java:212)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects.appserver._private.WORPCProvider.processMessage
(WORPCProvider.java:351)
at org.apache.axis.providers.java.JavaProvider.invoke
(JavaProvider.java:333)
... 13 more
Many thanks Chuck
Luigi Giannini
--
Coming in late 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden