Re: IllegalArgumentException
Re: IllegalArgumentException
- Subject: Re: IllegalArgumentException
- From: Chuck Hill <email@hidden>
- Date: Mon, 7 Jan 2008 10:44:53 -0800
On Jan 6, 2008, at 5:32 PM, Don Lindsay wrote:
Hello;
I am using reportmill, when I attempt to write an xml file I am
receiving an error Attempt to create an EOGlobalID for the entity
"Agents" with a primary key component of type java.lang.String
instead of type java.lang.Double!.
Agents entity has a numeric primary key that is a generated
number. This is occurring in a relationship from the Agents entity
but I cannot figure out where in the agents entity or what
relationship is causing the issue. Does anyone have any insight?
Any hints on how to debug this kind of issue?
Caused by: java.lang.IllegalArgumentException: Attempt to create an
EOGlobalID for the entity "Agents" with a primary key component of
type java.lang.String instead of type java.lang.Double!
at com.webobjects.eoaccess.EOEntity._coercePKInput(EOEntity.java:293)
at com.webobjects.eoaccess.EOEntity._validatePKTypes(EOEntity.java:
324)
at com.webobjects.eoaccess.EOEntity._globalIDWithValues
(EOEntity.java:340)
at com.webobjects.eoaccess.EOEntity._globalIDForRowIsFinal
(EOEntity.java:2711)
at com.webobjects.eoaccess.EOEntity.globalIDForRow(EOEntity.java:
1673)
at
com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRela
tionshipEditingContext(EODatabaseContext.java:2528)
at
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSource
Object(EODatabaseContext.java:2575)
at
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDef
erredFault(EOAccessDeferredFaultHandler.java:45)
at com.webobjects.eocontrol.EOCustomObject.willReadRelationship
(EOCustomObject.java:1302)
Override that method and log out the name of the relationship.
at com.webobjects.eocontrol._EOMutableKnownKeyDictionary
$Initializer$_LazyGenericRecordBinding.valueInObject
(_EOMutableKnownKeyDictionary.java:560)
at com.webobjects.eocontrol.EOCustomObject.storedValueForKey
(EOCustomObject.java:1736)
at com.webobjects.eocontrol.EOCustomObject.snapshot
(EOCustomObject.java:498)
at com.psgs.dodig.dwtm.RMWebObjects.convertFromAppServerType
(RMWebObjects.java:34)
at com.reportmill.base.ReportMill.convertFromAppServerType
(ReportMill.java:264)
at com.reportmill.datasource.RMXMLMapMaker.convertFromAppServerType
(RMXMLMapMaker.java:95)
at com.reportmill.datasource.RMXMLMapMaker.getProxy
(RMXMLMapMaker.java:166)
at com.reportmill.datasource.RMXMLMapMaker.getProxy
(RMXMLMapMaker.java:192)
at com.reportmill.datasource.RMXMLMapMaker.getProxy
(RMXMLMapMaker.java:218)
at com.reportmill.datasource.RMXMLMapMaker.getProxy
(RMXMLMapMaker.java:192)
at com.reportmill.datasource.RMXMLMapMaker.getProxy
(RMXMLMapMaker.java:218)
at com.reportmill.datasource.RMXMLMapMaker.getProxy
(RMXMLMapMaker.java:192)
at com.reportmill.datasource.RMXMLMapMaker.makeMap
(RMXMLMapMaker.java:123)
at com.reportmill.datasource.RMXMLWriter.getXML(RMXMLWriter.java:144)
at com.reportmill.datasource.RMXMLWriter.writeObject
(RMXMLWriter.java:114)
at com.psgs.dodig.dwtm.RMWebObjects.writeObject(RMWebObjects.java:78)
at com.psgs.dodig.dwtm.RMWebObjects.writeObject(RMWebObjects.java:70)
at com.psgs.dodig.dwtm.editAgents.<init>(editAgents.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.webobjects.foundation._NSUtilities.instantiateObject
(_NSUtilities.java:575)
at
com.webobjects.appserver._private.WOComponentDefinition._componentInst
anceInContext(WOComponentDefinition.java:463)
at
com.webobjects.appserver._private.WOComponentDefinition.componentInsta
nceInContext(WOComponentDefinition.java:573)
at com.webobjects.appserver.WOApplication.pageWithName
(WOApplication.java:1954)
at com.webobjects.appserver.WOAction.pageWithName(WOAction.java:98)
at com.psgs.dodig.dwtm.Nav.agentListingAction(Nav.java:41)
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.WODirectAction.performActionNamed
(WODirectAction.java:128)
at com.webobjects.security.SPDirectAction.finishResponseProcessing
(SPDirectAction.java:79)
at
com.webobjects.security.SPSecurityPolicy.finishResponseProcessingForDA
(SPSecurityPolicy.java:949)
at com.webobjects.security.SPSecurityPolicy.processActionForAccess
(SPSecurityPolicy.java:843)
at com.webobjects.security.SPDirectAction.performActionNamed
(SPDirectAction.java:96)
at com.psgs.dodig.dwtm.AbstractDirectAction.performActionNamed
(AbstractDirectAction.java:53)
at
com.webobjects.appserver._private.WOActionRequestHandler._handleReques
t(WOActionRequestHandler.java:240)
... 7 more
Thanks,
Don
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
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