• 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: D2W Problem in new application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W Problem in new application


  • Subject: Re: D2W Problem in new application
  • From: Flavio Donadio <email@hidden>
  • Date: Thu, 30 Oct 2014 13:01:18 -0200

Fabian,


I see these on the console with no debugging enabled:

[2014-10-30 12:45:55 BRST] <main> ** DirectToWeb could not merge d2wmodel from file:/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook/build/ERModernLook.framework/Resources/d2w.d2wmodel for reason: ** DirectToWeb exception - a rule cannot be instantiated if its right hand side is null. LHS=(look = 'ERModernLook')  RHS=null
[2014-10-30 12:45:55 BRST] <main> ** DirectToWeb could not merge d2wmodel from file:/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDirectToWeb/build/ERModernDirectToWeb.framework/Resources/d2w.d2wmodel for reason: ** DirectToWeb exception - a rule cannot be instantiated if its right hand side is null. LHS=null  RHS=null
[2014-10-30 12:45:55 BRST] <main> ** DirectToWeb could not merge d2wmodel from file:/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERDirectToWeb/build/ERDirectToWeb.framework/Resources/d2w.d2wmodel for reason: ** DirectToWeb exception - a rule cannot be instantiated if its right hand side is null. LHS=null  RHS=null


Cheers,
Flavio

On 29/10/2014, at 18:36, Fabian Peters <email@hidden> wrote:

> Hi Flavio,
>
> Assuming you're starting out with an empty rule file, you're probably missing one or more d2w.d2wmodel files from ERDirectToWeb or JavaDirectToWeb. If you enable debug logging on er.directtoweb.ERD2WModel, you'll see which files get loaded.
>
> Fabian
>
> Am 29.10.2014 um 20:46 schrieb Flavio Donadio <email@hidden>:
>
>> Hello, all!
>>
>>
>> I am getting this error when I run the app for the first time:
>>
>> [2014-10-29 17:37:34 BRST] <WorkerThread1> <br.com.codeprint.website.DirectAction>: Exception in performActionNamed() on the action "login" with the message: com.webobjects.directtoweb.D2WModelException: Error - could not find any rule that returns a pageName using the current context <D2WContext task=list, entity=Product, propertyKey=null, pageConfiguration=null>
>> - Error with action login:com.webobjects.directtoweb.D2WModelException: Error - could not find any rule that returns a pageName using the current context <D2WContext task=list, entity=Product, propertyKey=null, pageConfiguration=null>, formValues:{username = (""); password = (""); wosid = ("WnGhLWoSK3H0Bvw752rq0g"); WOSubmitAction = ("login"); }
>> com.webobjects.directtoweb.D2WModelException: Error - could not find any rule that returns a pageName using the current context <D2WContext task=list, entity=Product, propertyKey=null, pageConfiguration=null>
>> 	at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
>> 	at com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
>> 	at com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
>> 	at com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
>> 	at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
>> 	at br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
>> 	at br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
>> 	at br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> 	at java.lang.reflect.Method.invoke(Method.java:601)
>> 	at com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
>> 	at er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
>> 	at er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
>> 	at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
>> 	at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
>> 	at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>> 	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:722)
>>
>> It's a new application and I triple-checked the boilerpate code that should go into MainNavigationController.java. NavigationMenu.plist also seems to be good.
>>
>> d2w.d2wmodel is empty, which seems strange. I had never looked into that file before, I think.
>>
>> I still did not implement authentication, but changed the code according to the tutorial at http://wiki.wocommunity.org/display/WEB/Your+First+D2W+Project .
>>
>> Eclipse 4.4 (Luna) and WOLips 4.4 compiled by myself.
>>
>>
>> Cheers,
>> Flavio
>> _______________________________________________
>> 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


  • Follow-Ups:
    • Re: D2W Problem in new application
      • From: Fabian Peters <email@hidden>
References: 
 >D2W Problem in new application (From: Flavio Donadio <email@hidden>)
 >Re: D2W Problem in new application (From: Fabian Peters <email@hidden>)

  • Prev by Date: Re: D2W Problem in new application
  • Next by Date: Re: D2W Problem in new application
  • Previous by thread: Re: D2W Problem in new application
  • Next by thread: Re: D2W Problem in new application
  • Index(es):
    • Date
    • Thread