• 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 and CooperatingEditingContext: Can anybody use together?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W and CooperatingEditingContext: Can anybody use together?


  • Subject: Re: D2W and CooperatingEditingContext: Can anybody use together?
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 21 Apr 2005 14:00:36 -0700

That seems like a very odd exception. It seems to be complaining about accessing a package instance variable in Session. Try wrapping the call in a try... catch block and see what it shows.

    Session(){ // use my ec
        super();
try {
        setDefaultEditingContext(new CooperatingEditingContext());
       }
catch (Throwable t) {
NSLog.debug.appendln("setting default EC threw " + t.getMessage());
t.printStackTrace();
    }


Chuck


On Apr 21, 2005, at 1:19 PM, gbrown wrote:

Can a D2W use a CooperatingEditingContext, which implements the EOStateTransition interface?

 Is there a way?

 if I modify the session object :
     Session(){ // use my ec
         super();
         setDefaultEditingContext(new CooperatingEditingContext());
        
     }


then the app explodes with:

 Error: java.lang.IllegalStateException exception
 Reason:
 java.lang.IllegalStateException: An Exception occurred while generating the Exception page 'WOExceptionPage'. This is most likely due to an error in 'WOExceptionPage' itself or WebObjects encountered an uncaught exception while creating a Session object.



 Below are the logs of the original Exception which occured in Application, then the later Exception in WOExceptionPage.


 Original Exception:
 java.lang.IllegalAccessException: Class com.webobjects.foundation._NSUtilities can not access a member of class Session with modifiers ""
 at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
 at java.lang.Class.newInstance0(Class.java:302)
 at java.lang.Class.newInstance(Class.java:261)
 at com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.j ava:577)
 at com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplic ation.java:1611)
 at com.webobjects.appserver.WOApplication._initializeSessionInContext(WOAp plication.java:1752)
 at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi thPreparedApplication(WOComponentRequestHandler.java:309)
 at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequ est(WOComponentRequestHandler.java:358)
 at com.webobjects.appserver._private.WOComponentRequestHandler.handleReque st(WOComponentRequestHandler.java:432)
 at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.ja va:1306)
 at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread .java:173)
 at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.jav a:254)
 at java.lang.Thread.run(Thread.java:552)



 WOExceptionPage Exception:

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
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 and CooperatingEditingContext: Can anybody use together? SOLVED
      • From: gbrown <email@hidden>
References: 
 >D2W and CooperatingEditingContext: Can anybody use together? (From: gbrown <email@hidden>)

  • Prev by Date: WebObjects Deployment on JBoss
  • Next by Date: Re: recovering from a validation exception
  • Previous by thread: D2W and CooperatingEditingContext: Can anybody use together?
  • Next by thread: Re: D2W and CooperatingEditingContext: Can anybody use together? SOLVED
  • Index(es):
    • Date
    • Thread