简体   繁体   English

使用适用于Eclipse Luna的Oracle Weblogic Server插件启动错误

[英]Start up errors with Oracle Weblogic Server plugin for Eclipse Luna

We have an existing project which we built using Eclipse Indigo and the relevant weblogic server plugin. 我们有一个使用Eclipse Indigo和相关的weblogic服务器插件构建的现有项目。 This was done four years back and we are trying to migrate to the Eclipse Luna. 这是四年前完成的,我们正在尝试迁移到Eclipse Luna。 The project imports and everything works fine until I add the weblogic server tools plugin for Eclipse Luna or a lower version and restart eclipse. 该项目将导入,并且一切正常,直到我为Eclipse Luna或更低版本添加了weblogic服务器工具插件,然后重新启动eclipse。 It starts complaining "An internal error occurred during" 它开始抱怨“在发生内部错误”

  • Building Workspace 建筑工作区
  • Initializing Java Tooling 初始化Java工具
  • Validating project 验证项目
  • AppXray Indexing (This I could fix by disabling from Windows->Preferences->Oracle->AppXray) AppXray索引编制(我可以通过从Windows-> Preferences-> Oracle-> AppXray禁用来解决此问题)

The resulting application EAR is deployed on Oracle Weblogic Server 10gR3. 生成的应用程序EAR部署在Oracle Weblogic Server 10gR3上。 Any help with resolving the issues will be highly appreciated. 解决问题的任何帮助将不胜感激。 I know the problem is with the Oracle Weblogic Server tool plugin for Eclipse Luna as the moment I remove it I do not see any errors. 我知道问题出在Eclipse Luna的Oracle Weblogic Server工具插件上,当我删除它时,我没有看到任何错误。 I have tried cleaning up .metadata and then relaunching eclipse but still the error starts ocurring. 我曾尝试清理.metadata,然后重新启动Eclipse,但仍然开始出现错误。

UPDATE : Below is the exception stacktrace that I found from the .log file within .metadata. 更新 :以下是我在.metadata中的.log文件中发现的异常stacktrace。 I am not able to understand anything from the log. 我无法从日志中了解任何信息。 Can anyone help? 有人可以帮忙吗?

