Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2008
    Location
    casablanca
    Posts
    8

    Smile Data adapter init error

    hello,

    i yould like to debug the stocklist_demo , i followed the topic http://www.lightstreamer.com/vb/showthread.php?t=145

    but when i m runing the debug i have the error :

    27.Mar.08 16:06:20,533 < INFO> Starting MAC address check
    27.Mar.08 16:06:20,611 < INFO> Found MAC address 00:19:b9:02:96:5e
    27.Mar.08 16:06:20,611 < INFO> MAC address check successful
    27.Mar.08 16:06:20,611 < INFO> License correctly bound with the following parameter(s):
    27.Mar.08 16:06:20,611 < INFO> Client ID : ECu5kaJZalc71OsXm1812
    27.Mar.08 16:06:20,611 < INFO> Mac Address : 00:19:b9:02:96:5e
    27.Mar.08 16:06:20,814 < INFO> Lightstreamer Server starting in Moderato edition
    27.Mar.08 16:06:20,861 < WARN> JMX management features not available with the current license
    27.Mar.08 16:06:20,908 < INFO> Started HTML Adaptor for JMX on port 6666
    27.Mar.08 16:06:20,986 < INFO> Started JMXMP Connector for JMX on port 9999
    27.Mar.08 16:06:21,064 < INFO> Loading Metadata Provider HELLOWORLD
    27.Mar.08 16:06:21,064 < INFO> Loading Data Provider HELLOWORLD
    27.Mar.08 16:06:21,111 < INFO> Loading Metadata Provider STOCKLISTDEMO
    27.Mar.08 16:06:21,111 < INFO> Loading Data Provider STOCKLISTDEMO
    27.Mar.08 16:06:21,127 <ERROR> Data adapter init error
    java.lang.ClassNotFoundException: com.lightstreamer.adapters.stocklist_demo.DemoData Adapter
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.lightstreamer.d.yc.loadClass(yc.java)
    at com.lightstreamer.i.b.a(b.java)
    at com.lightstreamer.i.b.a(b.java)
    at com.lightstreamer.i.b.a(b.java)
    at com.lightstreamer.i.j.a(j.java)
    at com.lightstreamer.i.j.a(j.java)
    at com.lightstreamer.LS.main(LS.java)
    27.Mar.08 16:06:21,127 <ERROR> Error while loading the Adapters
    java.lang.ClassNotFoundException: com.lightstreamer.adapters.stocklist_demo.DemoData Adapter
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.lightstreamer.d.yc.loadClass(yc.java)
    at com.lightstreamer.i.b.a(b.java)
    at com.lightstreamer.i.b.a(b.java)
    at com.lightstreamer.i.b.a(b.java)
    at com.lightstreamer.i.j.a(j.java)
    at com.lightstreamer.i.j.a(j.java)
    at com.lightstreamer.LS.main(LS.java)
    27.Mar.08 16:06:21,142 <FATAL> Adapters initialization failed
    27.Mar.08 16:06:21,142 < INFO> Exiting.....

    cant ini one help my.

    ths.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    The missing class is the Data Adapter class. Hence, it is exactly the class you should have defined in your Eclipse project, according to the referred post.
    Have you changed the class name or the package name? If this is the case, you should reference the new name in the "adapters.xml" file (under the "adapters\StockList" directory), which is the only link between the Server and the Data Adapter.

  3. #3
    Member
    Join Date
    Mar 2008
    Location
    casablanca
    Posts
    8
    cant you explaind my this :

    When i copy the lib folder in the folder StockList the server run correctly, but when i delete the folder lib his spell the messag error. i dont understands this.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    The Server loads all jars it finds in the "lib" folder, hence it can find the Data Adapter class. This is the normal behaviour.
    In an Eclipse context, however, your run configuration settings can instruct Eclipse to load your project classes first (this should be the default setting for a run configuration), so that the Server wouldn't need to load the jar.
    Are you using custom class and package names for your Data Adapter or are you using the original sample names? In the latter case, there would definitely be an Eclipse configuration problem.

 

 

Similar Threads

  1. Replies: 4
    Last Post: October 24th, 2011, 09:33 AM
  2. Replies: 1
    Last Post: January 31st, 2011, 07:47 AM
  3. <ERROR> Failure invoked by Data Adapter
    By gani in forum Adapter Protocol
    Replies: 2
    Last Post: April 22nd, 2010, 08:01 AM
  4. HELLOWORLD.DEFAULT init error
    By amoroso@forex.co.ke in forum Adapter APIs
    Replies: 3
    Last Post: February 1st, 2010, 11:01 AM
  5. Error in Data Adapter
    By wwatts in forum Adapter APIs
    Replies: 1
    Last Post: July 9th, 2009, 08:38 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 11:00 AM.