I think that error means the prototypes did not get loaded or the plugin or something else did not get loaded. In either case -- check the classpath. Make sure that all the relevant frameworks have been installed if you are not embedding them in the application.

Chuck


On Jun 23, 2007, at 3:45 PM, Lachlan Deck wrote:

On 24/06/2007, at 8:06 AM, WO Dev wrote:

I forgot something;)

I had to remove:
--NSProjectSearchPath ()
to be able to launch the app...

Yep, that's what I do also when running from the terminal...

I'm sorry - I can't see anything obviously wrong from your logs.

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 PROTECTED]'),
isDeep=true, usesDistinct=false,
sortOrdering=null,
hints=null,
_prefetchingRelationshipKeyPaths = null)>
--------
and the generated SQL is:
-------
DEBUG [WorkerThread1] - Using JDBCPlugIn 'com.webobjects.jdbcadaptor.MySQLPlugIn' for [EMAIL PROTECTED] DEBUG [WorkerThread1] - connecting with dictionary: {plugin = ""; username = "root"; driver = ""; password = "<password deleted for log>"; URL = "jdbc:mysql:///domain? useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convert ToNull"; }
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 PROTECTED]"(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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to