Re: Error with UNSPECIFIED column

David R Robison <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Here is the postgres description of the table that it is having trouble with:

            Table "public.row_status_type"
      Column      |          Type          | Modifiers 
------------------+------------------------+-----------
 rstat_type_cod   | smallint               | not null
 name             | character varying(254) | not null
 gmt_last_updated | character varying(29)  | 
 last_upd_db_site | integer                | 
 last_upd_db_id   | integer                | 
 rstat_type_code  | smallint               | 
Indexes: mim_con_012_pk primary key btree (rstat_type_cod)

David Robison

Quoting David R Robison <[email protected]>:

> Hello, I new to Middlegen. I trying to run middlegen against a
> postgresql
> database. When I run it against one of my tables, I get the following
> error:
> 
> [middlegen] java.lang.IllegalArgumentException: There is no column
> named
> UNSPECIFIED in the table named row_status_type
> [middlegen] 	at middlegen.DbTable.getColumn(DbTable.java:304)
> [middlegen] 	at
> middlegen.MiddlegenPopulator.addCrossref(MiddlegenPopulator.java:635)
> [middlegen] 	at
> middlegen.MiddlegenPopulator.addRelations(MiddlegenPopulator.java:375)
> [middlegen] 	at
> middlegen.MiddlegenPopulator.populate(MiddlegenPopulator.java:257)
> [middlegen] 	at
> middlegen.MiddlegenTask.execute(MiddlegenTask.java:403)
> [middlegen] 	at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
> [middlegen] 	at org.apache.tools.ant.Task.perform(Task.java:341)
> [middlegen] 	at org.apache.tools.ant.Target.execute(Target.java:309)
> [middlegen] 	at
> org.apache.tools.ant.Target.performTasks(Target.java:336)
> [middlegen] 	at
> org.apache.tools.ant.Project.executeTarget(Project.java:1339)
> [middlegen] 	at
> org.apache.tools.ant.Project.executeTargets(Project.java:1255)
> [middlegen] 	at org.apache.tools.ant.Main.runBuild(Main.java:609)
> [middlegen] 	at org.apache.tools.ant.Main.start(Main.java:196)
> [middlegen] 	at org.apache.tools.ant.Main.main(Main.java:235)
> 
> Any ideas what the problem might be?
> Thanks,
> David Robison
> 
> 
> -------------------------------------------------------
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access your computer from
> any Web browser or wireless device. Click here to Try it Free!
> https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
> _______________________________________________
> middlegen-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> 


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.