Resource 'kill.exe' not found
Posted by: Alex Barchuk
Date: September 18, 2012 03:17AM

I need to use mxj library for an embedded database.
I get an exception when use mysql-connector-mxj-5.0.12.jar.
There is an exception when I call the shutdown() method from MysqldResource:

Exception in thread "main" java.util.MissingResourceException: Resource 'kill.exe' not found
at com.mysql.management.util.Streams.getResourceAsStream(Streams.java:124)
at com.mysql.management.util.Streams.getResourceAsStream(Streams.java:108)
at com.mysql.management.util.Streams$1.inner(Streams.java:140)
at com.mysql.management.util.Exceptions$VoidBlock.exec(Exceptions.java:129)
at com.mysql.management.util.Streams.createFileFromResource(Streams.java:153)
at com.mysql.management.util.ProcessUtil.getWindowsKillFile(ProcessUtil.java:71)
at com.mysql.management.util.ProcessUtil.<init>(ProcessUtil.java:60)
at com.mysql.management.MysqldResource.issueNormalKill(MysqldResource.java:385)
at com.mysql.management.MysqldResource.shutdown(MysqldResource.java:316)
at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.shutdown(ServerLauncherSocketFactory.java:219)
at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.shutdown(ServerLauncherSocketFactory.java:210)
at coza.healthbridge.collections.ConnectorMXJUrlTestExample.main(ConnectorMXJUrlTestExample.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

I looked through the old versions of mysql-connector-mxj and there is 'kill.exe' file in jar.
Why there is no 'kill.exe' file in mysql-connector-mxj-5.0.12.jar?

Options: ReplyQuote


Subject
Written By
Posted
Resource 'kill.exe' not found
September 18, 2012 03:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.