first: what I need to do. I need to obtain the rows of GWS_STOCK table (entity name GWSStock) that have a configuration (instance of GWSConfiguration) passed by argument at the method, and that have no one related valid GWSLicense
GWSLicense ha a field isvalid as Integer (don't blame me I did it before I discover EOPrototype...)
dic 05 17:23:07 GWSupportV2[55338] (
ERXNSLogLog4jBridge.java:44) DEBUG NSLog - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.FrontbasePlugIn' for JDBCAdaptor@12892567
dic 05 17:23:07 GWSupportV2[55338] (ERXNSLogLog4jBridge.java:41) WARN NSLog - <com.webobjects.appserver._private.WOComponentRequestHandler
>: Exception occurred while handling request:
java.lang.NullPointerException
[2007-12-05 17:23:07 CET] <WorkerThread3> java.lang.NullPointerException
at com.webobjects.eoaccess.EOSQLExpression._aliasForRelationshipPath(
EOSQLExpression.java:324)
at com.webobjects.eoaccess.EOSQLExpression._aliasForRelatedAttributeRelationshipPath(
EOSQLExpression.java:259)
at com.houdah.webobjects.eoaccess.qualifiers.ExistsInRelationshipQualifierSupport.sqlStringForSQLExpression
(ExistsInRelationshipQualifierSupport.java:100)
at com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._sqlStringForSQLExpression(
EOQualifierSQLGeneration.java:151)
at com.webobjects.eoaccess.EOSQLExpression.sqlStringForNegatedQualifier(
EOSQLExpression.java:1637)
at com.webobjects.eoaccess.EOQualifierSQLGeneration$_NotQualifierSupport.sqlStringForSQLExpression
(EOQualifierSQLGeneration.java:569)
at com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._sqlStringForSQLExpression(
EOQualifierSQLGeneration.java:151)
at com.webobjects.eoaccess.EOSQLExpression.sqlStringForArrayOfQualifiers(
EOSQLExpression.java:1562)
at com.webobjects.eoaccess.EOSQLExpression.sqlStringForConjoinedQualifiers(
EOSQLExpression.java:1597)
at com.webobjects.eoaccess.EOQualifierSQLGeneration$_AndQualifierSupport.sqlStringForSQLExpression
(EOQualifierSQLGeneration.java:512)
at com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._sqlStringForSQLExpression(
EOQualifierSQLGeneration.java:151)
at com.webobjects.eoaccess.EOSQLExpression.prepareSelectExpressionWithAttributes(
EOSQLExpression.java:1024)
at com.webobjects.jdbcadaptor.JDBCExpression.prepareSelectExpressionWithAttributes(
JDBCExpression.java:273)
at com.webobjects.eoaccess.EOSQLExpressionFactory.selectStatementForAttributes(
EOSQLExpressionFactory.java:226)
at com.webobjects.jdbcadaptor.JDBCChannel.selectAttributes(
JDBCChannel.java:178)
at com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificationEditingContext(
EODatabaseChannel.java:878)
at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(
EODatabaseChannel.java:215)
at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(
EODatabaseContext.java:3205)
at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(
EODatabaseContext.java:3346)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(
EOObjectStoreCoordinator.java:539)
at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(
EOEditingContext.java:4114)
at er.extensions.ERXEC.objectsWithFetchSpecification(
ERXEC.java:1075)
at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(
EOEditingContext.java:4500)
at supportv2.gestweb.model.GWSStock.stocksAvviableForConfiguration(
GWSStock.java:133)
at supportv2.gestweb.model.GWSStock.stocksAvviableForLicense(
GWSStock.java:107)
at supportv2.gestweb.component.manage.GWSManageLicense.stocksAvviable(
GWSManageLicense.java:161)
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
:324)
at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(
NSKeyValueCoding.java:684)
at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(
NSKeyValueCoding.java:1160)
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(
NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey(
WOComponent.java:1539)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(
NSKeyValueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(
NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath(
WOComponent.java:1600)
at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(
WOKeyValueAssociation.java:46)
at com.webobjects.appserver._private.WOPopUpButton.appendChildrenToResponse(
WOPopUpButton.java:181)
at com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse(
WOHTMLDynamicElement.java:424)
at er.extensions.ERXPatcher$DynamicElementsPatches$PopUpButton.appendToResponse(
ERXPatcher.java:366)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(
WODynamicGroup.java:121)
at er.ajax.AjaxUpdateContainer.appendToResponse(
AjaxUpdateContainer.java:152)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(
WODynamicGroup.java:121)
at er.extensions.ERXWOConditional.appendChildrenToResponse(
ERXWOConditional.java:115)
at er.extensions.ERXWOConditional.appendToResponse(
ERXWOConditional.java:109)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(
WODynamicGroup.java:121)
at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(
WODynamicGroup.java:130)
at com.webobjects.appserver._private.WOComponentContent.appendToResponse(
WOComponentContent.java:43)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(
WODynamicGroup.java:121)
at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(
WODynamicGroup.java:130)
at com.webobjects.appserver.WOComponent.appendToResponse(
WOComponent.java:992)
at com.webobjects.appserver._private.WOComponentReference.appendToResponse(
WOComponentReference.java:111)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(
WODynamicGroup.java:121)
at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(
WODynamicGroup.java:130)
at com.webobjects.appserver.WOComponent.appendToResponse(
WOComponent.java:992)
at com.webobjects.appserver.WOSession.appendToResponse(
WOSession.java:1200)
at er.extensions.ERXSession.appendToResponse(
ERXSession.java:529)
at com.webobjects.appserver.WOApplication.appendToResponse(
WOApplication.java:1418)
at er.extensions.ERXApplication.appendToResponse(
ERXApplication.java:1008)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(
WOComponentRequestHandler.java:230)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(
WOComponentRequestHandler.java:287)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication
(WOComponentRequestHandler.java:322)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(
WOComponentRequestHandler.java:358)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(
WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest(
WOApplication.java:1306)
at er.extensions.ERXApplication.dispatchRequest(
ERXApplication.java:1041)
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:552
)
dic 05 17:23:07 GWSupportV2[55338] (ERXApplication.java:843) ERROR er.extensions.ERXApplication
- Exception caught: null
Extra info: {
"CurrentPage" = "supportv2.gestweb.component.manage.GWSManageLicense";
"Bundles" = {
"Ajax" = "3.0";
"ERExtensions" = "3.0";
"JavaWebObjects" = "5.3.3";
"JavaXML" = "5.3";
"ERJars" = "3.0";
"ERJavaMail" = "3.0";
"JavaEOAccess" = "5.3.2";
"JavaJDBCAdaptor" = "5.3.2";
"HoudahEOAccess" = "";
"FrontBasePlugIn" = "";
"JavaWOExtensions" = "3.0";
"GWSupportV2" = "";
"HoudahFoundation" = "";
"JavaEOControl" = "5.3.2";
"QualifierAdditions" = "";
"WOOgnl" = "3.0";
"HoudahEOControl" = "";
"JavaFoundation" = "5.3.3";
"Validity" = "3.0";
"ERPrototypes" = "3.0";
};
"uri" = "/cgi-bin/WebObjects/GWSupportV2.woa/wo/BqhchvXtY9bKEJMhiBwqJ0/8.0.43.3.69.7.23";
"CurrentComponent" = "supportv2.gestweb.component.manage.GWSManageLicense";
"PreviousPageList" = (
"supportv2.gestweb.component.Main",
"supportv2.gestweb.component.GWSActions",
"supportv2.gestweb.component.search.GWSSearchOrder",
"supportv2.gestweb.component.manage.GWSInsertOrder"
);
}
Some other info: I'm working with WO 5.3 on tiger, with Java 1.4.2.