amoroso@forex.co.ke
Hi All,
I am doing the database-bound 'hello world' example.
The adapter classes compile okay but when it comes to initialising the server I get a warning - "data_provider element without attribute using DEFAULT as the default name" which later results in the error "HELLOWORLD.DEFAULT init error".
Clearly the server is looking for HELLOWORLD.HelloWorldDataAdapter but because of the earlier warning cannot find it because it used the name default.
I have defined the data_provider element in the xml file as HelloWorldDataAdapter, what could the problem be?
I could resort to renaming helloworlddataadapter default in the xml file but that seems like a cop out.
Amoroso.
Dario Crivelli
You should have got a message like "data_provider element without name attribute ...".
In fact, an attribute like name="MYNAME"can be added to the <data_provider> element.
In that case, a line like myTable.setDataAdapter("MYNAME") has to be added to the Table configuration on the client side.
Anyway, the configured name has no role on the Data Adapter initialization.
The Server looks for a class whose name is provided by the contents of the <adapter_class> element.
Hence, if the class was not found, the problem could be related with the class name you supplied there or to errors in the supplied jar.
amoroso@forex.co.ke
Hi guys,
when we use the helloworld data adapter classes <from the lightstreamer archives> timestamped 08 February 2008, 11:21:00
we get this adapter initialisation exception.
when we us the helloworld data adapter classes timestamped 26 November 2009, 00:38:00 the initialisation exception dissappears.
Dario Crivelli
We can't replicate the issue.
Anyway, the source code of the HelloWorld Data Adapter were made available
so that you wouldn't need to rely on the provided class files
(for instance, binary version mismatches could also occur, as the class files are compiled in Java 5 format).
In fact, If I understand right, the working "26 November" version was recompiled by you.