Skip to Content
0

Deployment of MySQL Adapter on Data Provisioning agent failed

Apr 19, 2017 at 02:26 PM

74

avatar image

Hello community,

I get an error while trying to deploy an open Source Adapter on my Data Provisioning Agent.

i follow the Steps as described in the Guide.

1) I downloaded the MySQL Adapter from Github and opened the project in my Eclipse. (of course i installed the adapter sdk)

2) I manage to start the adapter in debug mode with the agent config as you can see in the following file.

3) Following this Tutorial I export the adapter as executable plugin.

4) On my Server where the Data Provisioning Agent is located i click on "deploy Adapter" and locate the jar file of the Mysql Adapter. Instead of deploying the adapter an error is shown. "Contxt: Failed to deploy Adapter".

Event the log files don't make it clearer to me why the deployment failed.

error.png

I hope that someone knows why i can't deploy the adapter to the Provisioning Agent.

A hint could be that during the export of the Adapter (Step 3) i get an error message. It confuses me because during debugging everything works fine.
The error is the following:

ERROR in C:\Users\...\MySQLAdapterFactory.java (at line 39)
	Integer.parseUnsignedInt(remoteSourceDescription.getConnectionProperties().getPropertyEntry("port").getValue());
	        ^^^^^^^^^^^^^^^^
The method parseUnsignedInt(String) is undefined for the type Integer

Eclipse and my server both use java 1.8 so parseUnsignedInt shouldn't be undefined for the type Integer.

Thanks for your time and i hope someone has solved the problem before me.
Sincerely yours,

Oliver Schmidt

adapter.png (19.1 kB)
error.png (50.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Timo Wagner
Apr 28, 2017 at 12:02 PM
0

Hello Oliver,

I've looked at the mysqladapter in the github and it specifies java 1.7, which seems to be incorrect as the parseUnsignedInt was coming with Java 8... ( https://github.com/SAP/hana-native-adapters/blob/master/MySQLAdapter/META-INF/MANIFEST.MF )

Can you make sure that the target is also specified to be java8?

Best Regards,

Timo Wagner

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Timo,
Thanks for your answer.
Yes i specified the JAVA Build Path and the Compiler to be JAVA 1.8.

I also changes the required Bundle in the Manifest.MF file to JAVA 1.8.

Now the export of the jar file doesn't throw an error but when i try to deploy the adapter then i get the following error.

"The bundle could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8"

While waiting for another answer i will try to substitute the "parseunsignedint" with a similar java 1.7 call and see if it works.

Greetings,
Oliver

0