This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215378 - Hibernate Reverse Engineering - Unable to Select Configuration
Summary: Hibernate Reverse Engineering - Unable to Select Configuration
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 7.1.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-10 19:37 UTC by don.collett
Modified: 2012-09-17 10:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Picture of Broken Reverse Engineering Configuration File Selection Pull Down (4.86 MB, image/png)
2012-07-10 19:37 UTC, don.collett
Details
Message Log File (61.02 KB, text/plain)
2012-09-10 13:08 UTC, don.collett
Details
Message Log File (70.70 KB, text/plain)
2012-09-10 13:10 UTC, don.collett
Details
Message Log File (53.68 KB, text/plain)
2012-09-10 13:11 UTC, don.collett
Details
Sample Project (14.52 KB, application/x-zip-compressed)
2012-09-11 13:20 UTC, don.collett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description don.collett 2012-07-10 19:37:00 UTC
Created attachment 121911 [details]
Picture of Broken Reverse Engineering Configuration File Selection Pull Down

Despite having a "hibernate.cfg.xml" file, the options to select configuration when using the New Hibernate Reverse Engineering Wizard, on the second panel, the pull down to select Configuration File has nothing in it.  Even creating multiple copies of the "hibernate.cfg.xml" files (i.e. hibernate.cfg1.xml, hibernate.cfg2.xml, etc.) does not make any difference.  None of them show up on the pull down.  

This seems to be a progressive problem, working consistently at first then it starts requiring multiple tries to get a pull down with configuration files in it, then finally its DOA and never gives the option to select configuration files at all.  Once it becomes permanently broken, nothing will fix it, even re-installing Netbeans from scratch.
Comment 1 Jiri Rechtacek 2012-07-10 20:38:18 UTC
Sergey, I guess it belongs to Hibernate comp. rather than DB. If I'm wrong, assign back.

Don, could you reproduce your problem with Release Candidate upcoming NetBeans 7.2 - http://netbeans.org/community/releases/72/ and let us know if the problem is still there? Thanks
Comment 2 don.collett 2012-07-11 13:32:19 UTC
Tried the new Release Candidate and got the same error.  I'm able to create a configuration file "hibernate.cfg.xml" from the database connection but am unable to select that configuration file in the reverse engineering panel nor will it select on the POJO generation panel.  On both, the pull down menu is empty and gives nothing to select.
Comment 3 Petr Jiricka 2012-07-11 14:11:01 UTC
Sounds like a serious problem, though not a release stopper.
Comment 4 Sergey Petrov 2012-09-04 21:34:27 UTC
please attach message.log, can you reproduce with fresh project or with some specific only?
Comment 5 don.collett 2012-09-05 13:52:56 UTC
It happens with all projects, new or existing.  Currently my ability to reverse engineer the database is completely DOA.

Ran a search of the entire hard drive and found no occurances of a "message.log" file.  There's nothing on the IDE's output window either.  

Simply stuck looking a pull down menus on the reverse engineer XML file wizard tool with nothing in them and unable to go any further.
Comment 6 Sergey Petrov 2012-09-07 08:56:24 UTC
what os do you use? 
for example on win7 path to message.log will be
DRIVELETTER:\Users\YourAccountName\AppData\Roaming\NetBeans\7.2\var\log\message.log for 7.2
Comment 7 Sergey Petrov 2012-09-07 10:04:18 UTC
hibernate.cfg may not be recognized, can you attach sample project?
Comment 8 Sergey Petrov 2012-09-10 10:36:14 UTC
please reopen with either message.log or project or better both as I can't reproduce the issue yet and may be these details will help.
Comment 9 don.collett 2012-09-10 13:08:43 UTC
Created attachment 124103 [details]
Message Log File
Comment 10 don.collett 2012-09-10 13:10:03 UTC
Created attachment 124104 [details]
Message Log File
Comment 11 don.collett 2012-09-10 13:11:22 UTC
Created attachment 124105 [details]
Message Log File
Comment 12 don.collett 2012-09-10 13:13:29 UTC
Found three log files at the location specified.  Attached them all to the ticket.
Comment 13 Sergey Petrov 2012-09-10 13:14:07 UTC
thanks, are all logs related?
I see  quite a lot of exceptions but at first all looks like unrelated  but may block some project properties initialization. can you attach some sample project with the problem also?
Comment 14 Sergey Petrov 2012-09-11 09:53:58 UTC
Is it reproducible with fresh project(what project type?) or only with specific some? Is there any steps from project creation up to issue arise?
Comment 15 Sergey Petrov 2012-09-11 09:57:03 UTC
Also I see attached files are from September 5 and 7, was there any attempt to reproduce the issue at this time?
Comment 16 don.collett 2012-09-11 13:20:27 UTC
Created attachment 124166 [details]
Sample Project

