Re: Direct to Web Error
Re: Direct to Web Error
- Subject: Re: Direct to Web Error
- From: Chuck Hill <email@hidden>
- Date: Sat, 06 Dec 2003 09:42:10 -0800
Looks like it is confusing Main.java the eo with Main.java the WOComponent.
Unless you are modelling water systems, Main seem like a poor choice for a
name for an eo. Try something different, or use fully qualified names so
that no guessing is involved.
Chuck
At 09:19 AM 06/12/2003 -0500, Clayton Leitch wrote:
>I get the following error from a simple Direct to Web application every
>time it tries to access the database. Any ideas?
>
>Application:FinkTestError:java.lang.IllegalArgumentException: The class
>for the entity does not have any valid publically accessible
>constructors and cannot be instantiated.Reason:The class <Main> for the
>entity <Main> does not have any valid publically accessible
>constructors and cannot be instantiated. Stack trace:File Line#Method
>Package EOEntityClassDescription.java
>181createInstanceWithEditingContext
>com.webobjects.eoaccessEODatabaseChannel.java 417_fetchObject
>com.webobjects.eoaccess EODatabaseContext.java
>3194_objectsWithFetchSpecificationEditingContextcom.webobjects.eoaccessE
>ODatabaseContext.java 3319objectsWithFetchSpecification
>com.webobjects.eoaccess EOObjectStoreCoordinator.java
>535objectsWithFetchSpecification
>com.webobjects.eocontrolEOEditingContext.java
>4036objectsWithFetchSpecification com.webobjects.eocontrol
>EODatabaseDataSource.java 633fetchObjects
>com.webobjects.eoaccessWODisplayGroup.java 2191fetch
>com.webobjects.appserver D2WListPage.java 196setDataSource
>com.webobjects.directtowebD2WQueryPage.java 183queryAction
>com.webobjects.directtoweb NativeMethodAccessorImpl.javaNAinvoke0
>sun.reflectNativeMethodAccessorImpl.java39invoke sun.reflect
>DelegatingMethodAccessorImpl.java25invoke sun.reflectMethod.java
>324invoke java.lang.reflect NSKeyValueCoding.java 684methodValue
>com.webobjects.foundationNSKeyValueCoding.java 1160valueInObject
>com.webobjects.foundation NSKeyValueCoding.java 1268valueForKey
>com.webobjects.foundationWOComponent.java 1539valueForKey
>com.webobjects.appserver NSKeyValueCoding.java 498valueForKey
>com.webobjects.foundationNSKeyValueCodingAdditions.java212valueForKeyPat
>h com.webobjects.foundation WOComponent.java 1600valueForKeyPath
>com.webobjects.appserverWOKeyValueAssociation.java 46valueInComponent
>com.webobjects.appserver._private WOActiveImage.java 255invokeAction
>com.webobjects.appserver._privateWODynamicGroup.java
>101invokeChildrenAction com.webobjects.appserver._private
>WOGenericContainer.java 23invokeAction
>com.webobjects.appserver._privateWODynamicGroup.java
>101invokeChildrenAction com.webobjects.appserver._private
>WODynamicGroup.java 110invokeAction
>com.webobjects.appserver._privateWOForm.java 82invokeAction
>com.webobjects.appserver._private WODynamicGroup.java
>101invokeChildrenAction
>com.webobjects.appserver._privateWODynamicGroup.java 110invokeAction
>com.webobjects.appserver._private WOConditional.java 55invokeAction
>com.webobjects.appserver._privateWODynamicGroup.java
>101invokeChildrenAction com.webobjects.appserver._private
>WODynamicGroup.java 110invokeAction
>com.webobjects.appserver._privateWOComponentContent.java 31invokeAction
>com.webobjects.appserver._private WODynamicGroup.java
>101invokeChildrenAction
>com.webobjects.appserver._privateWODynamicGroup.java 110invokeAction
>com.webobjects.appserver._private WOComponent.java 945invokeAction
>com.webobjects.appserverWOComponentReference.java 104invokeAction
>com.webobjects.appserver._private WOSwitchComponent.java
>171invokeAction com.webobjects.appserver._privateWOComponent.java
>945invokeAction com.webobjects.appserver WOSession.java
>1166invokeAction com.webobjects.appserverWOApplication.java
>1377invokeAction com.webobjects.appserver
>WOComponentRequestHandler.java196_dispatchWithPreparedPage
>com.webobjects.appserver._privateWOComponentRequestHandler.java287_dispa
>tchWithPreparedSession com.webobjects.appserver._private
>WOComponentRequestHandler.java322_dispatchWithPreparedApplication
>com.webobjects.appserver._privateWOComponentRequestHandler.java358_handl
>eRequest com.webobjects.appserver._private
>WOComponentRequestHandler.java432handleRequest
>com.webobjects.appserver._privateWOApplication.java 1308dispatchRequest
>com.webobjects.appserver WOWorkerThread.java 173runOnce
>com.webobjects.appserver._privateWOWorkerThread.java 254run
>com.webobjects.appserver._private Thread.java 554run java.lang NA : Non
>applicable, JIT activated
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.