SBW.connect() fails from Eclipse (OSX Tiger)

Help
2007-06-12
2013-03-22
  • Tully Ernst
    Tully Ernst
    2007-06-12

    I am unable to connect to the SBW Broker from within Eclipse.

    Systems Biology Workbench 2.7.0 - OS X (intel) version
    SBW.getVersion() => 2.4.1, Installer 2.7.0

    Calling the following static method
    SBW.connect();
    results in an Exception "Attempted to transmit when not connected"
    Although below "Broker failed to start", looking at the system process it is clear the Broker has started and is operational.

    The following output is from the SBWCore-debug.jar
    <<<
    [0.05 main (trace) SBWModuleRPC.connectToBroker:280] Attempting to connect to Broker
    [0.087 main (trace) Config.getEnvVars:147] adding environment variable: 'SECURITYSESSIONID' with value '51b560'
    [0.088 main (trace) Config.getEnvVars:147] adding environment variable: 'USER' with value 'tully'
    [0.089 main (trace) Config.getEnvVars:147] adding environment variable: 'APP_ICON_2213' with value '../Resources/Eclipse.icns'
    [0.09 main (trace) Config.getEnvVars:147] adding environment variable: 'JAVA_MAIN_CLASS_2213' with value 'org.eclipse.core.launcher.Main'
    [0.09 main (trace) Config.getEnvVars:147] adding environment variable: 'HOME' with value '/Users/tully'
    [0.091 main (trace) Config.getEnvVars:147] adding environment variable: 'DYLD_LIBRARY_PATH' with value '/Applications/SBW-2.6.0/SBWLauncher.app/Contents/Resources/Java/lib/'
    [0.091 main (trace) Config.getEnvVars:147] adding environment variable: 'PATH' with value '/usr/bin:/bin:/usr/sbin:/sbin'
    [0.092 main (trace) Config.getEnvVars:147] adding environment variable: 'SHELL' with value '/bin/bash'
    [0.092 main (trace) Config.getEnvVars:147] adding environment variable: '__CF_USER_TEXT_ENCODING' with value '0x1F5:0:0'
    [0.095 main (trace) Config.getEnvVars:147] adding environment variable: 'JAVA_MAIN_CLASS_2240' with value 'tools.SimulationTool'
    [0.166 main (trace) Config.getSBWUserDir:888] SBW_USER environment variable not set; looking in config props
    [0.167 main (trace) Config.getSBWUserDir:903] sbw.user property not set; looking in config props
    [0.169 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
    [0.175 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
    [0.176 main (trace) SBWModuleRPC.connectToBroker:292] Found sbw.module.port in SBW properties file
    [0.178 main (trace) SBWModuleRPC.connectToBroker:357] sbw.module.port is not in use
    [0.179 main (notice) SBWModuleRPC.startBrokerAndConnect:593] Broker doesn't appear to be running; will try starting it
    [0.18 main (trace) Config.getBrokerStartupScript:597] sbw.broker.startup.script property not set; using defaults
    [0.181 main (trace) SBWModuleRPC.startBrokerAndConnect:603] A Broker startup script appears to exist at /Users/tully/.sbw/startbroker
    [0.181 main (trace) SBWModuleRPC.startBrokerAndConnect:658] Starting Broker with: /bin/sh /Users/tully/.sbw/startbroker
    [0.186 main (trace) SBWModuleRPC.startBrokerAndConnect:668] Will wait for 60 sec
    [0.192 main (trace) SBWModuleRPC.connectToBroker:280] Attempting to connect to Broker
    [0.194 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
    [0.194 main (trace) SBWModuleRPC.connectToBroker:292] Found sbw.module.port in SBW properties file
    [0.195 main (trace) SBWModuleRPC.connectToBroker:357] sbw.module.port is not in use
    [0.297 main (trace) SBWModuleRPC.connectToBroker:280] Attempting to connect to Broker
    [0.297 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
    [0.298 main (trace) SBWModuleRPC.connectToBroker:292] Found sbw.module.port in SBW properties file
    [0.298 main (trace) SBWModuleRPC.connectToBroker:357] sbw.module.port is not in use
    [0.299 main (warning) SBWModuleRPC.startBrokerAndConnect:690] Broker failed to start
    [0.302 main (trace) SBW.getBrokerService:672] Obtaining instance of Broker interface.
    [0.306 main (trace) SBW.getServiceNamesFromModule:709] Querying module -1 about its services
    [0.32 main (trace) SBWRPC.transmit:397] Transmitting message (length = 26) to module -1
    [0.321 main (error) SBWModuleRPC.transmitExternalOnly:243] Attempted to transmit when not connected
    [0.324 main (trace) SBWException.<init>:286] Creating new exception with message = 'Attempted to transmit when not connected'
    [0.325 main (trace) SBWException.<init>:287] detailedMessage = ''
    [0.326 main (trace) SBWRPC.call:212] Propagating exception received in reply
    [0.326 main (trace) SBW.getServiceNamesFromModule:727] Unable to get services list from module -1
    [0.331 main (trace) SBWException.<init>:286] Creating new exception with message = 'Attempted to transmit when not connected'
    [0.332 main (trace) SBWException.<init>:287] detailedMessage = '
    >>>

    The strange this is I *CAN* connect from jython

    Output from the SBWCore-debug.jar is:
    <<<
    [0.032 main (trace) SBWModuleRPC.connectToBroker:280] Attempting to connect to Broker
    [0.069 main (trace) Config.getEnvVars:147] adding environment variable: 'TERM_PROGRAM' with value 'Apple_Terminal'
    [0.07 main (trace) Config.getEnvVars:147] adding environment variable: 'SHELL' with value '/bin/bash'
    [0.071 main (trace) Config.getEnvVars:147] adding environment variable: 'TERM' with value 'xterm-color'
    [0.071 main (trace) Config.getEnvVars:147] adding environment variable: 'TERM_PROGRAM_VERSION' with value '133'
    [0.072 main (trace) Config.getEnvVars:147] adding environment variable: 'USER' with value 'tully'
    [0.073 main (trace) Config.getEnvVars:147] adding environment variable: 'LD_LIBRARY_PATH' with value ':/Applications/SBW-2.6.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/'
    [0.074 main (trace) Config.getEnvVars:147] adding environment variable: 'SBW_HOME' with value '/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/'
    [0.075 main (trace) Config.getEnvVars:147] adding environment variable: '__CF_USER_TEXT_ENCODING' with value '0x1F5:0:0'
    [0.082 main (trace) Config.getEnvVars:147] adding environment variable: 'PATH' with value '/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/bin/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/bin'
    [0.087 main (trace) Config.getEnvVars:147] adding environment variable: '_' with value '/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java'
    [0.088 main (trace) Config.getEnvVars:147] adding environment variable: 'PWD' with value '/Users/tully'
    [0.089 main (trace) Config.getEnvVars:147] adding environment variable: 'HOME' with value '/Users/tully'
    [0.09 main (trace) Config.getEnvVars:147] adding environment variable: 'SHLVL' with value '2'
    [0.091 main (trace) Config.getEnvVars:147] adding environment variable: 'DYLD_LIBRARY_PATH' with value ':/Applications/SBW-2.6.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib/:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib'
    [0.091 main (trace) Config.getEnvVars:147] adding environment variable: 'LOGNAME' with value 'tully'
    [0.092 main (trace) Config.getEnvVars:147] adding environment variable: 'SECURITYSESSIONID' with value '51b560'
    [0.093 main (trace) Config.getEnvVars:147] adding environment variable: 'JAVA_MAIN_CLASS_1293' with value 'org.python.util.jython'
    [0.149 main (trace) Config.getSBWUserDir:888] SBW_USER environment variable not set; looking in config props
    [0.151 main (trace) Config.getSBWUserDir:903] sbw.user property not set; looking in config props
    [0.153 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
    [0.153 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
    [0.155 main (trace) SBWModuleRPC.connectToBroker:292] Found sbw.module.port in SBW properties file
    [0.159 main (trace) SessionKey.loadKey:79] Loading session key from '/Users/tully/.sbw/runtime/127.0.0.1/key'
    [0.16 main (trace) SBWModuleRPC.connectSocketToBroker:387] Attempting to connect socket to localhost:10100
    [0.166 main (trace) SBWModuleRPC.connectMessageStreams:425] Attempting to connect anonymously
    [0.176 main (trace) SBWModuleRPC.connectMessageStreams:447] Successfully shook hands with Broker
    [0.178 main (trace) SBW.getBrokerService:672] Obtaining instance of Broker interface.
    [0.178 receiver-thread (trace) SBWModuleRPC.runReceiverThread:470] Receiver thread started
    [0.18 main (trace) SBW.getServiceNamesFromModule:709] Querying module -1 about its services
    [0.187 main (trace) SBWRPC.transmit:397] Transmitting message (length = 26) to module -1
    [0.188 main (trace) SBWRPC.call:206] Call sent; waiting for reply from module -1
    [0.188 main (trace) RPCOutCall.waitForReply:158] Waiting for reply
    [0.189 receiver-thread (trace) SBWRPC.receive:287] Module 1 receiving 'reply' msg
    [0.189 main (trace) RPCOutCall.waitForReply:168] Processing reply event
    [0.19 main (trace) RPCOutCall.waitForReply:172] Received NORMAL_REPLY_EVENT
    [0.195 main (trace) SBW.getSignatureStringsFromModule:751] Querying module -1 about methods for service 0
    [0.196 main (trace) SBWRPC.transmit:397] Transmitting message (length = 31) to module -1
    [0.196 main (trace) SBWRPC.call:206] Call sent; waiting for reply from module -1
    [0.197 receiver-thread (trace) SBWRPC.receive:287] Module 1 receiving 'reply' msg
    [0.201 main (trace) RPCOutCall.waitForReply:158] Waiting for reply
    [0.202 main (trace) RPCOutCall.waitForReply:168] Processing reply event
    [0.203 main (trace) RPCOutCall.waitForReply:172] Received NORMAL_REPLY_EVENT
    >>>

    So I guess it's a configuration problem but I'm lost to what it could be.

    I tried setting the DYLD_LIBRARY_PATH as an environment variable in the run configuration of the Eclipse project but still have the same error.

    What next?

    Many thanks,

    Tully

     
    • Frank Bergman manages SBW, his is currently however away for a week on vacation, if you can wait a little while I am sure he will answer. I forwarded your question to him directly

      Herbert Sauro

       
    • Frank Bergmann
      Frank Bergmann
      2007-06-14

      I'm afraid this is a known error occuring on JVMs on Linux and OSX. The problem seems to be, that those JVMs target the IPv6 networkstack by default. So for us the only viable workaround is to use the following code snippet before the first SBW.connect()

                  if (Sys.OSIsMac() || Sys.OSIsUnix())
                  {
                         System.setProperty("java.net.preferIPv4Stack", "true");
                         System.setProperty("sbw.broker.allow-remote-modules", "true");
                  }

      where Sys should be defined in edu.caltech.sbw.*

      again, I'm sorry for the trouble and for not replying sooner ...

      best
      Frank

       
    • Tully Ernst
      Tully Ernst
      2007-06-17

      Hi Frank,

      I added the code snippet but unfortunately I'm still receiving the same error.

      I have the following environment variables set up in the run configuration:
      DYLD_LIBRARY_PATH=/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib
      SBW_HOME=/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/
      PATH=/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/bin

      Although the error is generated the Broker is started: I can see it running in Activity Monitor and if I start Cell Designer I can see the services provided via SBW, in the SBW menu (these are only visible while the Broker is running).

      I have included the code snippet, environment and system properties, and output from the debug.

      Once again thanks for your time,

      Tully

      if (Sys.OSIsMac() || Sys.OSIsUnix()) {
          System.setProperty("java.net.preferIPv4Stack", "true");
          System.setProperty("sbw.broker.allow-remote-modules", "true");
      }
      System.out.println(System.getenv().toString());
      System.out.println(System.getProperties().toString());
      SBW.connect();

      >>System.getenv()
      {SECURITYSESSIONID=98f440, USER=tully, HOME=/Users/tully, APP_ICON_238=../Resources/Eclipse.icns, DYLD_LIBRARY_PATH=/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib, JAVA_MAIN_CLASS_238=org.eclipse.core.launcher.Main, JAVA_MAIN_CLASS_250=tools.SimulationTool, SBW_HOME=/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/, PATH=/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/bin, SHELL=/bin/bash, __CF_USER_TEXT_ENCODING=0x1F5:0:0}

      >>System.getProperties()
      {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries, java.vm.version=1.5.0_07-87, awt.nativeDoubleBuffering=true, gopherProxySet=false, java.vm.vendor="Apple Computer, Inc.", java.vendor.url=http://apple.com/, path.separator=:, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=unknown, log=true, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/Users/tully/Developer/Eclipse Workspace/OpenCI, java.runtime.version=1.5.0_07-164, java.awt.graphicsenv=apple.awt.CGraphicsEnvironment, java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
      , java.vm.specification.vendor=Sun Microsystems Inc., os.name=Mac OS X, sun.jnu.encoding=MacRoman, java.library.path=/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/lib:.:/Users/tully/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java, log.format=[%(clock)r %(%n)h (%e) %c.%f:%l] %m %o
      , java.specification.name=Java Platform API Specification, java.class.version=49.0, java.net.preferIPv4Stack=true, sun.management.compiler=HotSpot Client Compiler, sbw.broker.allow-remote-modules=true, os.version=10.4.9, user.home=/Users/tully, user.timezone=Europe/Berlin, java.awt.printerjob=apple.awt.CPrinterJob, file.encoding=MacRoman, java.specification.version=1.5, java.class.path=/Users/tully/Developer/Eclipse Workspace/OpenCI:/Users/tully/Developer/Jars/csml1.9_parser.jar:/Users/tully/Developer/Jars/colt.jar:/Users/tully/Developer/Jars/jung-1.7.5.jar:/Users/tully/Developer/Jars/jep-2.4.0.jar:/Users/tully/Developer/Jars/commons-collections-3.2.jar:/Users/tully/Developer/Jars/osp.jar:/Users/tully/Developer/Jars/jgap.jar:/Applications/eclipse/plugins/org.junit4_4.1.0.1/junit-4.1.jar:/Users/tully/Developer/Jars/joone-engine.jar:/Users/tully/Developer/Jars/jwf-1.0.1.jar:/Users/tully/Developer/Jars/jdom.jar:/Users/tully/Developer/Jars/sbml2.jar:/Users/tully/Developer/Jars/jfreechart-1.0.5.jar:/Users/tully/Developer/Jars/jcommon-1.0.9.jar:/Applications/SBW-2.7.0/SBWLauncher.app/Contents/Resources/Java/bin/SBWCore-debug.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar, user.name=tully, apple.awt.graphics.UseQuartz=true, java.vm.specification.version=1.0, java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home, sun.arch.data.model=32, user.language=en, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=apple.awt.CToolkit, java.vm.info=mixed mode, sharing, java.version=1.5.0_07, java.ext.dirs=/Users/tully/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext, sun.boot.class.path=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar, java.vendor=Apple Computer, Inc., file.separator=/, java.vendor.url.bug=http://developer.apple.com/java/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, mrj.version=1040.1.5.0_07-164, sun.awt.exception.handler=apple.awt.CToolkit$EventQueueExceptionHandler, sun.cpu.isalist=}

      >>Debug SBWCore output
      [0.032 main (trace) SBWModuleRPC.connectToBroker:280] Attempting to connect to Broker
      [0.037 main (trace) Config.getSBWUserDir:888] SBW_USER environment variable not set; looking in config props
      [0.038 main (trace) Config.getSBWUserDir:903] sbw.user property not set; looking in config props
      [0.039 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
      [0.04 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
      [0.041 main (trace) SBWModuleRPC.connectToBroker:292] Found sbw.module.port in SBW properties file
      [0.046 main (trace) SBWModuleRPC.connectToBroker:357] sbw.module.port is not in use
      [0.047 main (notice) SBWModuleRPC.startBrokerAndConnect:593] Broker doesn't appear to be running; will try starting it
      [0.049 main (trace) Config.getBrokerStartupScript:597] sbw.broker.startup.script property not set; using defaults
      [0.049 main (trace) SBWModuleRPC.startBrokerAndConnect:603] A Broker startup script appears to exist at /Users/tully/.sbw/startbroker
      [0.05 main (trace) SBWModuleRPC.startBrokerAndConnect:658] Starting Broker with: /bin/sh /Users/tully/.sbw/startbroker
      [0.06 main (trace) SBWModuleRPC.startBrokerAndConnect:668] Will wait for 60 sec
      [0.064 main (trace) SBWModuleRPC.connectToBroker:280] Attempting to connect to Broker
      [0.065 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
      [0.065 main (trace) SBWModuleRPC.connectToBroker:292] Found sbw.module.port in SBW properties file
      [0.068 main (trace) SBWModuleRPC.connectToBroker:357] sbw.module.port is not in use
      [0.169 main (trace) SBWModuleRPC.connectToBroker:280] Attempting to connect to Broker
      [0.17 main (trace) RuntimeProperties.reload:172] Read runtime properties from /Users/tully/.sbw/runtime/127.0.0.1/run.properties
      [0.17 main (trace) SBWModuleRPC.connectToBroker:292] Found sbw.module.port in SBW properties file
      [0.171 main (trace) SBWModuleRPC.connectToBroker:357] sbw.module.port is not in use
      [0.172 main (warning) SBWModuleRPC.startBrokerAndConnect:690] Broker failed to start
      [0.173 main (trace) SBW.getBrokerService:672] Obtaining instance of Broker interface.
      [0.176 main (trace) SBW.getServiceNamesFromModule:709] Querying module -1 about its services
      [0.186 main (trace) SBWRPC.transmit:397] Transmitting message (length = 26) to module -1
      [0.187 main (error) SBWModuleRPC.transmitExternalOnly:243] Attempted to transmit when not connected
      [0.189 main (trace) SBWException.<init>:286] Creating new exception with message = 'Attempted to transmit when not connected'
      [0.19 main (trace) SBWException.<init>:287] detailedMessage = ''
      [0.191 main (trace) SBWRPC.call:212] Propagating exception received in reply
      [0.191 main (trace) SBW.getServiceNamesFromModule:727] Unable to get services list from module -1
      [0.192 main (trace) SBWException.<init>:286] Creating new exception with message = 'Attempted to transmit when not connected'
      [0.192 main (trace) SBWException.<init>:287] detailedMessage = '

       
      • Frank Bergmann
        Frank Bergmann
        2007-06-18

        *cough* ... my bad .. sorry ... just tried to reproduce your problem wrote the attached test class and stumbled into the same problem ... that was untill i used the non debug SBWCore.jar ... ($SBW_HOME/bin/SBWCore.jar). If you then run the attached java script it should end happily with ...

        Connected successfully ...

        can you confirm this? in that case i would just release a new SBWCore-debug.jar whenever i get the chance next (currently in europe with only sporadic internet connection ... )

        cheers
        Frank

        P.S: I opened a bug  here:

        http://sourceforge.net/tracker/index.php?func=detail&aid=1738879&group_id=58157&atid=486721

         
      • Frank Bergmann
        Frank Bergmann
        2007-06-18

        actually i went ahead, compiled release and debug jar anew from the SBW cvs and that debug version seems to work for me, i uploaded it to the SBW core sf ... sorry again for the trouble

        best
        Frank

        http://downloads.sourceforge.net/sbw/2007-06-18_SBWJavaBindings.zip?use_mirror=superb-west

         
    • Tully Ernst
      Tully Ernst
      2007-06-19

      Hi Frank,

      Thanks for everything I am now able to connect successfully with both SBWCore and SBWCore-debug.
      Forgive me if this is a stupid question but I realized I must call the SBW.connect() method inside the main method, is this normal?

      Thanks for everything,

      Tully

       
      • Frank Bergmann
        Frank Bergmann
        2007-06-21

        Hello Tully,

        you should not need to call the connect method from the Main method. If you are just using other services, you should be free to call it wherever you want. What makes you think so?

        On the other hand if you are running your application as SBW module, that is providing services to other modules, then you usually would create your ModuleImplementation object in your main method ... but in that case the SBW.connect call would be implicit by ModuleImplementation.run / enableServices ... .

        cheers
        Frank

        P.S: Thanks for letting me know it works now ...