The IT guy came back, so I could look at the log.
Basically, WO is complaining that no such method exists ie. ....pushed() in my
Notification class. However, it's there in the _Notification class, and is
not over ridden in the concrete class.
ERROR er.rest.routes.ERXRouteController - Request failed:
/cgi-bin/WebObjects/MyApp.woa/1/ra/Notification/postNotificationForAppWithTypeName/1/_BNA
NoSuchMethodError: com.APNsCommon.eos.Notification.pushed()Ljava/lang/Boolean;
at
com.myApp.controllers.NotificationController.postNotificationForAppWithTypeNameAction(NotificationController.java:150)
... skipped 4 stack elements
at
er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1368)
at
er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1238)
... skipped 8 stack elements
line 150 of my NotificationController is
if(notification.pushed() == null) notification.setPushed(true);
I have regenerated multiple times, even though I see the method right there.
On Apr 14, 2011, at 1:51 PM, Kieran Kelleher wrote:
> What is different between your dev and deploy? Different WO version? java
> version? MySQL version? MySQL JDBC driver version? Something must be
> different and that might lead you to the problem.
>
> Regards, Kieran
>
> PS.
>
> I have no problem with intBoolean or the other String boolean with Dev on OS
> X and deploy on Linux using WO 5.3.3 and embedded everything ( including the
> mysql jdbc driver), and /Library/WebObjects/Extensions is empty on every dev
> box and server, and nothing related to WO in Java Extensions either.
>
> Also my preferred definition nowadays is to use an enum in MySQL with the
> Boolean from/to String prototype. This 2-value ENUM has storage of only 1
> byte.
>
> `isActive` ENUM('false','true') DEFAULT 'false'
>
> http://dev.mysql.com/doc/refman/5.1/en/constraint-enum.html
>
>
> On Apr 14, 2011, at 1:09 PM, Andrew Kinnie wrote:
>
>> OK, still no luck.
>>
>> I have one column in the table which is called "active" and is an int
>> (precision of 11) and default of 1. This is modeled as an intBoolean and
>> works fine
>> I have another column in the same table which is called "pushed" and is an
>> int with a precision of 11 and a default of 1. It is also modeled as an
>> intBoolean, and works fine with the app running on the development machine
>> but fails on the server with the rest error referred to before.
>>
>> I deleted the column and the model attribute and the table and entity work
>> fine. I recreated them, same problem
>> I did it again and recreated them as intNumber and got the Integer version
>> of the same error as a response from rest.
>>
>> com.MyCommon.eos.MyEntity.pushed()Ljava/lang/Integer;.
>>
>> I removed the prototype (and set the external value as int and class to
>> integer) and get the same error. I cleaned and repeated, no effect. I have
>> redeployed dozens of times (because as I mentioned it works fine on the dev
>> box), no luck.
>>
>> I am completely at a loss. I suppose we could just delete the column and
>> give up on the feature that this was supposed to represent, but that seems
>> like a highly questionable solution.
>>
>> Andrew
>>
>> On Apr 14, 2011, at 11:45 AM, [email protected] wrote:
>>
>>> Date: Thu, 14 Apr 2011 11:43:55 -0400
>>> From: Andrew Kinnie <[email protected]>
>>> Subject: intBoolean
>>> To: WebObjects-Dev List <[email protected]>
>>> Message-ID: <[email protected]>
>>> Content-Type: text/plain; charset="us-ascii"
>>>
>>> I have an app tied to a model which has an entity with an intBoolean
>>> attribute.
>>>
>>> The database is MySQL. My dev machine connects to the save database as the
>>> app does deployed for testing.
>>>
>>> I have an ERRest interface which has an action method which sets the
>>> variable if it is not passed into the request. This works fine on the dev
>>> machine. However, the same app, deployed onto the server, talking to the
>>> same database returns this:
>>>
>>> "com.MyCommon.eos.MyEntity.notPushed()Ljava/lang/Boolean;"
>>>
>>> Equally fascinating, I have several other entities with other intBoolean
>>> variables which work perfectly fine. No error. I have another intBoolean
>>> variable in this very table which works fine. I deleted the column and
>>> re-created it. Same problem. I renamed it. Same problem.
>>>
>>> Anyone have any idea what this is?
>>>
>>> Andrew Kinnie
>>>
>>> PS: I am running wonder from the end of last week, and I have all the
>>> frameworks bundled into the tarball, and have checked the box (that I never
>>> before knew existed) under the Order and Export tab (that I never before
>>> knew existed) of the common framework's properties Java Build Path:
>>
>> _______________________________________________
>> 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/kelleherk%40gmail.com
>>
>> This email sent to [email protected]
>
_______________________________________________
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]