• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IllegalArgumentException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IllegalArgumentException


  • Subject: IllegalArgumentException
  • From: Don Lindsay <email@hidden>
  • Date: Sun, 6 Jan 2008 20:32:30 -0500

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._objectFaultWithSnapshotRelati onshipEditingContext(EODatabaseContext.java:2528)
at com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceOb ject(EODatabaseContext.java:2575)
at com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDefer redFault(EOAccessDeferredFaultHandler.java:45)
at com.webobjects.eocontrol.EOCustomObject.willReadRelationship (EOCustomObject.java:1302)
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._componentInstan ceInContext(WOComponentDefinition.java:463)
at com.webobjects.appserver._private.WOComponentDefinition.componentInstanc eInContext(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._handleRequest( 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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: IllegalArgumentException
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: What's a good way to handle orders?
  • Next by Date: WO5.4: Generics for objectsWithFetchSpecification ???
  • Previous by thread: Re: What's a good way to handle orders?
  • Next by thread: Re: IllegalArgumentException
  • Index(es):
    • Date
    • Thread