fail to access the server on a localhost

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • fail to access the server on a localhost

      hi,all
      I just install the palo server on my computer, the operating system is windows xp sp2, and i also install the .net framework1.1 and its sp1. but I can not access the server on a localhost. what is happened? how to solve the problem?
      the issue is: the tensegrity software palo eclipse Client can access to the palo server,but when i run the jpalo examples, it cannot.

      static final String PALO_SERVER = "localhost";
      static final String PALO_SERVICE = "1234";
      static final String PALO_USER = "user";
      static final String PALO_PASS = "pass";
      Connection connection = ConnectionFactory.getInstance().newConnection(
      PALO_SERVER,
      PALO_SERVICE,
      PALO_USER,
      PALO_PASS);

      The post was edited 1 time, last by aoqi ().

    • RE: fail to access the server on a localhost

      hi
      first thanks for your reply!
      i run the examples in Eclipse, also set the classpath to include paloapi.jar.
      i forgot to tell that in my before windows xp system, they both could connect.
      but after i reinstalled my OS,which is also windows xp, it failed. howerver, the paolo eclipse client can connect.
      so i try on other computer, install the palo server, .netframwork...but the Jpalo examples failed to connect the server, and sometimes the palo eclipse client also cannot. it is very strange that the palo eclipse client is so random, for sometimes it can connect.

      set -Djava.library.path = path of .dll
      for this, i donot understand, what is it? i never set this.

      the error for palo eclipse client:
      a MessageBox with the information:connecting to palo at sartup failed....

      the palo.log file:

      12.07.2006 15:21:03 INFO: LOG: changed log file to "palo.log"
      12.07.2006 15:21:03 INFO: loading authentication configuration: ".\auth.xml"
      12.07.2006 15:21:03 INFO: loading root: ".\root.xml"
      12.07.2006 15:21:03 INFO: loading root: configuration file not present - loading any available databases
      12.07.2006 15:21:03 INFO: loading database: ".\Demo\Demo.xml"
      12.07.2006 15:21:03 INFO: loading database: configuration file not present - loading any available dimensions and cubes
      12.07.2006 15:21:03 INFO: processing dimension: "Datatypes"
      12.07.2006 15:21:03 INFO: loading dimension: ".\Demo\RGF0YXR5cGVz.dimension.xml"
      12.07.2006 15:21:03 INFO: using dimension log file: ".\Demo\RGF0YXR5cGVz.dimension.log"
      12.07.2006 15:21:03 INFO: processing dimension: "Months"
      12.07.2006 15:21:03 INFO: loading dimension: ".\Demo\TW9udGhz.dimension.xml"
      12.07.2006 15:21:03 INFO: using dimension log file: ".\Demo\TW9udGhz.dimension.log"
      12.07.2006 15:21:03 INFO: processing dimension: "Measures"
      12.07.2006 15:21:03 INFO: loading dimension: ".\Demo\TWVhc3VyZXM=.dimension.xml"
      12.07.2006 15:21:03 INFO: using dimension log file: ".\Demo\TWVhc3VyZXM=.dimension.log"
      12.07.2006 15:21:03 INFO: processing dimension: "Products"
      12.07.2006 15:21:03 INFO: loading dimension: ".\Demo\UHJvZHVjdHM=.dimension.xml"
      12.07.2006 15:21:03 INFO: using dimension log file: ".\Demo\UHJvZHVjdHM=.dimension.log"
      12.07.2006 15:21:03 INFO: processing dimension: "Regions"
      12.07.2006 15:21:03 INFO: loading dimension: ".\Demo\UmVnaW9ucw==.dimension.xml"
      12.07.2006 15:21:03 INFO: using dimension log file: ".\Demo\UmVnaW9ucw==.dimension.log"
      12.07.2006 15:21:03 INFO: processing dimension: "Years"
      12.07.2006 15:21:03 INFO: loading dimension: ".\Demo\WWVhcnM=.dimension.xml"
      12.07.2006 15:21:03 INFO: using dimension log file: ".\Demo\WWVhcnM=.dimension.log"
      12.07.2006 15:21:03 INFO: loading cube: ".\Demo\U2FsZXM=.cube.xml"
      12.07.2006 15:21:03 INFO: loading cube data file: ".\Demo\U2FsZXM=.cube.data"
      12.07.2006 15:21:04 INFO: using cube log file: ".\Demo\U2FsZXM=.cube.log"
      12.07.2006 15:21:06 INFO: using dimension log file: ".\Demo\UHJvZHVjdHM=.dimension.log"
      12.07.2006 15:21:06 INFO: using dimension log file: ".\Demo\UmVnaW9ucw==.dimension.log"
      12.07.2006 15:21:06 INFO: using dimension log file: ".\Demo\TW9udGhz.dimension.log"
      12.07.2006 15:21:06 INFO: using dimension log file: ".\Demo\WWVhcnM=.dimension.log"
      12.07.2006 15:21:06 INFO: using dimension log file: ".\Demo\RGF0YXR5cGVz.dimension.log"
      12.07.2006 15:21:06 INFO: using dimension log file: ".\Demo\TWVhc3VyZXM=.dimension.log"
      12.07.2006 15:21:06 INFO: synchronizing storage ids
      12.07.2006 15:21:07 INFO: SERVER MAIN: launching servers...
      12.07.2006 15:21:07 INFO: RUN SERVERS: configuring/launching server - hostname: "localhost" | service: "1234"
      12.07.2006 15:21:07 INFO: KILLER: waiting...
      12.07.2006 15:21:07 INFO: RUN SERVERS: configuring/launching server - hostname: "" | service: "1235"
      12.07.2006 15:21:07 INFO: RUN SERVERS: hostname: "localhost" | service: "1234" - waiting for thread to terminate
      12.07.2006 15:21:07 INFO: SERVER: Listening on 0.0.0.0:1235
      12.07.2006 15:21:07 INFO: SERVER: Listening on 127.0.0.1:1234
      12.07.2006 15:23:25 INFO: SERVICE CONTROL: control request
      12.07.2006 15:23:25 INFO: SERVICE CONTROL: setting service status
      12.07.2006 15:23:25 INFO: SERVICE CONTROL: stopping...
      12.07.2006 15:23:25 INFO: SHUTDOWN: locking root...
      12.07.2006 15:23:25 INFO: SHUTDOWN: anouncing shutdown...
      12.07.2006 15:23:25 INFO: SHUTDOWN: invoking killer...
      12.07.2006 15:23:25 INFO: KILLER: killing servers...
      12.07.2006 15:23:25 INFO: KILLER: cancelling thread: hostname: "localhost" | service: "1234"
      12.07.2006 15:23:25 INFO: KILLER: cancelling thread
      12.07.2006 15:23:25 INFO: KILLER: cancelling thread: hostname: "" | service: "1235"
      12.07.2006 15:23:25 INFO: KILLER: cancelling thread
      12.07.2006 15:23:25 INFO: KILLER: done.
      12.07.2006 15:23:26 INFO: SERVER: waiting for child threads to terminate (0 running)
      12.07.2006 15:23:26 INFO: SERVER: all child threads have terminated (0 running) - done.
      12.07.2006 15:23:26 INFO: SERVER: waiting for child threads to terminate (0 running)
      12.07.2006 15:23:26 INFO: SERVER: all child threads have terminated (0 running) - done.
      12.07.2006 15:23:26 INFO: RUN SERVERS: hostname: "localhost" | service: "1234" - thread terminated
      12.07.2006 15:23:26 INFO: RUN SERVERS: hostname: "" | service: "1235" - thread has exited with error: "Error code: -17
      0 _tithread_cancellation_h() [ threadinfo.c:0080]: thread has been cancelled
      "
      12.07.2006 15:23:26 INFO: RUN SERVERS: killer thread terminated
      12.07.2006 15:23:26 INFO: RUN SERVERS: waiting for net interface operations to complete... (0 running)
      12.07.2006 15:23:26 INFO: RUN SERVERS: net interface operations completed (0 running) - done.
      12.07.2006 15:23:26 INFO: SERVER MAIN: cleaning up...
      12.07.2006 15:23:26 INFO: SERVER MAIN: done.
      12.07.2006 15:23:26 INFO: MAIN: done - exiting...
      12.07.2006 15:24:10 INFO: LOG: changed log file to "palo.log"
      12.07.2006 15:24:10 INFO: loading authentication configuration: ".\auth.xml"
      12.07.2006 15:24:10 INFO: loading root: ".\root.xml"
      12.07.2006 15:24:10 INFO: loading root: configuration file not present - loading any available databases
      12.07.2006 15:24:10 INFO: loading database: ".\Demo\Demo.xml"
      12.07.2006 15:24:10 INFO: loading database: configuration file not present - loading any available dimensions and cubes
      12.07.2006 15:24:10 INFO: processing dimension: "Datatypes"
      12.07.2006 15:24:10 INFO: loading dimension: ".\Demo\RGF0YXR5cGVz.dimension.xml"
      12.07.2006 15:24:10 INFO: using dimension log file: ".\Demo\RGF0YXR5cGVz.dimension.log"
      12.07.2006 15:24:10 INFO: processing dimension: "Months"
      12.07.2006 15:24:10 INFO: loading dimension: ".\Demo\TW9udGhz.dimension.xml"
      12.07.2006 15:24:10 INFO: using dimension log file: ".\Demo\TW9udGhz.dimension.log"
      12.07.2006 15:24:10 INFO: processing dimension: "Measures"
      12.07.2006 15:24:10 INFO: loading dimension: ".\Demo\TWVhc3VyZXM=.dimension.xml"
      12.07.2006 15:24:10 INFO: using dimension log file: ".\Demo\TWVhc3VyZXM=.dimension.log"
      12.07.2006 15:24:10 INFO: processing dimension: "Products"
      12.07.2006 15:24:10 INFO: loading dimension: ".\Demo\UHJvZHVjdHM=.dimension.xml"
      12.07.2006 15:24:10 INFO: using dimension log file: ".\Demo\UHJvZHVjdHM=.dimension.log"
      12.07.2006 15:24:10 INFO: processing dimension: "Regions"
      12.07.2006 15:24:10 INFO: loading dimension: ".\Demo\UmVnaW9ucw==.dimension.xml"
      12.07.2006 15:24:10 INFO: using dimension log file: ".\Demo\UmVnaW9ucw==.dimension.log"
      12.07.2006 15:24:10 INFO: processing dimension: "Years"
      12.07.2006 15:24:10 INFO: loading dimension: ".\Demo\WWVhcnM=.dimension.xml"
      12.07.2006 15:24:10 INFO: using dimension log file: ".\Demo\WWVhcnM=.dimension.log"
      12.07.2006 15:24:10 INFO: loading cube: ".\Demo\U2FsZXM=.cube.xml"
      12.07.2006 15:24:10 INFO: loading cube data file: ".\Demo\U2FsZXM=.cube.data"
      12.07.2006 15:24:11 INFO: using cube log file: ".\Demo\U2FsZXM=.cube.log"
      12.07.2006 15:24:14 INFO: using dimension log file: ".\Demo\UHJvZHVjdHM=.dimension.log"
      12.07.2006 15:24:14 INFO: using dimension log file: ".\Demo\UmVnaW9ucw==.dimension.log"
      12.07.2006 15:24:14 INFO: using dimension log file: ".\Demo\TW9udGhz.dimension.log"
      12.07.2006 15:24:14 INFO: using dimension log file: ".\Demo\WWVhcnM=.dimension.log"
      12.07.2006 15:24:14 INFO: using dimension log file: ".\Demo\RGF0YXR5cGVz.dimension.log"
      12.07.2006 15:24:14 INFO: using dimension log file: ".\Demo\TWVhc3VyZXM=.dimension.log"
      12.07.2006 15:24:14 INFO: synchronizing storage ids
      12.07.2006 15:24:15 INFO: SERVER MAIN: launching servers...
      12.07.2006 15:24:15 INFO: RUN SERVERS: configuring/launching server - hostname: "localhost" | service: "1234"
      12.07.2006 15:24:15 INFO: KILLER: waiting...
      12.07.2006 15:24:15 INFO: RUN SERVERS: configuring/launching server - hostname: "" | service: "1235"
      12.07.2006 15:24:15 INFO: RUN SERVERS: hostname: "localhost" | service: "1234" - waiting for thread to terminate
      12.07.2006 15:24:15 INFO: SERVER: Listening on 0.0.0.0:1235
      12.07.2006 15:24:15 INFO: SERVER: Listening on 127.0.0.1:1234
    • The -d option is telling your java virtual machine where to find the necessary libraries. The Java API uses Java Native Invocation JNI methods to call the underlying C functions.
      If your virtual machine can't find the native libraries it will fail. You should also ensure that you have a relatively modern JVM and not the crappy one which microsoft include with XP. I would recommend you download Java 5 (1.5) from sun
    • hi,
      i installed the jdk1.5.
      i want to know i should set which .dll file to the Djava.library.path ?
      sorry i forget to list the error message of jpaloApi:
      Exception in thread "main" java.lang.UnsatisfiedLinkError: init0
      at com.tensegrity.palojava.Palo.init0(Native Method)
      at com.tensegrity.palojava.Palo.init(Palo.java:65)
      at com.tensegrity.palojava.Palo.newConnection(Palo.java:87)
      at org.palo.api.impl.ConnectionImpl.<init>(ConnectionImpl.java:50)
      at org.palo.api.impl.ConnectionFactoryImpl.newConnection(ConnectionFactoryImpl.java:24)
      at ElementNodeVisitorDemo.main(ElementNodeVisitorDemo.java:88)

      thanks, best regards!

      The post was edited 3 times, last by aoqi ().