错误 NumberFormatException:输入字符串:“2.0”启动 Jdeveloper
Error NumberFormatException: For input string: "2.0" starting Jdeveloper
我有一个新的 VM,带有从 Oracle 网站下载的 Oracle 12c 12.2.1.1,在测试 Admin 和 SOA 服务器后,我安装了 BPM 并关闭了 VM。
现在,当我尝试启动 Jdeveloper 时出现此错误:
Oracle JDeveloper 12c Development Build 12.2.1.1.0
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:233)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:664)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:69)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37)
at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:84)
at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:167)
at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:138)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1346)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1163)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:225)
... 17 more
Caused by: java.lang.NumberFormatException: For input string: "2.0"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.eclipse.osgi.internal.resolver.StateBuilder.createBundleDescription(StateBuilder.java:61)
at org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createBundleDescription(StateObjectFactoryImpl.java:33)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.readStateData(BaseStorage.java:853)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.getStateManager(BaseStorage.java:799)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.getState(BaseAdaptor.java:387)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.frameworkStart(BaseStorage.java:923)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.frameworkStart(BaseAdaptor.java:250)
at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:60)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 19 more
我在网上搜索并找到这个 link 所以我跟踪并删除了 <HOME>/.jdeveloper/system12.1.3.0.41.140521.1008/system_cache
文件夹以及 12.2.1 和 12.2.1.1 的文件夹但没有成功。有什么想法吗?
提前致谢!!
我在使用 OTN 的预构建 VM 时遇到了同样的问题。
我先清除了所有 <HOME>/.jdeveloper/system12.*/system_cache
个文件夹:没有效果。完全删除所有现有 <HOME>/.jdeveloper/system12.*
文件夹:也没有效果。
我还删除了所有 <HOME>/.jdeveloper/12.*
文件夹并重新启动了 JDeveloper。
仍然是同样的错误。
但现在创建了一个文件夹:<HOME>/.jdeveloper/12.2.1.1.0
和一个 product.conf
文件。
在此文件中,SetJavaHome
被注释掉了。似乎默认 JDK 是问题的根源。我把它改成了SetJavaHome /usr/java/jdk1.8.0_51
。保存文件并重新启动 JDeveloper,现在它按预期启动了。
我昨天遇到了类似的问题。以下步骤解决了我的问题。
感谢 Henk Jan 早些时候提供的步骤并帮助我解决了问题。
在/.jdeveloper/.[=10=下清除system*folder/directory后没有解决问题]
我清除了整个 /.jdeveloper/ 目录。
我没有更改 product.conf 文件中的 SetJavaHome 来自 /.jdeveloper/12.2.1.3/
重新启动 JDeveloper 并按预期启动。
我有一个新的 VM,带有从 Oracle 网站下载的 Oracle 12c 12.2.1.1,在测试 Admin 和 SOA 服务器后,我安装了 BPM 并关闭了 VM。
现在,当我尝试启动 Jdeveloper 时出现此错误:
Oracle JDeveloper 12c Development Build 12.2.1.1.0
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:233)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:664)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:69)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37)
at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:84)
at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:167)
at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:138)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1346)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1163)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:225)
... 17 more
Caused by: java.lang.NumberFormatException: For input string: "2.0"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.eclipse.osgi.internal.resolver.StateBuilder.createBundleDescription(StateBuilder.java:61)
at org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createBundleDescription(StateObjectFactoryImpl.java:33)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.readStateData(BaseStorage.java:853)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.getStateManager(BaseStorage.java:799)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.getState(BaseAdaptor.java:387)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.frameworkStart(BaseStorage.java:923)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.frameworkStart(BaseAdaptor.java:250)
at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:60)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 19 more
我在网上搜索并找到这个 link 所以我跟踪并删除了 <HOME>/.jdeveloper/system12.1.3.0.41.140521.1008/system_cache
文件夹以及 12.2.1 和 12.2.1.1 的文件夹但没有成功。有什么想法吗?
提前致谢!!
我在使用 OTN 的预构建 VM 时遇到了同样的问题。
我先清除了所有 <HOME>/.jdeveloper/system12.*/system_cache
个文件夹:没有效果。完全删除所有现有 <HOME>/.jdeveloper/system12.*
文件夹:也没有效果。
我还删除了所有 <HOME>/.jdeveloper/12.*
文件夹并重新启动了 JDeveloper。
仍然是同样的错误。
但现在创建了一个文件夹:<HOME>/.jdeveloper/12.2.1.1.0
和一个 product.conf
文件。
在此文件中,SetJavaHome
被注释掉了。似乎默认 JDK 是问题的根源。我把它改成了SetJavaHome /usr/java/jdk1.8.0_51
。保存文件并重新启动 JDeveloper,现在它按预期启动了。
我昨天遇到了类似的问题。以下步骤解决了我的问题。
感谢 Henk Jan 早些时候提供的步骤并帮助我解决了问题。
在/.jdeveloper/.[=10=下清除system*folder/directory后没有解决问题]
我清除了整个 /.jdeveloper/ 目录。
我没有更改 product.conf 文件中的 SetJavaHome 来自 /.jdeveloper/12.2.1.3/
重新启动 JDeveloper 并按预期启动。