Hibernate revenge problem

Answered

I currently attempting to use the hibernate support in 2017.3.3 to reverse an SqlServer2014 database of some 300+ tables.  I can reverse a 30 or so tables at a time but if I attempt to reverse the entire database Intellij will give up after the first 30 or so tables. 

No exception messages are shown so I'm unable to debug the problem or isolate specific tables that may be causing the problem.  I really need to reverse the entire database in a single pass in order to create the required mapping .xml files.

I know that a number of the tables have columns named 'NATIVE' and Intellij will quite rightlt object to mapping these to a property named 'native'. I can fix that problem by renaming the properties to 'nativex' but IntelliJ still refuses to complete the reveng task.

Any assistance would be f great help - is there a log I can use to debug the problem?

0
3 comments
Avatar
Permanently deleted user

OK, So I've been over the log files and am rapidly coming to the conclusion that this is an IntelliJ bug.

The specific error is:

2018-02-07 20:41:52,668 [ 680358] ERROR - .file.JavaDirectoryServiceImpl - Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:756)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:705)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:688)
at com.intellij.psi.stubs.StubIndexImpl.a(StubIndexImpl.java:342)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:319)
at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:145)

 

and 

 

2018-02-07 20:41:52,672 [ 680362] ERROR - sistence.PersistenceHelperImpl - @NotNull method com/intellij/psi/impl/file/JavaDirectoryServiceImpl.createClass must not return null
java.lang.IllegalStateException: @NotNull method com/intellij/psi/impl/file/JavaDirectoryServiceImpl.createClass must not return null
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.$$$reportNull$$$0(JavaDirectoryServiceImpl.java)
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.createClass(JavaDirectoryServiceImpl.java:62)
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.hibernate.model.manipulators.HbmMappingsManipulator.addEntity(HbmMappingsManipulator.java:84)
at com.intellij.jpa.generation.DatabaseSchemaImporter.lambda$buildEntityMappings$3(DatabaseSchemaImporter.java:271)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1003)
at com.intellij.persistence.PersistenceHelperImpl.lambda$runInner$0(PersistenceHelperImpl.java:120)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:158)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:424)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)

 

Not sure where to go from here...

 

??

 

0

Please sign in to leave a comment.