!ENTRY org.eclipse.core.jobs 4 2 2015-04-29 07:07:17.086
!MESSAGE An internal error occurred during: "Initializing Java Tooling".
!STACK 0
java.lang.RuntimeException: IModuleReferenceSystemLibrary.ResolvedPath:     ResolvedPathDerivedValueService.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at     org.eclipse.sapphire.DerivedValueService.value(DerivedValueService.java:34)
at org.eclipse.sapphire.Value.refreshContent(Value.java:119)
at org.eclipse.sapphire.Value.refreshContent(Value.java:83)
at org.eclipse.sapphire.Value.text(Value.java:260)
at org.eclipse.sapphire.Value.text(Value.java:253)
at oracle.eclipse.tools.weblogic.syslib.internal.SystemLibrariesContainerImpl.createContainer(SystemLibrariesContainerImpl.java:200)
at oracle.eclipse.tools.weblogic.syslib.internal.SystemLibrariesContainerImpl$Initializer.initialize(SystemLibrariesContainerImpl.java:278)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2902)
at org.eclipse.jdt.internal.core.JavaModelManager$9.run(JavaModelManager.java:2808)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2848)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1932)
at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:4016)
at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.RuntimeException: IModuleReferenceSystemLibrary.ModuleId: PossibleValuesValidationService.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.services.ValidationService.validation(ValidationService.java:49)
at org.eclipse.sapphire.Property.refreshValidation(Property.java:254)
at org.eclipse.sapphire.Property.validation(Property.java:476)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleReferenceSystemLibraryServices$ResolvedPathDerivedValueService.compute(ModuleReferenceSystemLibraryServices.java:74)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleReferenceSystemLibraryServices$ResolvedPathDerivedValueService.compute(ModuleReferenceSystemLibraryServices.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 16 more
Caused by: java.lang.RuntimeException: IModuleReferenceSystemLibrary.ModuleId: ModuleIdValuesProvider.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.PossibleValuesService.values(PossibleValuesService.java:77)
at org.eclipse.sapphire.services.internal.PossibleValuesValidationService.compute(PossibleValuesValidationService.java:57)
at org.eclipse.sapphire.services.internal.PossibleValuesValidationService.compute(PossibleValuesValidationService.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 23 more
Caused by: java.lang.NullPointerException
at oracle.eclipse.tools.common.util.DomUtil.elements(DomUtil.java:152)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.parseFeatureXmlFile(WebLogicServerInstall.java:490)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.loadModulesRegistry(WebLogicServerInstall.java:477)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.getModules(WebLogicServerInstall.java:394)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleIdValuesProvider.compute(ModuleIdValuesProvider.java:22)
at org.eclipse.sapphire.PossibleValuesService.compute(PossibleValuesService.java:93)
at org.eclipse.sapphire.PossibleValuesService.compute(PossibleValuesService.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 28 more

!ENTRY org.eclipse.ui.workbench 4 2 2015-04-29 07:07:17.274
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.RuntimeException: IModuleReferenceSystemLibrary.ResolvedPath: ResolvedPathDerivedValueService.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.DerivedValueService.value(DerivedValueService.java:34)
at org.eclipse.sapphire.Value.refreshContent(Value.java:119)
at org.eclipse.sapphire.Value.refreshContent(Value.java:83)
at org.eclipse.sapphire.Value.text(Value.java:260)
at org.eclipse.sapphire.Value.text(Value.java:253)
at oracle.eclipse.tools.weblogic.syslib.internal.SystemLibrariesContainerImpl.createContainer(SystemLibrariesContainerImpl.java:200)
at oracle.eclipse.tools.weblogic.syslib.internal.SystemLibrariesContainerImpl$Initializer.initialize(SystemLibrariesContainerImpl.java:278)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2902)
at org.eclipse.jdt.internal.core.JavaModelManager$9.run(JavaModelManager.java:2808)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2848)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1932)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:3247)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2693)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2857)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1962)
at org.eclipse.jdt.internal.core.JavaProject.isOnClasspath(JavaProject.java:2240)
at org.eclipse.jdt.internal.ui.BuildpathIndicatorLabelDecorator.getOverlay(BuildpathIndicatorLabelDecorator.java:48)
at org.eclipse.jdt.internal.ui.BuildpathIndicatorLabelDecorator.decorate(BuildpathIndicatorLabelDecorator.java:35)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:273)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:83)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:367)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:349)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:372)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:332)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.RuntimeException: IModuleReferenceSystemLibrary.ModuleId: PossibleValuesValidationService.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.services.ValidationService.validation(ValidationService.java:49)
at org.eclipse.sapphire.Property.refreshValidation(Property.java:254)
at org.eclipse.sapphire.Property.validation(Property.java:476)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleReferenceSystemLibraryServices$ResolvedPathDerivedValueService.compute(ModuleReferenceSystemLibraryServices.java:74)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleReferenceSystemLibraryServices$ResolvedPathDerivedValueService.compute(ModuleReferenceSystemLibraryServices.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 28 more
Caused by: java.lang.RuntimeException: IModuleReferenceSystemLibrary.ModuleId: ModuleIdValuesProvider.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.PossibleValuesService.values(PossibleValuesService.java:77)
at org.eclipse.sapphire.services.internal.PossibleValuesValidationService.compute(PossibleValuesValidationService.java:57)
at org.eclipse.sapphire.services.internal.PossibleValuesValidationService.compute(PossibleValuesValidationService.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 35 more
Caused by: java.lang.NullPointerException
at oracle.eclipse.tools.common.util.DomUtil.elements(DomUtil.java:152)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.parseFeatureXmlFile(WebLogicServerInstall.java:490)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.loadModulesRegistry(WebLogicServerInstall.java:477)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.getModules(WebLogicServerInstall.java:394)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleIdValuesProvider.compute(ModuleIdValuesProvider.java:22)
at org.eclipse.sapphire.PossibleValuesService.compute(PossibleValuesService.java:93)
at org.eclipse.sapphire.PossibleValuesService.compute(PossibleValuesService.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 40 more

After experiencing this problem on our team I thought I would post the solution we found. 在我们的团队遇到这个问题后,我想我应该发布我们找到的解决方案。

This occurred when we moved from a Luna based IDE to the Mars SR1 release. 当我们从基于Luna的IDE迁移到Mars SR1版本时,就会发生这种情况。 We tracked it down to a file that was in source control. 我们将其追溯到源代码管理中的文件。

.settings/oracle.eclipse.tools.weblogic.syslib.xml

Once deleted eclipse would start happily, and we were good to go. 一旦删除,日食将很高兴地开始,我们很乐意去。 One developer tracked the issue down to a single line inside the file. 一位开发人员将问题跟踪到文件内的一行。

<module id="javax.persistence" javadoc="http://java.sun.com/javaee/5/docs/api"/>

If that single <module> line is commented out the eclipse oepe error goes away. 如果该单个<module>行被注释掉,则Eclipse oepe错误消失了。 FYI, you won't see this error when importing the project, just on every restart after the project has been pulled down. 仅供参考,在导入项目时,仅在项目被拉下后每次重新启动时,您都不会看到此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM