I work with Greg, and we have "semi-solved" this problem. We called the data object's
execute from a new thread.
This has freed the swing event dispatching thread from being consumed with the data
object. So we are now able
simultaneously update swing widgets. However, we now experience a new exception that
appears to be connected
to CSpLog. The following stack trace is displayed in the Java console:
ERROR: NO LOG CONTEXT
java.lang.Exception: Stack trace
at java.lang.Throwable.<init>(Compiled Code)
* at java.lang.Exception.<init>(Compiled Code)
at java.lang.Thread.dumpStack(Compiled Code)
at netdyn.cosi.common.CNdLog.doLogString(Compiled Code)
at netdyn.cosi.common.CNdLog.send(Compiled Code)
at spider.util.CSpLog._log(Compiled Code)
at spider.util.CSpLog.send(Compiled Code)
at spider.database.CSpDataObject.executeTheRequestAtTheDS(Compiled Code)
at spider.database.CSpDataObject.execute(Compiled Code)
at spider.database.CSpDataObject.execute(Compiled Code)
at spider.database.CSpDataObject.execute(Compiled Code)
at org.hhmi.weberm.catalog.server.CatalogBusinessObject.getCatalogItems(Compiled
Code)
at org.hhmi.weberm.catalog.CatalogThread.run(Compiled Code)
Thanks in advance for any help you can provide.
Gregory Bohmer <[EMAIL PROTECTED]> wrote:
>Hello to all. I am battling something right now that appears to>be working fine with
>Threads outside of NetDynamics but when
>used in conjunction with NetDynamics I am having some
>problems.
>
>I am trying to update the GUI with a JProgressBar that swooshes
>back and forth upon commands: startMotion() and stopMotion().
>This class actually extends from Thread and _has_ a JProgressBar.
>Right before I execute a DataObject, I call startMotion(). When
>the DataObject finishes its .execute(), I call stopMotion(). This
>would give the desired effect of something in progress while the
>user waits for their results. Except it doesn't work. The DataObject
>thread of execution never allows the JProgressBar to update
>itself. It can print stuff out but it can not update the widget.
>Any ideas why? Swing considerations?
>
>Thanks for any and all help.
>Regards,
>Gregory, HHMI
>
>
_________________________________________________________________________
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]