NumberFormatException on eclipse start [英] NumberFormatException on eclipse start
问题描述
我已经在plugin.xml中添加了插件描述:
< extension point =org.eclipse.debug.core.launchConfigurationTypes>
< launchConfigurationType
name =MyConfiguration
delegate =com.myplugin.first.launching.MyLaunchConfiguration
modes =run,debug
id = com.myplugin.first.launching.myConfiguration >
< / launchConfigurationType>
< / extension>
我已经创建了具有所需依赖关系的空配置委托。
不幸的是,我无法使用我的插件启动一个新的eclipse应用程序,因为每次我收到以下错误:
java.lang.NumberFormatException:对于输入字符串:
在java.lang.NumberFormatException.forInputString(未知源)
在java.lang.Integer.parseInt(未知源)
在java .lang.Integer.parseInt(未知源)
在org.eclipse.osgi.storagemanager.StorageManager.updateTable(StorageManager.java:511)
在org.eclipse.osgi.storagemanager.StorageManager.open( StorageManager.java:708)
在org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1747)
在org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java: 1764)
在org.eclipse.osgi.storage.Storage。(Storage.java:124)
在org.eclipse.osgi.storage.Storage.createStorage(Storage.java:84)
在org.eclipse.osgi.internal.framework.EquinoxContainer(E quinoxContainer.java:75)
在org.eclipse.osgi.launch.Equinox(Equinox.java:31)
在org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java :297)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun .reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
在org .eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
在org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
在org.eclipse.equinox .launcher.Main.run(Main.java:1465)
在org.eclipse.equinox.launcher.Main.main(Main.java:1438)
发生错误。查看日志文件
null。
我没有找到有错误的日志文件。
怎么了?我应该怎么办?
也许有人知道这个问题。
嘛!我已经解决了问题。我刚刚创建了一个新的工作区,将我的项目和配置文件复制到工作区。
所以问题出在一个破损的工作区。我想有一些工作区配置文件被损坏。无论如何,谢谢redoc的想法。
I'm a novice at Java and eclipse IDE. I'm trying to create a plugin to my installed eclipse 4.4.0 by the official IBM article. I've added plug-in description to the plugin.xml:
<extension point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
name="MyConfiguration"
delegate="com.myplugin.first.launching.MyLaunchConfiguration"
modes="run, debug"
id="com.myplugin.first.launching.myConfiguration">
</launchConfigurationType>
</extension>
and I've created empty configuration delegate with required dependencies. Unfortunately I cannot launch a new eclipse application with my plugin because every time I get the following error:
java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.eclipse.osgi.storagemanager.StorageManager.updateTable(StorageManager.java:511) at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:708) at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1747) at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1764) at org.eclipse.osgi.storage.Storage.(Storage.java:124) at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:84) at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:75) at org.eclipse.osgi.launch.Equinox.(Equinox.java:31) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:297) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) at org.eclipse.equinox.launcher.Main.main(Main.java:1438) An error has occurred. See the log file null.
I have not found the log file with the error. What's wrong? What should I do?
Maybe somebody knows the problem.
Well! I,ve fixed the problem. I just created a new workspace and copied my project and config files to the workspace.
So the problem was in a broken workspace. I guess some workspace config file was corrupted. Anyway thank redoc for the idea.
这篇关于NumberFormatException on eclipse start的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!