• 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
Re: Strange error using Wonder (same code works fine in WebObjects 5.3)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange error using Wonder (same code works fine in WebObjects 5.3)


  • Subject: Re: Strange error using Wonder (same code works fine in WebObjects 5.3)
  • From: Samuel Pelletier <email@hidden>
  • Date: Sat, 02 Jan 2016 12:25:21 -0500

HI,

For the load ordering problem, if you have some wonder source projects in your workspace, the load order is sometime modified when launching with Eclipse. This does not cause problem on the server though.

I do not remember the exact cases I experienced but I burned myself in the past with this.

Samuel


> Le 2015-12-29 à 15:15, jazzsalsa <email@hidden> a écrit :
>
> It's solved :)
>
> I removed the ERAttributeExtension framework, but I have still no idea
> how to move make it load first. Anyway, I am on the move again.
>
> Thanks!
>
> Bart
>
> On Tue, 2015-12-29 at 17:53 +0100, Fabian Peters wrote:
>> You could check the java.class.path contents that get logged on
>> application start. If ERAttributeExtension is listed before
>> JavaEOAccess there as well, then I'm at a loss.
>>
>>> Am 29.12.2015 um 17:33 schrieb jazzsalsa <email@hidden>:
>>>
>>> Hi Fabian,
>>>
>>> Thanks for the fast reply! That is already the case. it looks like
>>> this:
>>>
>>> <unknown-1FRGAY.png>
>>>
>>> Is there anything else strange here?
>>>
>>> Thanks in advance for your help.
>>>
>>> Best regards, Bart
>>>
>>> On Tue, 2015-12-29 at 16:48 +0100, Fabian Peters wrote:
>>>> Hi Bart,
>>>>
>>>> The ERAttributeExtension framework has to be loaded before
>>>> JavaEOAccess. You can change the order in your project properties
>>>> (right-click on the project folder in eclipse):
>>>>
>>>> <PastedGraphic-5.png>
>>>>
>>>> cheers, Fabian
>>>>
>>>>> Am 29.12.2015 um 16:34 schrieb jazzsalsa <email@hidden>:
>>>>>
>>>>> Hi list,
>>>>>
>>>>> I am stuck using Wonder (again, the learning curve is steep ;).
>>>>> Trying to fetch data from a postgresql database. The data looks
>>>>> like this:
>>>>>
>>>>> creationDate (timestamptz)
>>>>> description varchar(255)
>>>>> id
>>>>> tagID
>>>>> title varchar(50)
>>>>> url varchar(50)
>>>>> 2015-12-29 13:46:19 +0100	This is a new description
>>>>> added from EOF
>>>>> 1
>>>>> 4
>>>>> New title
>>>>> http://example.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Fetching the data does not work as soon as I add the field
>>>>> creationDate in the database. The same database and data works
>>>>> well with an App written in WebObjects 5.3. It is a simple
>>>>> component to display the data using a repetion. Similar code is
>>>>> use in the Wonder App and the WebObjects app.
>>>>>
>>>>> Using Wonder 6.0:
>>>>>
>>>>> Dec 29 16:05:02 book1[39244] ERROR
>>>>> er.extensions.appserver.ERXApplication  - Exception caught:
>>>>> java.lang.NoSuchMethodError:
>>>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
>>>>> Object;)Ljava/lang/Object;
>>>>> 	"CurrentPage" = "your.app.components.Main";
>>>>> 	"Bundles" = {
>>>>> 		"ERExtensions" = "6.2-SNAPSHOT";
>>>>> 		"JavaWebObjects" = "5.4.3";
>>>>> 		"WOOgnl" = "6.0";
>>>>> 		"ERJars" = "6.0";
>>>>> 		"PostgresqlPlugIn" = "7.0";
>>>>> 		"JavaJDBCAdaptor" = "5.4.3";
>>>>> 		"JavaXML" = "5.4.2";
>>>>> 		"JavaEOAccess" = "5.4.3";
>>>>> 		"JavaEOControl" = "5.4.2";
>>>>> 		"JavaFoundation" = "5.4.3";
>>>>> 		"ERAttributeExtension" = "6.0";
>>>>> 		"book1" = "";
>>>>> 		"JavaWOExtensions" = "6.0";
>>>>> 		"ERPrototypes" = "6.0";
>>>>> 	};
>>>>> 	"URL" = "/cgi-bin/WebObjects/book1.woa";
>>>>> }
>>>>>
>>>>> The attributes for the creationDate are:
>>>>>
>>>>> {
>>>>>     attributes = (
>>>>>         {
>>>>>             columnName = creationdate;
>>>>>             externalType = timestamptz;
>>>>>             name = creationDate;
>>>>>             prototypeName = dateTime;
>>>>>             serverTimeZone = "Europe/Amsterdam";
>>>>>         },
>>>>>
>>>>>
>>>>> Is there something obviously wrong here?
>>>>> How can I debug this problem? (log4j.logger.er=DEBUG is already
>>>>> used)
>>>>>
>>>>> Thanks in advance, Bart
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with
>>>>> dictionary: {plugin = "Postgresql"; username = "username";
>>>>> driver = "org.postgresql.Driver"; password = "<password deleted
>>>>> for log>"; URL = "jdbc:postgresql://intranet/bookmark"; }
>>>>> Dec 29 16:05:01 book1[39244] DEBUG NSLog  - fetching JDBC Info
>>>>> with ERXJDBCAdaptor$Context@1408135793
>>>>> Dec 29 16:05:01 book1[39244] DEBUG NSLog  -  connecting with
>>>>> dictionary: {plugin = "Postgresql"; username = "username";
>>>>> driver = "org.postgresql.Driver"; password = "<password deleted
>>>>> for log>"; URL = "jdbc:postgresql://intranet/bookmark"; }
>>>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - connection
>>>>> disconnected.
>>>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Begin Internal
>>>>> Transaction
>>>>> Dec 29 16:05:02 book1[39244] DEBUG
>>>>> NSLog  -  evaluateExpression:
>>>>> <com.webobjects.jdbcadaptor.PostgresqlExpression: "SELECT
>>>>> t0.creationdate, t0.description, t0.id, t0.tagID, t0.title,
>>>>> t0.url, t0.url_icon FROM public.bookmark t0" withBindings: >
>>>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - fetch canceled
>>>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  - 0 row(s) processed
>>>>> Dec 29 16:05:02 book1[39244] DEBUG NSLog  -  === Commit
>>>>> Internal Transaction
>>>>> Dec 29 16:05:02 book1[39244]
>>>>> INFO  er.transaction.adaptor.Exceptions  - Database Exception
>>>>> occured: com.webobjects.foundation.NSForwardException
>>>>> [java.lang.NoSuchMethodError]
>>>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
>>>>> Object;)Ljava/lang/Object;:java.lang.NoSuchMethodError:
>>>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
>>>>> Object;)Ljava/lang/Object;
>>>>> Dec 29 16:05:02 book1[39244] WARN  NSLog  -
>>>>> <com.webobjects.appserver._private.WOComponentRequestHandler>:
>>>>> Exception occurred while handling request:
>>>>> com.webobjects.foundation.NSForwardException
>>>>> [java.lang.NoSuchMethodError]
>>>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
>>>>> Object;)Ljava/lang/Object;:java.lang.NoSuchMethodError:
>>>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
>>>>> Object;)Ljava/lang/Object;
>>>>> [2015-12-29 16:5:2 CET] <WorkerThread15>
>>>>> com.webobjects.foundation.NSForwardException
>>>>> [java.lang.NoSuchMethodError]
>>>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
>>>>> Object;)Ljava/lang/Object;:java.lang.NoSuchMethodError:
>>>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
>>>>> Object;)Ljava/lang/Object;
>>>>> 	at
>>>>> com.webobjects.foundation.NSForwardException._runtimeExceptionF
>>>>> orThrowable(NSForwardException.java:41)
>>>>> 	at
>>>>> com.webobjects.eoaccess.EODatabaseChannel._fetchObject(EODataba
>>>>> seChannel.java:456)
>>>>> 	at
>>>>> com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpec
>>>>> ificationEditingContext(EODatabaseContext.java:3071)
>>>>> 	at
>>>>> com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpeci
>>>>> fication(EODatabaseContext.java:3195)
>>>>> 	at
>>>>> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFe
>>>>> tchSpecification(EOObjectStoreCoordinator.java:488)
>>>>> 	at
>>>>> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpeci
>>>>> fication(EOEditingContext.java:4069)
>>>>> 	at
>>>>> er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.jav
>>>>> a:1308)
>>>>> 	at
>>>>> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpeci
>>>>> fication(EOEditingContext.java:4444)
>>>>> 	at
>>>>> your.app.components.Main.appendToResponse(Main.java:26)
>>>>> 	at
>>>>> com.webobjects.appserver.WOSession.appendToResponse(WOSession.j
>>>>> ava:1385)
>>>>> 	at
>>>>> er.extensions.appserver.ERXSession.appendToResponse(ERXSession.
>>>>> java:571)
>>>>> 	at
>>>>> com.webobjects.appserver.WOApplication.appendToResponse(WOAppli
>>>>> cation.java:1794)
>>>>> 	at
>>>>> er.extensions.appserver.ERXApplication.appendToResponse(ERXAppl
>>>>> ication.java:2056)
>>>>> 	at
>>>>> com.webobjects.appserver._private.WOComponentRequestHandler._di
>>>>> spatchWithPreparedPage(WOComponentRequestHandler.java:242)
>>>>> 	at
>>>>> com.webobjects.appserver._private.WOComponentRequestHandler._di
>>>>> spatchWithPreparedSession(WOComponentRequestHandler.java:298)
>>>>> 	at
>>>>> com.webobjects.appserver._private.WOComponentRequestHandler._di
>>>>> spatchWithPreparedApplication(WOComponentRequestHandler.java:33
>>>>> 2)
>>>>> 	at
>>>>> com.webobjects.appserver._private.WOComponentRequestHandler._ha
>>>>> ndleRequest(WOComponentRequestHandler.java:369)
>>>>> 	at
>>>>> com.webobjects.appserver._private.WOComponentRequestHandler.han
>>>>> dleRequest(WOComponentRequestHandler.java:445)
>>>>> 	at
>>>>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplic
>>>>> ation.java:1687)
>>>>> 	at
>>>>> er.extensions.appserver.ERXApplication.dispatchRequestImmediate
>>>>> ly(ERXApplication.java:2160)
>>>>> 	at
>>>>> er.extensions.appserver.ERXApplication.dispatchRequest(ERXAppli
>>>>> cation.java:2125)
>>>>> 	at
>>>>> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWork
>>>>> erThread.java:144)
>>>>> 	at
>>>>> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerTh
>>>>> read.java:226)
>>>>> 	at java.lang.Thread.run(Thread.java:745)
>>>>> Caused by: java.lang.NoSuchMethodError:
>>>>> com.webobjects.eoaccess.EOAttribute.newValueForDate(Ljava/lang/
>>>>> Object;)Ljava/lang/Object;
>>>>> 	at
>>>>> com.webobjects.jdbcadaptor.DateJDBCColumn._fetchValue(DateJDBCC
>>>>> olumn.java:60)
>>>>> 	at
>>>>> com.webobjects.jdbcadaptor.JDBCColumn.fetchValue(JDBCColumn.jav
>>>>> a:372)
>>>>> 	at
>>>>> com.webobjects.jdbcadaptor.ERXJDBCColumn.fetchValue(ERXJDBCColu
>>>>> mn.java:21)
>>>>> 	at
>>>>> com.webobjects.jdbcadaptor.JDBCChannel.fetchRow(JDBCChannel.jav
>>>>> a:1462)
>>>>> 	at
>>>>> com.webobjects.eoaccess.EODatabaseChannel._fetchObject(EODataba
>>>>> seChannel.java:321)
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list      (email@hidden
>>>>> m)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> email@hidden
>>>>>
>>>>> This email sent to email@hidden
>>>>
>>
> _______________________________________________
> 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


 _______________________________________________
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


  • Prev by Date: Re: WO Jobs in Southern Germany
  • Next by Date: Re: Ajax ?
  • Previous by thread: Re: WO Jobs in Southern Germany
  • Next by thread: Re: Ajax ?
  • Index(es):
    • Date
    • Thread