- This topic has 1 reply, 1 voice, and was last updated 15 years, 11 months ago by Dan.
-
AuthorPosts
-
DanMemberHi all, I know there have been numerious posts on this..but none of them seam to match the exact conditions I have.
I’m using mysql driver 5.1.7 myeclipseide 7.0
the .log spits this out when I attempt to generate the objects: (not sure..but I suspect last error is the one that matters). any pointers would be greatly appreciated.
!ENTRY org.eclipse.core.resources 4 2 2009-02-03 12:52:43.733
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.resources”.
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.jsdt.internal.compiler.ast.SwitchStatement.analyseCode(SwitchStatement.java:107)
at org.eclipse.wst.jsdt.internal.compiler.ast.Block.analyseCode(Block.java:43)
at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.analyseCode(IfStatement.java:110)
at org.eclipse.wst.jsdt.internal.compiler.ast.Block.analyseCode(Block.java:43)
at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.analyseCode(IfStatement.java:91)
at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration.java:92)
at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode(AbstractMethodDeclaration.java:113)
at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:162)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Compiler.java:591)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:355)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:325)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:168)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:262)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:58)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:291)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:199)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!ENTRY org.eclipse.core.resources 2 75 2009-02-03 12:52:43.767
!MESSAGE Errors during build.
!SUBENTRY 1 org.eclipse.wst.jsdt.core 2 75 2009-02-03 12:52:43.768
!MESSAGE Errors running builder ‘JavaScript Validator’ on project ‘borrownet’.
!SUBENTRY 1 org.eclipse.wst.jsdt.core 2 75 2009-02-03 12:52:43.768
!MESSAGE java.lang.NullPointerException encountered while running JavaScript Validator.
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.jsdt.internal.compiler.ast.SwitchStatement.analyseCode(SwitchStatement.java:107)
at org.eclipse.wst.jsdt.internal.compiler.ast.Block.analyseCode(Block.java:43)
at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.analyseCode(IfStatement.java:110)
at org.eclipse.wst.jsdt.internal.compiler.ast.Block.analyseCode(Block.java:43)
at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.analyseCode(IfStatement.java:91)
at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration.java:92)
at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode(AbstractMethodDeclaration.java:113)
at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:162)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Compiler.java:591)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:355)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:325)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:168)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:262)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:58)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:291)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:199)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!ENTRY org.eclipse.ui 4 0 2009-02-03 12:52:45.768
!MESSAGE Unable to create editor ID com.genuitec.eclipse.springframework.springconfigeditor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor’s class name was mistyped in plugin.xml.
!STACK 0
java.lang.NullPointerException
at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:207)
at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:232)
at org.eclipse.ui.part.WorkbenchPart.setInitializationData(WorkbenchPart.java:263)
at org.eclipse.ui.part.EditorPart.setInitializationData(EditorPart.java:276)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:251)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:259)
at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:233)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:846)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:606)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:403)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:381)
at org.eclipse.ui.internal.WorkbenchPage.findEditor(WorkbenchPage.java:2063)
at com.genuitec.eclipse.springhibernate.configuration.SpringBeansConfigFile.getXMLModelFromOpenEditors(SpringBeansConfigFile.java:129)
at com.genuitec.eclipse.springhibernate.configuration.SpringBeansConfigFile.configureModel(SpringBeansConfigFile.java:72)
at com.genuitec.eclipse.springhibernate.configuration.SpringBeansConfigFile.<init>(SpringBeansConfigFile.java:62)
at com.genuitec.eclipse.springhibernate.configuration.SpringBeansConfigFile.<init>(SpringBeansConfigFile.java:56)
at com.genuitec.eclipse.hibernate.wizards.MEDAOExporter.doStart(MEDAOExporter.java:155)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VAbstractExporter.start(VAbstractExporter.java:97)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:618)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:91)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:413)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!ENTRY org.eclipse.core.jobs 4 2 2009-02-03 12:52:45.770
!MESSAGE An internal error occurred during: “Generating Artifacts”.
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:355)
at org.eclipse.swt.widgets.Widget.checkParent(Widget.java:275)
at org.eclipse.swt.widgets.Widget.<init>(Widget.java:146)
at org.eclipse.swt.widgets.Control.<init>(Control.java:101)
at org.eclipse.swt.widgets.Scrollable.<init>(Scrollable.java:74)
at org.eclipse.swt.widgets.Composite.<init>(Composite.java:94)
at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:147)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:460)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:403)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:381)
at org.eclipse.ui.internal.WorkbenchPage.findEditor(WorkbenchPage.java:2063)
at com.genuitec.eclipse.springhibernate.configuration.SpringBeansConfigFile.getXMLModelFromOpenEditors(SpringBeansConfigFile.java:129)
at com.genuitec.eclipse.springhibernate.configuration.SpringBeansConfigFile.configureModel(SpringBeansConfigFile.java:72)
at com.genuitec.eclipse.springhibernate.configuration.SpringBeansConfigFile.<init>(SpringBeansConfigFile.java:62)
at com.genuitec.eclipse.springhibernate.configuration.SpringBeansConfigFile.<init>(SpringBeansConfigFile.java:56)
at com.genuitec.eclipse.hibernate.wizards.MEDAOExporter.doStart(MEDAOExporter.java:155)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VAbstractExporter.start(VAbstractExporter.java:97)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:618)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:91)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:413)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
DanMemberwell I went and created a new temp workspace, and was able to generate correctly.
I then went back to the original workspace, and found I was now also able generate them once again. (however the original project did not have any ‘history’ of the hibernate mapping..so I had to respecify every thing again..not a big deal).
Cheers
-
AuthorPosts