We had a similar problem. Since the data object is in a separate project, it
no longer "knows" what project it is in when invoked from another project.
This leads to the data source problem that you're experiencing. Try adding:

        //[[SPIDER_EVENT<this_onBeforeInitEvent>
        public int this_onBeforeInitEvent(CSpInitEvent event)
        {
                CSpider.setDefaultProjectPath (new CSpClassName ("<your project 
name>"));
                return (PROCEED);
        }
        //]]SPIDER_EVENT<this_onBeforeInitEvent>

in the java source for each of your data objects. Another similar problem we
experienced is trying to access a data object within the same project
_after_ getting the handle to a page in another project. The above code
fixes this as well (recommended workaround by NetD engineering). I'm not
sure of all the nitty gritty details but it seems as though there's some
notion of a "current project context" that gets thrown out of whack when you
access objects in different projects.

Sean

> -----Original Message-----
> From: Curt Springer [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 23, 1999 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [ND] Blank Pages with multiple projects
>
>
> Someone might be better able to help if you included some snippets of your
> code that is setting this off.
>
> -- Curt Springer, Team ND
>
>
> At 09:21 AM 4/23/99 -0800, [EMAIL PROTECTED] wrote:
> >We are attempting to seperate a large project into 2 smaller
> ones, since a
> fair amount of the
> >code will be used by other up and coming projects. In doing this we have
> run into a problem
> >with dataObjects.
> >
> >What is happening is that the code to perform the getProxyEmailIDList is
> in the Common area,
> >and is called by code in the Reports area. We are getting blank
> pages with
> this, with the
> >following stack trace.
> >
> >We dont understand why things fall over in CSpDBConnection.init. Its
> almost as if we dont
> >seem to be able to see the Data Source, which we know is correct. The
> DataSource is also
> >defined in both the Common project and the Reports project.
> >
> >If anyone can shed some light on this, it would be much appreciated.
> >
> >thanks.
> >
> >
> >
> >62   04/23/99 at 12:06:01.892        Error   Thread-5        CPService
> spider.event.adapters.CSpPageEventAdapter:c:924883365400:w:9248833
> 68063:rela
> yGenericEventProcessing:
> >     Unexpected exception from an event
> (java.lang.NullPointerException: ).
> This is when
> >     invoking method this_onBeforeLoadEvent for event
> spider.event.CSpPageEvent [ON_BEFORE_LOAD_EVENT,
> >     browserIncapabilityType=???] on cda_a01s:
> >63   04/23/99 at 12:06:01.962        Error   Thread-5        CPService
> spider.event.adapters.CSpPageEventAdapter:c:924883365400:w:9248833
> 68063:rela
> yGenericEventProcessing:
> >     Unexpected Exception (java.lang.NullPointerException: )
> caught. Top of
> stack: |java.lang.NullPointerException:
> >
> >        at spider.database.CSpDBConnection.<init>(CSpDBConnection.java)
> >        at
> spider.database.CSpProcedure.constructDefaultDBRequest(CSpProcedure.java)
> >        at
> spider.database.CSpDataObject.constructDefaultDBRequest(CSpDataObj
> ect.java)
> >        at spider.database.CSpDataObject.execute(CSpDataObject.java)
> >        at
> CommonProject.CommonPage.getProxyEmailIDList(CommonPage.java:675)
> >        at
> CommonProject.CommonPage.getProxyEmailIDList(CommonPage.java:663)
> >        at Reports.cda_a01s.this_onBeforeLoadEvent(cda_a01s.java:93)
> >        at
> spider.event.adapters.CSpEventAdapter.relayGenericEventProcessing(Compiled
> Code)
> >        at
> spider.event.adapters.CSpEventAdapter.relayGenericEvent(Compiled Code)
> >        at
> spider.event.adapters.CSpPageEventAdapter.onBeforeLoadEvent(CSpPag
> eEventAdap
> ter.java)
> >        at
> spider.visual.CSpCommonPage.processPageEvent(CSpCommonPage.java)
> >        at spider.visual.CSpCommonPage.processEvent(Compiled Code)
> >        at spider.CSpFileBased.dispatchEvent(Compiled Code)
> >        at spider.CSpFileBased.dispatchEvent(Compiled Code)
> >        at spider.visual.CSpCommonPage.load(CSpCommonPage.java)
> >        at spider.visual.CSpCommonHtmlPage.load(CSpCommonHtmlPage.java)
> >        at spider.visual.CSpCommonPage.load(CSpCommonPage.java)
> >        at spider.visual.CSpCommonPage.load(CSpCommonPage.java)
> >        at spider.visual.CSpCommonPage.load(CSpCommonPage.java)
> >        at spider.visual.CSpCommonPage.load(CSpCommonPage.java)
> >        at
> CommonProject.cda_s03s.hrefReports_onWebEvent(cda_s03s.java:331)
> >        at
> spider.event.adapters.CSpEventAdapter.relayGenericEventProcessing(Compiled
> Code)
> >        at
> spider.event.adapters.CSpEventAdapter.relayGenericEvent(Compiled Code)
>
> >        at
> spider.event.adapters.CSpPageEventAdapter.onWebEvent(CSpPageEventA
> dapter.java)
> >        at spider.visual.CSpCommand.processWebEvent(CSpCommand.java)
> >        at spider.visual.CSpCommand.processEvent(CSpCommand.java)
> >        at spider.CSpFileBased.dispatchEvent(Compiled Code)
> >        at spider.CSpFileBased.dispatchEvent(Compiled Code)
> >        at spider.util.CSpMethod.call(CSpMethod.java)
> >        at
> spider.control.CSpWebEventProcessor.callThisMethod(CSpWebEventProc
> essor.java)
> >        at spider.control.CSpWebEventProcessor.run(Compiled Code)
> >        at
> netdyn.services.cp.worker.CNdCPWorkerImpl.webEventMessage(CNdCPWor
> kerImpl.ja
> va)
> >        at
> netdyn.services.cp.stubs._tie_INdCPWorker.webEventMessage(_tie_INd
> CPWorker.j
> ava)
> >        at
> netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(_INdCPWorke
> rImplBase.
> java)
> >        at
> netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(Compiled
> Code)
> >        at
> com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(Compiled
> Code)
> >        at
> com.visigenic.vbroker.orb.GiopProtocolAdapter.doRequest(Compiled Code)
> >        at
> com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(Comp
> iled Code)
> >        at
> com.visigenic.vbroker.orb.ThreadPoolDispatcher.run(Compiled Code)
> >        at com.visigenic.vbroker.orb.WorkerThread.run(Compiled Code)
> >
> >_________________________________________________________________________
> >
> >For help in using, subscribing, and unsubscribing to the discussion
> >forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
> >
> >For dire need help, email: [EMAIL PROTECTED]
> >
> _________________________________________________________________________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
>

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to