Results 1 to 9 of 9

Hybrid View

  1. #1
    Lightstreamer Server 6.0.1 build 1780

  2. #2
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Ok,

    could you please send us the log showing the startup of Lightstreamer Server (not running in the development environment)? We need to analyse the order of initialization of Metadata Adapter and Data Adapter classes, so please leave the logger.debug statement inside method init of your DataAdapter.
    Also update the lightstreamer_log_conf.xml as follows:



    Regards
    Gianluca

  3. #3
    Hi Gianluca,

    I have attached the requested log file.

    One other thing that seems a bit strange: I can only start LS.sh within the Lightstreamer/bin directory. From all other locations (e.g. /opt/Lightstreamer by calling bin/unix-like/LS.sh) the Lightstreamer server home directory analysed by LS.sh is wrong (e.g. "/opt") and leads to Lightstreamer not starting. Maybe that's part of the problem.

    Best regards,
    Oliver
    Attached Files Attached Files
    Last edited by oliverwetterau; November 2nd, 2015 at 10:03 AM.

  4. #4
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Oliver,

    from your previous posts I did not notice the following configuration:

    This specific setting, basically used to share logging configuration with the server, configures a dedicated ClassLoader which does not inherit from the Adapter Set ClassLoader. It means that no sharing of classes is possible among the Adapters (even among Metadata Adapter class and Data Adapter classes in the same Adapter Set). In other words, in your case 'MetadataAdapter' will be assigned an Adapter ClassLoader ("log-enabled"), which is totally unrelated with the one assigned to 'DataAdapter' ("common", the default Adapter Set ClassLoader). Please have a look here and at the comments you can find in DOC-SDKs/sdk_adapter_java_inprocess/doc/adapter_conf_template/adapters.xml file of your Lightstreamer installation for a more detailed understanding.

    As a consequence of this, to make things works you have to give up using shared logging and, instead, switch to Adapter's own logging, for example by adding specific parameters which could be used for logging configuration, as follows:

    This is the same approach we used in our In-Process Java Adapter demos

    For what concerns the startup of Lightstreamer Server, different options are available (at least on a unix system and provided that you have right permissions):

    1. execute "start.sh" script from the bin/unix-like directory, as stated in the GETTING_STARTED.txt file.
    2. execute "LS.sh run" command from the bin/unix-like directory
    3. execute "unix/LS.sh run" command from the "bin" directory
    4. execute "/opt/Lightstreamer/bin/unix/LS.sh run" command from any directory.

    I confirm that execution of LS.sh script is not related with the aforementioned ClassLoader issue.

    Regards,
    Gianluca

  5. #5
    Hi Ginluca,

    your last post really solved the problem. Thanks!

    But I must admit that I had preferred it to be able to use shared logging...

    Best regards,
    Oliver

 

 

Similar Threads

  1. Replies: 3
    Last Post: February 12th, 2009, 10:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 06:16 PM.