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 19:37:33 -0600
Well all the other attributes were accessible.
I checked the ECs, even created a new one.
My suspicion lies in the word "services"
Maybe I will try that again in some other little project to doubly test.
On Feb 13, 2013, at 7:05 PM, Chuck Hill <email@hidden> wrote:
> Maybe you forgot to call super someplace in your EO? Or you have an EO which is not actually in an EC yet (and hence IMO is not really and EO)
>
> Chuck
>
>
> On 2013-02-13, at 4:58 PM, David Avendasora wrote:
>
>> A to-many relationship should never give you null in the first place. To-manys always return an empty array.
>>
>> There must something wrong with the flattened relationship. What is the name of the join Entity and it's relationships?
>>
>> Dave
>>
>> On Feb 14, 2013, at 8:18 AM, James Cicenia <email@hidden> 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
>>
>>
>> —————————————————————————————
>> WebObjects - so easy that even Dave Avendasora can do it!™
>> —————————————————————————————
>> David Avendasora
>> Senior Software Abuser
>> Kaiten, Inc.
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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