Re: [OT] moving to Eclipse... still some issue
Re: [OT] moving to Eclipse... still some issue
- Subject: Re: [OT] moving to Eclipse... still some issue
- From: WO Dev <email@hidden>
- Date: Sat, 23 Jun 2007 23:57:01 +0200
Hello Lachlan,
I was actually making some test via the command line.
I was able to start the application by removing:
-
Well, at least it's starting, but I have to find why it wouldn't
start with the default arguments...
The application is a back office application, so the first page is a
login window.
When I try to login, I got the following error:
--------
Error: java.lang.NullPointerException
Reason:
Stack trace: File Line# Method Package
EOAttribute.java 2020 adaptorValueByConvertingAttributeValue
com.webobjects.eoaccess
JDBCColumn.java 562 takeInputValue com.webobjects.jdbcadaptor
JDBCChannel.java 226 _bindInputVariablesWithBindingsAndExecute
com.webobjects.jdbcadaptor
JDBCChannel.java 303 _evaluateExpression com.webobjects.jdbcadaptor
JDBCChannel.java 261 evaluateExpression com.webobjects.jdbcadaptor
JDBCChannel.java 185 selectAttributes com.webobjects.jdbcadaptor
EODatabaseChannel.java 878
_selectWithFetchSpecificationEditingContext com.webobjects.eoaccess
EODatabaseChannel.java 215 selectObjectsWithFetchSpecification
com.webobjects.eoaccess
EODatabaseContext.java 3205
_objectsWithFetchSpecificationEditingContext com.webobjects.eoaccess
EODatabaseContext.java 3346 objectsWithFetchSpecification
com.webobjects.eoaccess
EOObjectStoreCoordinator.java 539 objectsWithFetchSpecification
com.webobjects.eocontrol
EOEditingContext.java 4114 objectsWithFetchSpecification
com.webobjects.eocontrol
ERXEC.java 944 objectsWithFetchSpecification er.extensions
EOEditingContext.java 4500 objectsWithFetchSpecification
com.webobjects.eocontrol
Session.java 120 validateEmployee Session
Main.java 48 checkLogin Main
--------
The last two (validateEmployee and checkLogin) are correct, I didn't
change anything before it breaks (and it works locally).
My fetchspec is:
--------
spec vaut:<class com.webobjects.eocontrol.EOFetchSpecification
(entityName=Employee,
qualifier=(email = 'email@hidden'),
isDeep=true, usesDistinct=false,
sortOrdering=null,
hints=null,
_prefetchingRelationshipKeyPaths = null)>
--------
and the generated SQL is:
-------
DEBUG [WorkerThread1] - Using JDBCPlugIn
'com.webobjects.jdbcadaptor.MySQLPlugIn' for JDBCAdaptor@10886500
DEBUG [WorkerThread1] - connecting with dictionary: {plugin = "";
username = "root"; driver = ""; password = "<password deleted for
log>"; URL = "jdbc:mysql:///domain?
useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNu
ll"; }
DEBUG [WorkerThread1] - === Begin Internal Transaction
DEBUG [WorkerThread1] - evaluateExpression:
<com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT
t0.ACTIVATION, t0.ADMIN_RIGHT, t0.DAILIES_RIGHT, t0.DATE_OF_BIRTH,
t0.DELETED_ON, t0.DISCOUNT_PERCENTAGE_ALLOWED_AS_INT,
t0.DISCOUNT_RIGHT, t0.EMAIL, t0.FAQ_RIGHT, t0.FIRST_NAME, t0.GENDER,
t0.IMAGE, t0.LAST_NAME, t0.MOBILE_PHONE, t0.MONITORING_RIGHT,
t0.NEWS_RIGHT, t0.PK, t0.PASSWORD, t0.PEOPLE_RIGHT, t0.PRESENTATION,
t0.PRODUCTS_RIGHT, t0.PROVIDER_RIGHT, t0.PROVISIONING_RIGHT,
t0.PSEUDO, t0.REGISTRED_BY_FID, t0.REGISTRED_ON, t0.SALES_RIGHT,
t0.STORE_RIGHT, t0.WORK_PHONE FROM EMPLOYEE t0 WHERE t0.EMAIL = ?"
withBindings: 1:"email@hidden"(email)>
-------
So it's look like the SQL query is OK. What else should I have a look
at?
I don't really see why I would get a null pointer based on all this
as there's an Employee with this email in the database...
Thanks for any pointer:)
Xavier
PS: Oups yes it should have been on the deploy-list sorry.
On 24/06/2007, at 6:22 AM, WO Dev wrote:
I though I was ready with Eclipse as all my applications just
compiled and worked under Eclipse (Development)... but I tried to
deploy an updated application today and it wouldn't launch:(
I don't know why it's not working, I have nothing in the
application's log (as it's not even starting) and nothing in the
wotaskd/monitor logs.
This oughta be on the webobjects-deploy list... but
When this happens you should try and run it from the command-line
on your server (with the arguments copied from JavaMonitor - and
you'll need to escape a few things)
./YourApp <args>
See what you get.
Is your server using java 1.4 and you've compiled with 1.5 without
targetting 1.4? If so you'll get a major-minor version mismatch...
otherwise, you'll quickly see the problem when running from the
command line.
with regards,
--
Lachlan Deck
_______________________________________________
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