-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Middlegen bug - java.lang.IllegalArgumentException
PostPosted: Thu Jan 11, 2007 1:31 pm 
Newbie

Joined: Thu Jan 11, 2007 1:19 pm
Posts: 1
I have 2 unique indexes on table A, column C.
CREATE UNIQUE INDEX UQ1_A ON A (UPPER(C)) TABLESPACE "INDEX1";
CREATE UNIQUE INDEX UQ2_A ON A (C) TABLESPACE "INDEX1";

In this case, I got the following exception.
However, if I remove the Functional Based Index, the error goes away.
Is this a known bug? Any workarounds?

Thanks
Glenn


[middlegen] java.lang.IllegalArgumentException: There is no column named SYS_NC00014$ in the table named A
[middlegen] at middlegen.DbTable.getColumn(DbTable.java:309)
[middlegen] at middlegen.MiddlegenPopulator.addColumns(MiddlegenPopulator.java:1012)
[middlegen] at middlegen.MiddlegenPopulator.populate(MiddlegenPopulator.java:217)
[middlegen] at middlegen.MiddlegenTask.execute(MiddlegenTask.java:432)
[middlegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[middlegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[middlegen] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[middlegen] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[middlegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[middlegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 9:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Hmmm... Oracle I assume.
This is the first time I have seen this issue but at times Oracle has been a problem in the past. There is some specialist code already for Oracle I would suggest you have a look at that area and see what you can do to detect this situation and ignore it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.