Well it turns out that after reviewing the model... We don't need a 
many-to-many relation.
A user can only have one "service."  So I changed the model and made the 
attribute
and relation be "serviceLevel."

So things work now. Though now I have that little irritating lingering question 
about
if "services" is a reserved word or .... ?

I remember having an issue years ago because I named a component "Request."
That cost me hours upon hours... lol... changed the name and voila that worked.




On Feb 13, 2013, at 6:46 PM, Chuck Hill <[email protected]> wrote:

> Details?
> 
> On 2013-02-13, at 4:33 PM, James Cicenia wrote:
> 
>> 
>> 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 protected]> 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 protected]> 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 protected])
>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>>>>>> 
>>>>>> This email sent to [email protected]
>>>>> 
>>>>> -- 
>>>>> 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 protected])
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>>>> 
>>>> This email sent to [email protected]
>>> 
>>> -- 
>>> 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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to [email protected]
> 
> -- 
> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to