Kodo 3.0.1 and Postgres 7.4

I upgraded my development database to Postgres 7.4 and now I'm getting the
following error:
org.postgresql.util.PSQLException: The column name FKTABLE_SCHEM not found.
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
at kodo.jdbc.schema.LazySchemaFactory.findTable(LazySchemaFactory.java:150)
at
kodo.jdbc.meta.BaseClassMapping.fromMappingInfo(BaseClassMapping.java:148)
at
kodo.jdbc.meta.RuntimeMappingProvider.getMapping(RuntimeMappingProvider.java
:56)
at
kodo.jdbc.meta.MappingRepository.getMappingInternal(MappingRepository.java:3
42)
at kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:297)
at kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:249)
at kodo.jdbc.meta.MappingRepository.getMetaData(MappingRepository.java:237)
at
kodo.runtime.PersistenceManagerImpl.newStateManager(PersistenceManagerImpl.j
ava:1387)
at
kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.jav
a:1351)
at
kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.jav
a:1294)
at net.sundog.jdo.JDOUtil.findByPrimaryKey(JDOUtil.java:187)
I'm using the newest Postgres JDBC driver, and the logging tells me:
Using dictionary class "kodo.jdbc.sql.PostgresDictionary" (PostgreSQL 7.4
,PostgreSQL Native Driver PostgreSQL 7.4.1 JDBC3 with SSL (build 210))
[catalogSeparator=                                     .
catalogTerm=                                          database
databaseProductName=                                  PostgreSQL
databaseProductVersion=                               7.4
driverName=                                           PostgreSQL Native
Driver
driverVersion=                                        PostgreSQL 7.4.1 JDBC3
with SSL (build 210)
Right before the error, the following gets sent to the logging system:
""INFO  [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Reading column information for table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "id_i" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "roomtype_id_i" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "active_b" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "photogallery_b" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "name_vc" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "date_dt" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "thumbnail_blob" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "image_blob" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "rowversion_i" on table "public.t_roomscene".
""INFO [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Reading foreign keys for schema name "public", table name "t_roomscene".
""DEBUG [main | com.solarmetric.jdbc.JDBCLog] 06 Jan 2004 10:59:48: <t
10807107, conn 29912037> getImportedKeys: mat, public, t_roomscene
""DEBUG [main | com.solarmetric.jdbc.JDBCLog] 06 Jan 2004 10:59:49: <t
10807107, conn 29912037> return
""DEBUG [main | com.solarmetric.jdbc.JDBCLog] 06 Jan 2004 10:59:49: <t
10807107, conn 29912037> [0 ms] close
Any suggestions on what I can do?
Thanks,
Nathan

Nathan-
I've made a bug report for this at:
http://bugzilla.solarmetric.com/show_bug.cgi?id=835
In the meantime, using the dynamic SchemaFactory should be a valid
workaround whose only downside is that you won't get automatic
validation of your mappings.
In article <[email protected]>, Nathan Voxland wrote:
Thanks, that fixed it.
Nathan
"Marc Prud'hommeaux" <[email protected]> wrote in message
news:[email protected]...
Nathan-
I know there are a few reported problems with the Postgres 7.4 JDBC
driver. It may just be an issue with incorrect metadata being returned
by the driver. Can you try it without schema validation using the
following property:
kodo.jdbc.SchemaFactory: dynamic
In article <[email protected]>, Nathan Voxland wrote:
I upgraded my development database to Postgres 7.4 and now I'm getting
the
following error:
org.postgresql.util.PSQLException: The column name FKTABLE_SCHEM notfound.
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
atkodo.jdbc.schema.LazySchemaFactory.findTable(LazySchemaFactory.java:150)
at
kodo.jdbc.meta.BaseClassMapping.fromMappingInfo(BaseClassMapping.java:148)
at
kodo.jdbc.meta.RuntimeMappingProvider.getMapping(RuntimeMappingProvider.java
:56)
at
kodo.jdbc.meta.MappingRepository.getMappingInternal(MappingRepository.java:3
42)
atkodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:297)
atkodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:249)
atkodo.jdbc.meta.MappingRepository.getMetaData(MappingRepository.java:237)
at
kodo.runtime.PersistenceManagerImpl.newStateManager(PersistenceManagerImpl.j
ava:1387)
at
kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.jav
a:1351)
at
kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.jav
a:1294)
at net.sundog.jdo.JDOUtil.findByPrimaryKey(JDOUtil.java:187)
I'm using the newest Postgres JDBC driver, and the logging tells me:
Using dictionary class "kodo.jdbc.sql.PostgresDictionary" (PostgreSQL7.4
,PostgreSQL Native Driver PostgreSQL 7.4.1 JDBC3 with SSL (build 210))
[catalogSeparator=                                     .
catalogTerm=                                          database
databaseProductName=                                  PostgreSQL
databaseProductVersion=                               7.4
driverName=                                           PostgreSQL Native
Driver
driverVersion=                                        PostgreSQL 7.4.1JDBC3>> > with SSL (build 210)>> >>> > Right before the error, the following gets sent to the logging system:>> > ""INFO  [main | kodo.jdbc.schema.SchemaGenerator 06 Jan 2004 10:59:48:
Reading column information for table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "id_i" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "roomtype_id_i" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "active_b" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "photogallery_b" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "name_vc" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "date_dt" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "thumbnail_blob" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "image_blob" on table "public.t_roomscene".
""DEBUG [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Found existing column "rowversion_i" on table "public.t_roomscene".
""INFO [main | kodo.jdbc.schema.SchemaGenerator] 06 Jan 2004 10:59:48:
Reading foreign keys for schema name "public", table name "t_roomscene".
""DEBUG [main | com.solarmetric.jdbc.JDBCLog] 06 Jan 2004 10:59:48: <t
10807107, conn 29912037> getImportedKeys: mat, public, t_roomscene
""DEBUG [main | com.solarmetric.jdbc.JDBCLog] 06 Jan 2004 10:59:49: <t
10807107, conn 29912037> return
""DEBUG [main | com.solarmetric.jdbc.JDBCLog] 06 Jan 2004 10:59:49: <t
10807107, conn 29912037> [0 ms] close
Any suggestions on what I can do?
Thanks,
Nathan
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Kodo 3.4.1 and Oracle JDBC 11.1.0.6?

    Hi,
    did anybody already try using Kodo 3.4.1 and Oracle JDBC driver 11.1.0.6?
    We have been able to use it by specifying:
    kodo.jdbc.DBDictionary=oracle(BatchLimit=1000)
    but it does not run very smoothly and we get for example the
    following exception (but not always).
    NestedThrowablesStackTrace:
    [migrate-data] java.lang.ArrayIndexOutOfBoundsException: -32193
    [migrate-data] at
    oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedS
    tatement.java:2677) [migrate-data] at
    oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedState
    ment.java:9270) [migrate-data] at
    oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapp
    er.java:210) [migrate-data] at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeBatch(DelegatingPre
    paredStatement.java:325) [migrate-data] at
    com.solarmetric.jdbc.PoolConnection$PoolPreparedStatement.executeBatch(Pool
    Connection.java:375) [migrate-data] at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeBatch(DelegatingPre
    paredStatement.java:325) [migrate-data] at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeBatch(DelegatingPre
    paredStatement.java:325) [migrate-data] at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeBatch(DelegatingPre
    paredStatement.java:325)Any hints?
    Thanks,
    Werner

    Disabling SQL batching by specifying BatchLimit = 0 solved the
    problem temporarlyOf course this is not what we want, anybody else using this configuration?
    Werner

  • Heterogeneous connection between Oracle and Postgres.

    Hi All,
    I'm trying to make an heterogeneous connection between Oracle and Postgres since few days but i still having this error : "lost RPC connection".
    First of all : I'm using Windows 7, Oracle 10g and PostgreSQL 8.4.
    I have done the following operations :
    1) Create a System DNS named "PG". (Test connection is OK)
    2) Create the file "initPG.ora" in "$ORACLE_HOME/hs/admin" :
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = PG
    HS_FDS_TRACE_LEVEL = ON
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    3) Configure the file "listener.ora" (in "$ORACLE_HOME/NETWORK/ADMIN") :
    SID_LIST_LISTENER =
    (SID_LIST =
         (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
         (SID_DESC =
    (SID_NAME = PG)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
         (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = Cédric-PC)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    4) Configure the file "tnsnames.ora" (in "$ORACLE_HOME/NETWORK/ADMIN") :
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Cédric-PC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    PG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = Cédric-PC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PG)
    (HS = OK)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    5) Finally, i create my DB-Link and test it :
    CREATE DATABASE LINK "CENTRALE_POSTGRES" CONNECT TO "user_login" IDENTIFIED BY "user_password" USING 'PG';
    SELECT * FROM "dual"@CENTRALE_POSTGRES;
    I got this error :
    ORA-03135 : lost RPC connection.
    As you can see, i have activated the trace level (HS_FDS_TRACE_LEVEL = ON), but the directory "$ORACLE_HOME/NETWORK/trace" still empty.
    Any ideas ?
    Regards

    the tnsnames.ora alias PG is wrong - you need to have 2 closing brackets after the SERVICE_NAME so that HS=OK is outside of the CONNECT_DATA like:
    PG =
    <space>(DESCRIPTION =
    <space><space>(ADDRESS = (PROTOCOL = tcp)(HOST = Cédric-PC)(PORT = 1521))
    <space><space>(CONNECT_DATA =
    <space><space><space>(SERVICE_NAME = PG))
    <space><space>(HS = OK)
    <space>)
    Please be also aware HSODBC up to release 10.2 has been desupported since March 2008 and it was replaced by its follow up product DG4ODBC V11

  • SUN AS PE 8 and postgres

    Hi everybody,
    I'd like to know your experiences about using SUN AS PE 8 and postgres. I have read that actual version has problems with this database manager. It's true?
    Thanks...

    I found another tread that talks about this problem, http://forum.java.sun.com/thread.jsp?forum=136&thread=509737
    A workaround for me was to disable privacy control in my firewall, not a viable solution but will do for now. I am interested in hearing about a real solution to this problem.
    Theodor

  • Kodo 3.1.4 and Eclipse plugin

    I'm currently migrating from Kodo 2.5.3 to Kodo 3.1.4, and as I'm using
    Eclipse have decided to give the Eclipse plugin a go. I've followed the
    documentation (@15.6), and am now attempting the Eclipse Sample from the
    documentation (@15.6.4). The documentation has seemed slightly incomplete,
    but I assume that's just me using Eclipse 3.0 with the doumentation being
    written for WSAD 4.
    However, when I clean the project or run the enhancer I get the following
    error:
    <error>-The Enhancer failed. The message included was:
    {0}
         org.apache.commons.lang.exception.NestableRuntimeException: Animal
    <info>-Done.
    This message doesn't seem to be giving me any info that would help me
    track down the problem, so hopefully somebody has seen it beforehand in
    these circumstances and can help me out?
    Cheers,
    Matt

    Stephen, the stack trace is as below. Apparently the Animal class isn't
    being found...? - How does the Kodo plugin look for / find it? - Eclipse
    itself has no trouble compiling it. Do I need to somehow configure my
    classpath separately for the Kodo plugin?
    !MESSAGE Errors running builder "Kodo Enhancer Builder" on project Kodo
    Pet Shop.
    !SUBENTRY 1 kodo 4 0 Aug 10, 2004 16:27:52.687
    !MESSAGE The Enhancer failed. The message included was:
    org.apache.commons.lang.exception.NestableRuntimeException: Animal
    !STACK 0
    java.lang.ClassNotFoundException: Animal
         at
    kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:49)
         at
    kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:27)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:217)
         at serp.util.Strings.toClass(Strings.java:160)
         at
    com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:77)
         at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2176)
         at
    kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
         at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
         at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
         at org.eclipse.core.runtime.Platform.run(Platform.java:747)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
         at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
         at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
         at org.eclipse.core.runtime.Platform.run(Platform.java:747)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
         at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
         at
    org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
         at
    org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    rethrown as org.apache.commons.lang.exception.NestableRuntimeException:
    Animal
         at serp.util.Strings.toClass(Strings.java:164)
         at
    com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:77)
         at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2176)
         at
    kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
         at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
         at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
         at org.eclipse.core.runtime.Platform.run(Platform.java:747)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
         at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
         at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
         at org.eclipse.core.runtime.Platform.run(Platform.java:747)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
         at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
         at
    org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:155)
         at
    org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    Caused by: java.lang.ClassNotFoundException: Animal
         at
    kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:49)
         at
    kodo.enhance.TemporaryClassLoader.loadClass(TemporaryClassLoader.java:27)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:217)
         at serp.util.Strings.toClass(Strings.java:160)
         ... 18 more
    ==================
    Stephen Kim wrote:
    Matt,
    you should see a stack trace in workspace/.metadata/.log. Can you send
    us the error so that we can fix the reproting?

  • Error when creating Recordset using CF and Postgres

    I'm a complete newbie when it comes to databases and development so go easy on me.
    I have created a simple database with a schema (ABC) and 2 tables (_Address, _Member) in Postgres 9.0.  I have installed CF 9 in development and am creating a new application using the Construction Kit Vol 1 as my guide.  I got to the point where I am to make a Recordset and keep getting an error of:
    -1:ERROR: schema "ABC" does not exist
    org.postgresql.util.PSQLException: ERROR: schema "ABC" does not exist
    ...about 20+ lines of at errors follow (can post a screenshot if they would be helpfull)...
    From the Database tab I am able to browse my database just fine but I cannot create this recordset in the bindings tab.  I also followed the examples in the book and using their database I am able to create a recordset just fine.  CF says my data source verifies correctly.  I have verified that my password is correct as well as when in the database tab of DW I can test the connection fine.  I cannot edit the connecton from there but I get the same error when I try to edit on all of the databases, including the default test databases.
    Any suggestions would be greatly appreciated.

    Hi Loan,
    In your stock transfer Purchase Order has the correct 'Shipping Point' been determined for this item - i.e. the 'Shipping Point' associated with your 0002 Storage Location?
    The 'Shipping Point' determination is setup in config in <OVL2>, you can use the 'Loading Group' field in the Material Master (Sales:General Plant) tab to influence the shipping point that is automatically determined for a Material.
    Assuming the Shipping Point has been determined correctly for your 0002 SLoc - then in <VL10B> you will have selected this 'Shipping Point' for your delivery creation.  I also noticed that in <VL10B> on the Material tab you have the option to specify a SLoc (I'm assuming this is a source SLoc since the help doesn't clearly specify) - try entering this data too and see if you can generate your delivery.
    Good luck,
    Ravelle

  • ForeignKeyDeleteAction=null not working with Kodo 4.1.2 and Mysql 5

    Hello,
    i am trying to use Kodo 4.1.2, together with mysql 5.0
    my kodo.properties says:
    openjpa.jdbc.MappingDefaults: jdo(ForeignKeyDeleteAction=null)
    and i am expecting an sql-statement something like:
    ALTER TABLE mytable ADD FOREIGN KEY (bar) REFERENCES othertable(foo) ON DELETE SET NULL;
    but all i got is:
    ALTER TABLE mytable ADD FOREIGN KEY (bar) REFERENCES othertable(foo);
    Kodo 4.0 didn't have any problems with that. Also, in Kodo 4.1.2 other ForeignKeyDeleteActions (like 'cascade' oder 'default') are working like expected.
    What am i doing wrong? Where can i find some upgrade instructions? Is this a bug?
    Thanks in advance,
    Markus

    If the same exact app and code works with 4.0 with the same ForeignKeyDeleteAction setting, I suggest that you open a case with support.
    This property hasn't changed since 4.0
    http://e-docs.bea.com/kodo/docs41/full/html/ref_guide_mapping_defaults.html
    Laurent

  • Kodo 3 - inverse owner and order-column bug?

    Hi,
    I have problems to move an object from one ordered list collection to
    another.
    This is the scenario:
    A DocumentGroup is element of a tree, so it has children and a parent.
    Tree ordering is important, so it must be maintained.
    public class DocumentGroup
    * @link aggregation
    * @associates <{DocumentGroup}>
    * @supplierCardinality 0..*
    * @bidirectional <{de.daisi.model.DocumentGroup#parent}>
    * @clientCardinality 0..1
    * @supplierRole Children
    * @clientRole Parent
    private Vector children;
    * @bidirectional
    private DocumentGroup parent;
    public void addChild(DocumentGroup newChild)
    if (this.children.contains(newChild)==false)
    if (newChild.isRoot())
    newChild.setRoot(false);
    if (newChild.getParent()!=null)
    newChild.getParent().removeChild(newChild);
    // Add child
    newChild.setParent(this);
    this.children.add(newChild);
    if (this.tree!=newChild.getTree())
    newChild.setTree(this.tree);
    public void removeChild(DocumentGroup child)
    boolean removed = this.children.remove(child);
    if (removed)
    child.setParent(null);
    This is my mapping, the column DOCG_INDEX should be managed by KODO and
    ist NOT mapped to a Java field.
    <class name="DocumentGroup">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="pk-column" value="DOCG_ID"/>
    <extension vendor-name="kodo" key="table" value="DOCUMENTGROUP"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="DOCG_LOCK"/>
    </extension>
    <field name="children">
    <collection element-type="DocumentGroup"/>
    <extension vendor-name="kodo" key="inverse-owner" value="parent"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-many">
    <extension vendor-name="kodo" key="table" value="DOCUMENTGROUP"/>
    <extension vendor-name="kodo" key="ref-column.DOCG_ID"
    value="DOCG_DOCG_ID"/>
    <extension vendor-name="kodo" key="order-column" value="DOCG_INDEX"/>
    </extension>
    </field>
    <field name="parent">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.DOCG_ID"
    value="DOCG_DOCG_ID"/>
    </extension>
    </field>
    <field name="root">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="DOCG_IS_ROOT"/>
    </extension>
    </field>
    <field name="tree">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.DOCT_ID"
    value="DOCG_DOCT_ID"/>
    </extension>
    </field>
    </class>
    Now, if I move a document group several times (by invoking first
    removeChild() on the source group and then addChild() on the target
    group), the following error occurs:
    kodo.util.FatalUserException: Attempt to set column
    "DOCUMENTGROUP.DOCG_INDEX" to two different values: "0", "1" This usually
    occurs when you map different fields to the same column, but you do not
    keep the values of these fields in synch.
    at kodo.jdbc.runtime.VRow.setObjectInternal(VRow.java:95)
    at kodo.jdbc.sql.AbstractRow.setObject(AbstractRow.java:535)
    at kodo.jdbc.sql.AbstractRow.setInt(AbstractRow.java:301)
    at
    kodo.jdbc.meta.OneToManyFieldMapping.updateInverse(OneToManyFieldMapping.java:364)
    at
    kodo.jdbc.meta.OneToManyFieldMapping.update(OneToManyFieldMapping.java:299)
    at
    kodo.jdbc.runtime.UpdateManagerImpl.update(UpdateManagerImpl.java:303)
    at
    kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:126)
    at
    kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:71)
    at
    kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:503)
    at
    kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:158)
    at
    kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:760)
    at
    kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:639)
    at
    kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
    at
    kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:411)
    So, is there an error in my mapping configuration?
    (I tried to leave out the "inverse-owner", but that does not change the
    behaviour.)
    Any help to make my tree editable with Kodo 3 would be great...

    Abe White wrote:
    Is there any way you could send us a test case that reproduces this
    problem? Saying you have to move a DocumentGroup "several times" makes
    me think it might be best if you sent us a program that shows exactly
    what you mean. Just zip up your DocumentGroup class, metadata, mapping,
    and a driver program showing the error and send it to
    [email protected]
    We'd really appreciate it.I sent a program for testing to the mail address above. So I hope you can
    reproduce this error.

  • JTable and Postgres Database

    Hi there
    Is it possible to use JDBC to connect to a postgres database and then display the output in a JTable?
    IF anybody can give me some pointers on how to do this...please shout..
    any web-sites to look at?

    I'll post my db class here:
    not a very good one but for a small applet wich doesn't do exciting stuff more the sufficient
    import java.sql.DatabaseMetaData;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.sql.Connection;
    * Created on 6-jun-2003
    * To change this generated comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    * @author Mr Light
    * To change this generated comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class DataBase {
         private DatabaseMetaData metaData;
         private Statement statement;
         private Connection connection;
         private String query;
         private ResultSet result;
         public SELECT select;
         public     ALTER alter;
         public CHECK check;
         private interface SELECT {
         private interface ALTER {
         private interface CHECK {
         public void openConnection() {
              try {
                   // Initialiseer de PostGreSQL-driver
                   Class.forName("org.postgresql.Driver");
                   // Syntax: "jdbc:postgresql://host:port/database"
                   String url = "jdbc:postgresql://oege.ie.hva.nl:4000/bts51";
                   String user = "bts51", pass = "eenenvijftig";
                   // Open connectie met database
                   connection = DriverManager.getConnection(url, user, pass);
              // Vang JDBC-errors af
              catch( ClassNotFoundException e) {
                   System.err.println("JDBC Error:");
                   e.printStackTrace();
              // Vang SQL-errors af
              catch (java.sql.SQLException e) {
                   System.err.println("SQL Exception:");
                   e.printStackTrace();
         // Methode: Sluit connectie met database
         public void closeConnection() {
              try {
                   statement.close();
                   connection.close();
              catch( Exception e ) {
                   // NTS geeft een output null bij statement null
                   System.out.println( e.getMessage() );
         // Methode: Voer een Select query uit
         public ResultSet sendQuery(String query, SELECT select) {
              this.query = query;
              try {
                   statement = connection.createStatement();
                   result = statement.executeQuery(query);
                   return result;
              catch (java.sql.SQLException e) {
                   System.err.println("SQL Exception:");
                   e.printStackTrace();
              return null;
         // Methode: Voer een query uit en geef trug of er hits zijn.
         public boolean sendQuery(String query, CHECK check) {
              try {
                   statement = connection.createStatement();
                   result = statement.executeQuery(query);
                   if (result.next()) {
                        return true;
              catch (java.sql.SQLException e) {
                   System.err.println("SQL Exception:");
                   e.printStackTrace();
              return false;
         public void sendQuery(String query, ALTER alter) {
              try {
                   statement = connection.createStatement();
                   result = statement.executeQuery(query);
              catch (java.sql.SQLException e) {
                   System.err.println("SQL Exception:");
                   e.printStackTrace();
         public void getFunctions() {
              try {
                   metaData = connection.getMetaData();
                   String SQLKeywords = metaData.getSQLKeywords();
                   System.out.println("SQLKeywords: "+SQLKeywords);
                   String stringFunctions = metaData.getStringFunctions();
                   System.out.println("stringFunctions: "+stringFunctions);
                   String systemFunctions = metaData.getSystemFunctions();
                   System.out.println("systemFunctions: "+systemFunctions);
                   String timeDateFunctions = metaData.getTimeDateFunctions();
                   System.out.println("timeDateFunctions: "+timeDateFunctions);
              catch (java.sql.SQLException e) {
                   System.err.println("SQL Exception:");
                   e.printStackTrace();
    }the above to connect
         public Object[][] vestigingen(){
              dataBase.openConnection();
              resultset = dataBase.sendQuery("" +
                   "SELECT vestigingscode, vestigingsnaam " +
                   "FROM vestiging" +
                   "",dataBase.select);
              Object[][] matrix = createMatrix(resultset);
              dataBase.closeConnection();
              return matrix;     
         }there you have the query
    plus supporting methode:
    private Object[][] createMatrix(ResultSet result) {
              Object[][] matrix = null;
              ResultSetMetaData resultSetMetaData = null;
              try {
                   int col = 0;
                   int row = 0;
                   int totalrows = 0;
                   int totalcolums = 0;
                   resultSetMetaData = result.getMetaData();
                   totalcolums = resultSetMetaData.getColumnCount();
                   while(result.next()){
                        totalrows++;
                   result.beforeFirst();
                   matrix = new Object[totalrows][totalcolums];               
                   for(row=0; row < totalrows; row++ ){
                        result.next();
                        if(totalrows == 0){
                             //     geen hits.
                             matrix[col][0] = new String("empty");
                        } else {
                             for(col=0; col < totalcolums; col++ ) {
                                  matrix[row][col] = result.getObject(col+1);
              } catch (Exception e) {
                   e.printStackTrace();
              return matrix;     
         }then you simply toss the Object[][]
    into a JTable
    by calling the default constructor.
    if that doesn't help you I don't know what will.

  • JPA and Postgres

    Hi friends!
    I am new with EJB 3.0 and I am trying to do my first Entity Bean. I am working with Postgres and GlashFish. I have a class whose name is "Cabin", and my persistence.xml (under META-INF folder) is:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence">
         <persistence-unit name="titan">
         <class>paquete.Cabin</class>
         <properties>
              <property name="jdbc.driver" value="org.postgresql.Driver"/>
              <property name="jdbc.connection.string" value="jdbc:postgresql://localhost/TitanDB"/>
              <property name="jdbc.user" value="postgres"/>
              <property name="jdbc.password" value="postgres"/>
              <property name="ddl-generation" value="dropandcreate"/>
              <property name="toplink.logging.level" value="FINE"/>
         </properties>
         </persistence-unit>
    </persistence>
    And in my Session Bean I have the following code:
    @PersistenceContext (unitName="titan")
    private EntityManager manager;
    When I run my application I get the following error:
    javax.naming.NameNotFoundException: SimpleBeanJNDI not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:192)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:129)
         at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:154)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    Can you help me?
    Thanks in advance for your help to this matter.

    Hi friends!
    I am new with EJB 3.0 and I am trying to do my first Entity Bean. I am working with Postgres and GlashFish. I have a class whose name is "Cabin", and my persistence.xml (under META-INF folder) is:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence">
         <persistence-unit name="titan">
         <class>paquete.Cabin</class>
         <properties>
              <property name="jdbc.driver" value="org.postgresql.Driver"/>
              <property name="jdbc.connection.string" value="jdbc:postgresql://localhost/TitanDB"/>
              <property name="jdbc.user" value="postgres"/>
              <property name="jdbc.password" value="postgres"/>
              <property name="ddl-generation" value="dropandcreate"/>
              <property name="toplink.logging.level" value="FINE"/>
         </properties>
         </persistence-unit>
    </persistence>
    And in my Session Bean I have the following code:
    @PersistenceContext (unitName="titan")
    private EntityManager manager;
    When I run my application I get the following error:
    javax.naming.NameNotFoundException: SimpleBeanJNDI not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:192)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:129)
         at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:154)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    Can you help me?
    Thanks in advance for your help to this matter.

  • Discoverer and postgres

    Can discoverer connect to a postgres database?

    it should be possible by using Oracle Generic Connectivity and HS (heterogeneous services) available in Oracle Database.
    That requires use of ODBC driver for Postgres.
    However, the discover repository must be on a Oracle database.
    cf http://www.oracle.com/technology/products/gateways/faq.html
    Patrick.

  • Kodo 3.1.12 and Eclipse

    Hi,
    I have added Kodo plugin to Eclipse (version 3) . I have added Kodo
    enhancer to Build sequence for the project. However when I run build I get
    an error and eclipse log file has following exception:
    ava.lang.NoClassDefFoundError: org/apache/log4j/Category
         at
    com.solarmetric.log.Log4JLogFactory.newLogAdapter(Log4JLogFactory.java:19)
         at com.solarmetric.log.LogFactoryAdapter.getLog(LogFactoryAdapter.java:25)
         at
    com.solarmetric.conf.ConfigurationImpl.getLog(ConfigurationImpl.java:115)
         at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2168)
         at
    kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
         at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
         at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
         at org.eclipse.core.runtime.Platform.run(Platform.java:747)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
         at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
         at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
         at org.eclipse.core.runtime.Platform.run(Platform.java:747)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
         at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
         at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:198)
         at
    org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:182)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    I have copied the log4j jar to kodo plugin directory and added libarary
    tag to plugin.xml as following:
         <library name="log4j-1.2.8.jar"/>
    What am I doing wrong?

    Mark,
    Here is my plugin.xml. classes12.jar is in the same directory as the
    plugin.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <plugin id="kodo"
         name="%name"
         version="1.0.1"
         provider-name="%provider-name"
         class="kodo.jdbc.integration.eclipse.KodoPlugin">
         <runtime>
         <!--
         Put your jdbc driver in this directory and enter the filename
         here (and configure in Preferences the changes you make) -->
              <library name="classes12.jar"/>
    <!-- ########### do not modify below ######### -->
    <!-- ########### do not modify below ######### -->
    <!-- ########### do not modify below ######### -->
    <!-- ########### do not modify below ######### -->
    <!-- ########### do not modify below ######### -->
              <library name="kodo-jdo.jar"/>
              <library name="jakarta-commons-collections-2.1.jar"/>
              <library name="jakarta-commons-lang-1.0.1.jar"/>
              <library name="jakarta-commons-pool-1.0.1.jar"/>
              <library name="jakarta-regexp-1.1.jar"/>
              <library name="jca1.0.jar"/>
              <library name="jdbc2_0-stdext.jar"/>
              <library name="jdo-1.0.1.jar"/>
              <library name="jta-spec1_0_1.jar"/>
              <library name="xalan.jar"/>
              <library name="xercesImpl.jar"/>
              <library name="xml-apis.jar"/>
              <library name="jfreechart-0.9.16.jar"/>
              <library name="jcommon-0.9.1.jar"/>
              <library name="mx4j-admb.jar"/>
              <library name="mx4j-jmx.jar"/>
              <library name="mx4j-tools.jar"/>
              <library name="jline.jar"/>
              <library name="sqlline.jar"/>
         </runtime>
         <requires>
              <import plugin="org.eclipse.ui"/>
              <import plugin="org.eclipse.core.resources"/>
              <import plugin="org.eclipse.jdt.core"/>
              <import plugin="org.eclipse.jdt.launching"/>
         </requires>
         <extension point="org.eclipse.ui.actionSets">
              <actionSet id="kodo.jdbc.integration.eclipse.actionSet"
                   label="%action-set-name"
                   visible="true">
                   <menu id="kodo.menu"
                        label="%group-label">
                        <separator name="baseGroup"/>
                   </menu>
                   <action id="kodo.removeBuilder"
                        label="%remove-builder-label"
              class="kodo.jdbc.integration.eclipse.RemoveBuilderAction"
                        tooltip="%remove-builder-tooltip"
                        menubarPath="kodo.menu/baseGroup"
                        enablesFor="1">
                   </action>
                   <action id="kodo.addbuilder"
                        label="%add-builder-label"
                   class="kodo.jdbc.integration.eclipse.AddBuilderAction"
                        tooltip="%add-builder-tooltip"
                        menubarPath="kodo.menu/baseGroup"
                        enablesFor="1">
                   </action>
                   <action id="kodo.mapping.build"
                        label="%mapping-build-label"
                        tooltip="%mapping-build-tooltip"
                   class="kodo.jdbc.integration.eclipse.MappingToolAction$BuildSchema"
                        icon="icons/BuildSchemaMappingTool.gif"
                        menubarPath="kodo.menu/baseGroup"
                        toolbarPath="Normal/Kodo"
                        enablesFor="+">
                        <selection class="org.eclipse.core.resources.IFile"
                             name="*.jdo">
                        </selection>
                   </action>
                   <action id="kodo.mapping.drop"
                        label="%mapping-drop-label"
                        tooltip="%mapping-drop-tooltip"
                        class="kodo.jdbc.integration.eclipse.MappingToolAction$Drop"
                        icon="icons/DropMappingTool.gif"
                        menubarPath="kodo.menu/baseGroup"
                        toolbarPath="Normal/Kodo"
                        enablesFor="+">
                        <selection class="org.eclipse.core.resources.IFile"
                             name="*.jdo">
                        </selection>
                   </action>
                   <action id="kodo.mapping.refresh"
                        label="%mapping-refresh-label"
                        tooltip="%mapping-refresh-tooltip"
              class="kodo.jdbc.integration.eclipse.MappingToolAction$Refresh"
                        icon="icons/RefreshMappingTool.gif"
                        menubarPath="kodo.menu/baseGroup"
                        toolbarPath="Normal/Kodo"
                        enablesFor="+">
                        <selection class="org.eclipse.core.resources.IFile"
                             name="*.jdo">
                        </selection>
                   </action>
                   <action id="kodo.enhance"
                        label="%enhance-label"
                        icon="icons/EnhancerAction.gif"
                   class="kodo.jdbc.integration.eclipse.EnhancerAction"
                        tooltip="%enhance-tooltip"
                        menubarPath="kodo.menu/baseGroup"
                        toolbarPath="Normal/Kodo"
                        enablesFor="+">
                        <selection class="org.eclipse.core.resources.IFile"
                             name="*.jdo">
                        </selection>
                   </action>
              </actionSet>
         </extension>
         <!-- lock our actions into the base perspective -->
         <extension point="org.eclipse.ui.perspectiveExtensions">
              <perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
                   <actionSet
                        id="kodo.jdbc.integration.eclipse.actionSet">
                   </actionSet>
              </perspectiveExtension>
         </extension>
         <!-- put our extensions in -->
         <extension point="org.eclipse.ui.preferencePages">
              <page name="%preference-name"
                   class="kodo.jdbc.integration.eclipse.KodoPreferencePage"
                   id="kodo.jdbc.integration.eclipse.preferences.KodoPreferencePage">
              </page>
         </extension>
         <!-- lock in our eclipse-generated xml editor -->
         <extension point="org.eclipse.ui.editors">
              <editor name="%mappingeditor-name" extensions="mapping"
                   icon="icons/mapping.gif"
                   contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
                   class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
                   id="kodo.jdbc.integration.eclipse.editor.XMLEditorMapping">
              </editor>
              <editor name="%editor-name" extensions="jdo,schema"
                   icon="icons/metadata.gif"
                   contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
                   class="kodo.jdbc.integration.eclipse.editor.XMLEditor"
                   id="kodo.jdbc.integration.eclipse.editor.XMLEditor">
              </editor>
         </extension>
         <!-- lock in our "view" -->
         <extension point="org.eclipse.ui.views">
              <view id="kodo.jdbc.integration.eclipse.KodoView"
                   name="%view-name"
                   category="org.eclipse.jdt.ui.java"
                   icon="icons/kodosmall.gif"
                   class="kodo.jdbc.integration.eclipse.KodoView">
              </view>
         </extension>
         <!-- lock in our builder -->
         <extension point="org.eclipse.core.resources.builders"
              id="kodo.jdbc.integration.eclipse.EnhancerBuilder"
              name="%builder-name">
              <builder>
                   <run
                   class="kodo.jdbc.integration.eclipse.EnhancerBuilder">
                   </run>
              </builder>
         </extension>
         <!-- put our view onto the bottom bar -->
         <extension point="org.eclipse.ui.perspectiveExtensions">
              <perspectiveExtension
                   targetID="org.eclipse.debug.ui.DebugPerspective">
                   <view id="kodo.jdbc.integration.eclipse.KodoView"
                        relative="org.eclipse.debug.ui.ExpressionView"
                        relationship="stack"/>
                   <viewShortcut id="org.eclipse.jdt.debug.ui.DisplayView"/>
              </perspectiveExtension>
         </extension>
    </plugin>
    Marc Prud'hommeaux wrote:
    Genna-
    Can you post your plugin.xml file? The majority of the time, this
    problem is because of an error in the configuration file.
    In article <[email protected]>, Genna Reingold wrote:
    Ok,
    I have found where log4j was coming from - I have selected my runtime
    Kodo property file in Kodo preferences. Removing reference to property
    file fixed the problem. However I have another issue now. When I run
    refresh mapping I get following error:
    <error>-An error occurred running MappingTool
         kodo.util.FatalDataStoreException: oracle.jdbc.OracleDriver
    NestedThrowables:
    java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    I have upgraded to Kodo 3.1.15, I'm using latest Eclipse 3.0. I have
    copied classes12.jar to plugin directory and modified plugin.xml as
    prescribed in the manual.
    Stephen Kim wrote:
    Genna,
    Also note that the Eclipse plugin uses its own logging mechanism.
    Setting a kodo.Log property for the plugin's property file will not
    change the way in which the plugin logs messages (you may want to have
    an Eclipse specific property file with the Log property removed).
    Marc Prud'hommeaux wrote:
    Genna-
    It sounds like Eclipse might have an older version of the log4j jar
    file. Can you check to see if there are any other "log4j" jars in
    Eclipse's environment?
    Also, what version of Kodo are you using? Can you try with the latest
    release (3.1.5)?
    Finally, can you ensure that you are using the final 3.0 release of
    Eclipse, and not one of the betas? There are some known problems with
    some of the 3.0 betas.
    In article <[email protected]>, Genna Reingold wrote:
    Hi,
    I have added Kodo plugin to Eclipse (version 3) . I have added Kodo
    enhancer to Build sequence for the project. However when I run build I
    get
    an error and eclipse log file has following exception:
    ava.lang.NoClassDefFoundError: org/apache/log4j/Category
         atcom.solarmetric.log.Log4JLogFactory.newLogAdapter(Log4JLogFactory.java:19)
         at
    com.solarmetric.log.LogFactoryAdapter.getLog(LogFactoryAdapter.java:25)
         atcom.solarmetric.conf.ConfigurationImpl.getLog(ConfigurationImpl.java:115)
         at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2168)
         at
    kodo.jdbc.integration.eclipse.EnhancerBuilder.build(EnhancerBuilder.java:40)
         at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:564)
         at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
         at org.eclipse.core.runtime.Platform.run(Platform.java:747)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:157)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
         at
    org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:229)
         at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
         at org.eclipse.core.runtime.Platform.run(Platform.java:747)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232)
         at
    org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:268)
         at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:297)
         at
    org.eclipse.core.internal.resources.Workspace.build(Workspace.java:198)
         atorg.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:182)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    I have copied the log4j jar to kodo plugin directory and added libarary
    tag to plugin.xml as following:
         <library name="log4j-1.2.8.jar"/>
    What am I doing wrong?
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Core Data and Postgres merger?

    Hello!
    Is there some public info or "big picture" available how to or where to hook myself into the object and message chain of Core Data and to generate SQL to CRUD (Create, Read, Update, Delete) rows of data with postgres instead of SQL Lite or flat-files that Core Data natively supports?
    I also like the ActiveRecords way of doing things in Ruby and an Objective-C class, that models a table and objects model single rows, doesnt seem too overtly complicate to implement, but how to bind this then effectively with Core Data? So that we could use CoreData models nicely in IB and use the available binding methods.
    Thanks for any input,
    regards
    Philipp
    Intel iMac   Mac OS X (10.4.6)  

    Does this help?

  • Oracle limitation and postgres

    Hi,
    Does anybody know some limitation of Oracle on Linux, like max db size, max table size, max row in a table and max row size, etc...
    where to get such data?
    And I am also compare Postgres with Oracle in our project, I know it is kind of compare apple with orange. But if anybody have done some similar work before, please give me some helpful information.
    Thanks a lot!
    Feng

    Hi Feng Hong,
    You can get the information you need from http://technet.oracle.com/docs
    Georg

  • Tomcat and Postgres TCP/IP Connection Problem

    Hello,
    i have a linux server with tomcat 5.0.25 and another linux server with postgres, i have a webapp that uses Connection Pooling for the database connection, when im going to open the connection i get this error:
    org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP
    But when i try this from mi windows pc the connection is succesful and i have the same tomcat version.
    Can somebody help me?
    Thanks in Advance
    Escobar5

    Postgres has a pg_hba.conf file that configures access to the database. Access is configured on an IP address basis. Probably your PC has an IP address that is configured in the file to allow access and the Linux server doesn't. Check the Postgres documentation on how to change this file to allow access form teh linux server

Maybe you are looking for