Re: null pointer question on flattened relationship
Re: null pointer question on flattened relationship
- Subject: Re: null pointer question on flattened relationship
- From: James Cicenia <email@hidden>
- Date: Wed, 13 Feb 2013 18:33:52 -0600
Just a typical null pointer exception.... hmmm, I wonder if "services" is some reserved word...
On Feb 13, 2013, at 6:21 PM, Chuck Hill <email@hidden> wrote:
> Catch the exception, and log out e.getTargetException()
>
> On 2013-02-13, at 4:18 PM, James Cicenia wrote:
>
>>
>> No... it just throws the exception to the console which it shouldn't.
>>
>> even if I do a test of if(user.services == null) it still gives me this dump.
>>
>> I have never seen this behavior before. It is a flattened many to many.
>>
>> Thanks
>> James
>>
>>
>> On Feb 13, 2013, at 5:54 PM, Chuck Hill <email@hidden> wrote:
>>
>>> Unresolved compilation error? Picking up some other User class?
>>>
>>> Crashes how? JVM exits? Machine reboots?
>>>
>>>
>>> On 2013-02-13, at 2:31 PM, James Cicenia wrote:
>>>
>>>> Hello -
>>>>
>>>> I notice that if I do this:
>>>>
>>>> System.out.println("services is "+user.services());
>>>>
>>>> it doesn't print,,, it just crashes?
>>>> And yes user exists.
>>>>
>>>> thanks
>>>>
>>>> java.lang.reflect.InvocationTargetException
>>>> 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:597)
>>>> at er.rest.routes.ERXRouteController.performActionWithArguments(ERXRouteController.java:1559)
>>>> at com.pp.rest.controllers.BaseRestController.performActionWithArguments(BaseRestController.java:84)
>>>> at er.rest.routes.ERXRouteController.performRouteActionNamed(ERXRouteController.java:1510)
>>>> at er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1385)
>>>> at er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1328)
>>>> at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
>>>> at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161)
>>>> at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>>> at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2139)
>>>> at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2104)
>>>> at com.pp.app.Application.dispatchRequest(Application.java:99)
>>>> at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>>> at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>>> at java.lang.Thread.run(Thread.java:680)
>>>> _______________________________________________
>>>> 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
>>>
>>> --
>>> Chuck Hill Senior Consultant / VP Development
>>>
>>> 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/gvc/practical_webobjects
>>>
>>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
>>> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> 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
>
> --
> Chuck Hill Senior Consultant / VP Development
>
> 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/gvc/practical_webobjects
>
> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>
>
>
>
>
>
>
>
_______________________________________________
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