Added a sample project that exhibits the problem each time I attempt to create a reverse engineer XML configuration file.  Unable to create it because the pull down to select the hibernate configuration has no entries in it even though the hibernate XML configuration file exists.  I had to mask out the userid and password due to corporate security concerns.
Comment 17 don.collett 2012-09-11 13:26:06 UTC
The problem is reproducible every time on all projects I attempt to use Hibernate with while running Windows 7.  Might be a larger problem as I'm unable to create enterprise application projects as well.  

I have my laptop dual booted Windows 7 and Fedora 17 Linux.  Both operating systems are the 64 bit versions.  Laptop maker is Lenovo and model is W520.  

Seeing this problem under Windows 7 but on Fedora 17, Netbeans works perfectly.  Using Linux as a workaround.
Comment 18 Sergey Petrov 2012-09-11 13:33:47 UTC
>Might be a larger problem as I'm
unable to create enterprise application projects as well. 

yes, may be, but hibernate is not part of enterprise functionality.
unfortunately can't reproduce with attached project, may be win/jdk7/64 bit specific, will try a bit later.
Comment 19 Sergey Petrov 2012-09-13 18:38:50 UTC
Can you try the same with clean netbeans user dir, either rename temporary
C:\Users\...\AppData\Roaming\NetBeans\7.2
and
C:\Users\...\AppData\Local\NetBeans\Cache\7.2
or use command line option and attach fresh message.log

ask today another user and he said he is using jdk7/64bit/win7 and have no problem so need to find the reason somehow else.
Comment 20 don.collett 2012-09-14 14:02:23 UTC
Will give it a try today and let you know.
Comment 21 don.collett 2012-09-14 17:19:41 UTC
A new user space seems to be the solution.  The pulldown menus are now working and I'm able to reverse engineer the database.  

So it looks like something wrong with importing/upgrading user space.

Can continue investigating this if you want, but I can get back up and running by creating all my projects fresh by standing them up as projects with existing sources.  I'll probably avoid updating/upgrading user space in the future as new versions of Netbeans rolls out.
Comment 22 Sergey Petrov 2012-09-14 17:27:52 UTC
if new space works for you it's ok, and it may be some "import" issue instead of hibernate (or only hibernate) or enterprise. in this case it's required to evaluate either you settings and try to find what is wrong but in real it's much better to reproduce import from the beginning to see if some settings was good but are corrupted with update
Comment 23 don.collett 2012-09-14 18:53:44 UTC
Good deal.  Let me know if you need me to try something else or supply more files.  If not, guess we can change the status of this bug to resolved.
Comment 24 Sergey Petrov 2012-09-14 19:36:50 UTC
yes, it may not be really resolved but all details may not be recoverable and incomplete/invalide in his case as final status, but you can try to zip your netbeans homedir (7.2 folder) and attach to the issue as one more attempt if there is nothing confidential.
Comment 25 Sergey Petrov 2012-09-17 10:02:29 UTC
>imcomplete as need much more details to get root cause and also workaround seems easy