You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Jason Pyeron <ja...@pyeron.com> on 2003/09/13 18:06:41 UTC

reverse-db issue:

any one get this before?

this was after the read button was pushed.

[jpyeron@MrLaptop db-ojb-1.0.rc4]$ ant reverse-db
Buildfile: build.xml

reverse-db:
[reversedb] Using MySQL-AB JDBC Driver 3.0.8-stable ( $Date: 2003/05/19 00:57:19 $, $Revision: 1.27.2.18 $ )
[reversedb] java.lang.NullPointerException
[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBSchema.read(DBSchema.java:126)
[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBCatalog.read(DBCatalog.java:164)
[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBMeta.read(DBMeta.java:224)
[reversedb]     at org.apache.ojb.tools.mapping.reversedb.gui.JFrmMainFrame.analyzeSchema(JFrmMainFrame.java:128)

Sincerely,

Jason Pyeron

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                   http://www.pyerotechnics.com   -
- Partner & Sr. Manager         Pyerotechnics Development, Inc. -
-                               500 West University Parkway #1S -
- +1 (410) 808-6646             Baltimore, Maryland  21210-3253 -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.






---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: PATCH from users list Re: reverse-db issue:

Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi jason,

thanks for the patch, it's in the repository now.

jakob

Jason Pyeron wrote:

>Index: src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java
>===================================================================
>RCS file: /home/cvspublic/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java,v
>retrieving revision 1.8
>diff -u -B -r1.8 DBSchema.java
>--- src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	29 Jun 2003 14:28:07 -0000	1.8
>+++ src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	13 Sep 2003 16:21:25 -0000
>@@ -124,8 +124,9 @@
>       // Pointbase returns the catalog name in uppercase here and in mixed
>       // case in getCatalogs(). Therefore we have to use toUpper().
>       if (   
>-             (strTableCat == null && this.getDBCatalog().getCatalogName() == null || strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName()))
>-           &&(strSchemaName == null && this.getSchemaName() == null || strSchemaName.equals(this.getSchemaName()))
>+          (strTableCat!=null && strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName()) || strTableCat==this.getDBCatalog().getCatalogName())
>+          &&
>+          (strSchemaName!=null && strSchemaName.equals(this.getSchemaName()) || strSchemaName==this.getSchemaName())
>          )
>         this.addTable(strTableName, strTableType);
>       
>
>
>
>On Sat, 13 Sep 2003, Jason Pyeron wrote:
>
>  
>
>>any one get this before?
>>
>>this was after the read button was pushed.
>>
>>[jpyeron@MrLaptop db-ojb-1.0.rc4]$ ant reverse-db
>>Buildfile: build.xml
>>
>>reverse-db:
>>[reversedb] Using MySQL-AB JDBC Driver 3.0.8-stable ( $Date: 2003/05/19 00:57:19 $, $Revision: 1.27.2.18 $ )
>>[reversedb] java.lang.NullPointerException
>>[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBSchema.read(DBSchema.java:126)
>>[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBCatalog.read(DBCatalog.java:164)
>>[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBMeta.read(DBMeta.java:224)
>>[reversedb]     at org.apache.ojb.tools.mapping.reversedb.gui.JFrmMainFrame.analyzeSchema(JFrmMainFrame.java:128)
>>
>>Sincerely,
>>
>>Jason Pyeron
>>
>>
>>    
>>
>
>  
>
>------------------------------------------------------------------------
>
>Index: src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java
>===================================================================
>RCS file: /home/cvspublic/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java,v
>retrieving revision 1.8
>diff -u -B -r1.8 DBSchema.java
>--- src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	29 Jun 2003 14:28:07 -0000	1.8
>+++ src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	13 Sep 2003 16:21:25 -0000
>@@ -124,8 +124,9 @@
>       // Pointbase returns the catalog name in uppercase here and in mixed
>       // case in getCatalogs(). Therefore we have to use toUpper().
>       if (   
>-             (strTableCat == null && this.getDBCatalog().getCatalogName() == null || strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName()))
>-           &&(strSchemaName == null && this.getSchemaName() == null || strSchemaName.equals(this.getSchemaName()))
>+          (strTableCat!=null && strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName()) || strTableCat==this.getDBCatalog().getCatalogName())
>+          &&
>+          (strSchemaName!=null && strSchemaName.equals(this.getSchemaName()) || strSchemaName==this.getSchemaName())
>          )
>         this.addTable(strTableName, strTableType);
>       
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-dev-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


PATCH from users list Re: reverse-db issue:

Posted by Jason Pyeron <ja...@pyeron.com>.
Index: src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java
===================================================================
RCS file: /home/cvspublic/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java,v
retrieving revision 1.8
diff -u -B -r1.8 DBSchema.java
--- src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	29 Jun 2003 14:28:07 -0000	1.8
+++ src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	13 Sep 2003 16:21:25 -0000
@@ -124,8 +124,9 @@
       // Pointbase returns the catalog name in uppercase here and in mixed
       // case in getCatalogs(). Therefore we have to use toUpper().
       if (   
-             (strTableCat == null && this.getDBCatalog().getCatalogName() == null || strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName()))
-           &&(strSchemaName == null && this.getSchemaName() == null || strSchemaName.equals(this.getSchemaName()))
+          (strTableCat!=null && strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName()) || strTableCat==this.getDBCatalog().getCatalogName())
+          &&
+          (strSchemaName!=null && strSchemaName.equals(this.getSchemaName()) || strSchemaName==this.getSchemaName())
          )
         this.addTable(strTableName, strTableType);
       



On Sat, 13 Sep 2003, Jason Pyeron wrote:

> any one get this before?
> 
> this was after the read button was pushed.
> 
> [jpyeron@MrLaptop db-ojb-1.0.rc4]$ ant reverse-db
> Buildfile: build.xml
> 
> reverse-db:
> [reversedb] Using MySQL-AB JDBC Driver 3.0.8-stable ( $Date: 2003/05/19 00:57:19 $, $Revision: 1.27.2.18 $ )
> [reversedb] java.lang.NullPointerException
> [reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBSchema.read(DBSchema.java:126)
> [reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBCatalog.read(DBCatalog.java:164)
> [reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBMeta.read(DBMeta.java:224)
> [reversedb]     at org.apache.ojb.tools.mapping.reversedb.gui.JFrmMainFrame.analyzeSchema(JFrmMainFrame.java:128)
> 
> Sincerely,
> 
> Jason Pyeron
> 
> 

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                   http://www.pyerotechnics.com   -
- Partner & Sr. Manager         Pyerotechnics Development, Inc. -
-                               500 West University Parkway #1S -
- +1 (410) 808-6646             Baltimore, Maryland  21210-3253 -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.