jpa generation results in no files

I am new to IntelliJ so it may be that I am just not setting something correctly.  I am attempting to generate persistence entities by database schema.  I am selecting a subset of tables from my database.  I have attached a screen shot so you can see what selections I have made.  I click OK and it asks if it should generate the OR mappings.  I click Yes.  The window closes and there are no new files anywhere.

5 comments
Comment actions Permalink

It seems the file was not attached.  Here it is.



Attachment(s):
JPASelections.png
0
Comment actions Permalink

Hi.

Works for me after a brief test. Please, check idea.log (main menu / Help / "Reveal Log in Explorer" or http://devnet.jetbrains.net/docs/DOC-181) for exceptions.

Thank you,
Alexander.

0
Comment actions Permalink

I had a coworker run the routine in their environment and it worked so thanks for the direction as to where to look for the log files.  When I need to do this again, I will refer
to those logs and the document you listed here.

0
Comment actions Permalink

I needed to build a script again and had the same result, no file was generated.  I have opened the log file and do not know what I am looking at.  Can you help me
understand where to look to fix my issue from the following?


2012-06-01 14:22:18,779 [14418741]  ERROR - sistence.PersistenceHelperImpl - This template did not produce a Java class or an interface
package com.rhs.rpavis.survey.entity;/*
* [2012] - Resources Global Professionals
* All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Resources Global Professionals and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Resources Global Professionals
* and its suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Resources Global Professionals.
*
* $Id: $
* $Rev: $:
* $Author:  $:
* $Date: $:
public class ResponseSetQuestionLink {
}

com.intellij.util.IncorrectOperationException: This template did not produce a Java class or an interface
package com.rhs.rpavis.survey.entity;/*
* [2012] - Resources Global Professionals
* All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Resources Global Professionals and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Resources Global Professionals
* and its suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Resources Global Professionals.
*
* $Id: $
* $Rev: $:
* $Author:  $:
* $Date: $:
public class ResponseSetQuestionLink {
}
at com.intellij.ide.fileTemplates.JavaCreateFromTemplateHandler.createClassOrInterface(JavaCreateFromTemplateHandler.java:48)
at com.intellij.ide.fileTemplates.JavaCreateFromTemplateHandler.createFromTemplate(JavaCreateFromTemplateHandler.java:103)
at com.intellij.ide.fileTemplates.FileTemplateUtil$5$1.run(FileTemplateUtil.java:311)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
at com.intellij.ide.fileTemplates.FileTemplateUtil$5.run(FileTemplateUtil.java:308)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:110)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:93)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:81)
at com.intellij.ide.fileTemplates.FileTemplateUtil.createFromTemplate(FileTemplateUtil.java:306)
at com.intellij.ide.fileTemplates.FileTemplateUtil.createFromTemplate(FileTemplateUtil.java:259)
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.a(JavaDirectoryServiceImpl.java:132)
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.a(JavaDirectoryServiceImpl.java:112)
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.createClass(JavaDirectoryServiceImpl.java:61)
at com.intellij.jpa.model.manipulators.MappingsManipulatorBase.getOrCreateAnnotatedClass(MappingsManipulatorBase.java:52)
at com.intellij.jpa.model.manipulators.MappingsManipulatorBase.addPersistentObject(MappingsManipulatorBase.java:94)
at com.intellij.jpa.model.manipulators.MappingsManipulatorBase.addPersistentObject(MappingsManipulatorBase.java:108)
at com.intellij.jpa.model.manipulators.JpaAnnoMappingsManipulator.addEntity(JpaAnnoMappingsManipulator.java:54)
at com.intellij.jpa.model.manipulators.JpaAnnoMappingsManipulator.addEntity(JpaAnnoMappingsManipulator.java:32)
at com.intellij.jpa.generation.DatabaseSchemaImporter$4.run(DatabaseSchemaImporter.java:275)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
at com.intellij.persistence.PersistenceHelperImpl$2.run(PersistenceHelperImpl.java:149)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:162)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:764)
at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:198)
at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:661)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.a(ProgressManagerImpl.java:285)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.run(ProgressManagerImpl.java:428)
at com.intellij.persistence.PersistenceHelperImpl.runCompositeWriteCommandAction(PersistenceHelperImpl.java:97)
at com.intellij.jpa.generation.DatabaseSchemaImporter.generate(DatabaseSchemaImporter.java:151)
at com.intellij.jpa.actions.GenerateJpaMappingAction$1.run(GenerateJpaMappingAction.java:49)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:92)
at com.intellij.jpa.actions.GenerateJpaMappingAction.runGenerateAction(GenerateJpaMappingAction.java:46)
at com.intellij.jpa.actions.GenerateJpaMappingAction.actionPerformed(GenerateJpaMappingAction.java:39)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:260)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:891)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:114)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:226)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:100)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
at java.awt.Component.processMouseEvent(Component.java:6290)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6055)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4653)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2482)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:621)
at java.awt.EventQueue$2.run(EventQueue.java:619)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-06-01 14:22:18,790 [14418752]  ERROR - sistence.PersistenceHelperImpl - IntelliJ IDEA 11.1.2  Build #IU-117.418
2012-06-01 14:22:18,790 [14418752]  ERROR - sistence.PersistenceHelperImpl - JDK: 1.6.0_31
2012-06-01 14:22:18,790 [14418752]  ERROR - sistence.PersistenceHelperImpl - VM: Java HotSpot(TM) Client VM
2012-06-01 14:22:18,790 [14418752]  ERROR - sistence.PersistenceHelperImpl - Vendor: Sun Microsystems Inc.
2012-06-01 14:22:18,790 [14418752]  ERROR - sistence.PersistenceHelperImpl - OS: Windows 7
2012-06-01 14:22:18,791 [14418753]  ERROR - sistence.PersistenceHelperImpl - Current Command: Generate Persistence Mappings By Database Schema
2012-06-01 14:22:18,793 [14418755]  ERROR - pplication.impl.LaterInvocator - This template did not produce a Java class or an interface
package com.rhs.rpavis.survey.entity;/*
* [2012] - Resources Global Professionals
* All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Resources Global Professionals and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Resources Global Professionals
* and its suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Resources Global Professionals.
*
* $Id: $
* $Rev: $:
* $Author:  $:
* $Date: $:
public class ResponseSetQuestionLink {
}

com.intellij.util.IncorrectOperationException: This template did not produce a Java class or an interface
package com.rhs.rpavis.survey.entity;/*
* [2012] - Resources Global Professionals
* All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Resources Global Professionals and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Resources Global Professionals
* and its suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Resources Global Professionals.
*
* $Id: $
* $Rev: $:
* $Author:  $:
* $Date: $:
public class ResponseSetQuestionLink {
}
at com.intellij.ide.fileTemplates.JavaCreateFromTemplateHandler.createClassOrInterface(JavaCreateFromTemplateHandler.java:48)
at com.intellij.ide.fileTemplates.JavaCreateFromTemplateHandler.createFromTemplate(JavaCreateFromTemplateHandler.java:103)
at com.intellij.ide.fileTemplates.FileTemplateUtil$5$1.run(FileTemplateUtil.java:311)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
at com.intellij.ide.fileTemplates.FileTemplateUtil$5.run(FileTemplateUtil.java:308)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:110)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:93)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:81)
at com.intellij.ide.fileTemplates.FileTemplateUtil.createFromTemplate(FileTemplateUtil.java:306)
at com.intellij.ide.fileTemplates.FileTemplateUtil.createFromTemplate(FileTemplateUtil.java:259)
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.a(JavaDirectoryServiceImpl.java:132)
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.a(JavaDirectoryServiceImpl.java:112)
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.createClass(JavaDirectoryServiceImpl.java:61)
at com.intellij.jpa.model.manipulators.MappingsManipulatorBase.getOrCreateAnnotatedClass(MappingsManipulatorBase.java:52)
at com.intellij.jpa.model.manipulators.MappingsManipulatorBase.addPersistentObject(MappingsManipulatorBase.java:94)
at com.intellij.jpa.model.manipulators.MappingsManipulatorBase.addPersistentObject(MappingsManipulatorBase.java:108)
at com.intellij.jpa.model.manipulators.JpaAnnoMappingsManipulator.addEntity(JpaAnnoMappingsManipulator.java:54)
at com.intellij.jpa.model.manipulators.JpaAnnoMappingsManipulator.addEntity(JpaAnnoMappingsManipulator.java:32)
at com.intellij.jpa.generation.DatabaseSchemaImporter$4.run(DatabaseSchemaImporter.java:275)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
at com.intellij.persistence.PersistenceHelperImpl$2.run(PersistenceHelperImpl.java:149)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:162)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:764)
at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:198)
at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:661)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.a(ProgressManagerImpl.java:285)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.run(ProgressManagerImpl.java:428)
at com.intellij.persistence.PersistenceHelperImpl.runCompositeWriteCommandAction(PersistenceHelperImpl.java:97)
at com.intellij.jpa.generation.DatabaseSchemaImporter.generate(DatabaseSchemaImporter.java:151)
at com.intellij.jpa.actions.GenerateJpaMappingAction$1.run(GenerateJpaMappingAction.java:49)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:92)
at com.intellij.jpa.actions.GenerateJpaMappingAction.runGenerateAction(GenerateJpaMappingAction.java:46)
at com.intellij.jpa.actions.GenerateJpaMappingAction.actionPerformed(GenerateJpaMappingAction.java:39)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:260)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:891)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:114)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:226)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:100)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
at java.awt.Component.processMouseEvent(Component.java:6290)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6055)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4653)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2482)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:621)
at java.awt.EventQueue$2.run(EventQueue.java:619)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-06-01 14:22:18,794 [14418756]  ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 11.1.2  Build #IU-117.418
2012-06-01 14:22:18,794 [14418756]  ERROR - pplication.impl.LaterInvocator - JDK: 1.6.0_31
2012-06-01 14:22:18,794 [14418756]  ERROR - pplication.impl.LaterInvocator - VM: Java HotSpot(TM) Client VM
2012-06-01 14:22:18,794 [14418756]  ERROR - pplication.impl.LaterInvocator - Vendor: Sun Microsystems Inc.
2012-06-01 14:22:18,794 [14418756]  ERROR - pplication.impl.LaterInvocator - OS: Windows 7

From what we can tell there is no difference between the way we have set up my environment and my coworkers where this runs fine and I have no idea where to even begin looking to track down the issue of why this doesn't work for me.

0
Comment actions Permalink

Your file template contains an unclosed comment. Please open Settings | File Templates and make sure that all file templates are correctly defined.

0

Please sign in to leave a comment.