Thought inc.

The Dynamic O/R Mapping Company
     

CocoBase Technical Support Forums
For access to developer site with software download and doc's, please request CocoBase download and password
will be emailed to you. Response to posts will appear when answered by THOUGHT Support team.
NOTE:You must register separately with forum in order to post your questions, please click on register icon below.
Home   Frequently Asked Questions   Search   Edit your profile   Registration is free!  
Email This Page to Someone!
Show a Printable Version
CocoBase Enterprise O/R Forums > CocoBase Bug Reports
Bug when accessing map
< Previous Thread     Next Thread >
Author
Thread    Post New Thread     Post A Reply
Tlvenn
Member

Registered: Mar 2002
Posts: 9

After importing XMI successfully ( i edited the SQL/DDL script so each statement processed correctly), i decide to check the maps that cocobase created.

Clicking on the icon has frozen cocobase with the following stacktrace:

java.lang.StringIndexOutOfBoundsException: String index out of range: 23
at java.lang.Throwable.<init>(Throwable.java:96)
at java.lang.Exception.<init>(Exception.java:44)
at java.lang.RuntimeException.<init>(RuntimeException.java:49)
at java.lang.IndexOutOfBoundsException.<init>(IndexOutOfBoundsException.
java:46)
at java.lang.StringIndexOutOfBoundsException.<init>(StringIndexOutOfBoun
dsException.java:59)
at java.lang.String.charAt(String.java(Compiled Code))
at org.postgresql.jdbc2.ResultSet.toTimestamp(Unknown Source)
at org.postgresql.jdbc2.ResultSet.getTimestamp(Unknown Source)
at com.thought.CocoAdmin.CocoDBAccess._$4008(CocoDBAccess.java:3714)
at com.thought.CocoAdmin.CocoDBAccess.getClasses(CocoDBAccess.java:2496)

at com.thought.CocoAdmin.SplitInternalFrame._$2370(SplitInternalFrame.ja
va:4462)
at com.thought.CocoAdmin.SplitInternalFrame._$5925(SplitInternalFrame.ja
va:5079)
at com.thought.CocoAdmin.SplitInternalFrame.createFrame(SplitInternalFra
me.java:1110)
at com.thought.CocoAdmin.SplitInternalFrame.setInit(SplitInternalFrame.j
ava:1072)
at com.thought.CocoAdmin.SplitInternalFrame.<init>(SplitInternalFrame.ja
va:1064)
at com.thought.CocoAdmin.CocoAdmin.createEditMapFrame(CocoAdmin.java:143
0)
at com.thought.CocoAdmin.CocoAdmin.actionPerformed(CocoAdmin.java:1132)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:14
50)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1504)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:384)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:256
)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:216)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
37)
at java.awt.Component.processMouseEvent(Component.java:3753)
at java.awt.Component.processEvent(Component.java(Compiled Code))
at java.awt.Container.processEvent(Container.java(Compiled Code))
at java.awt.Component.dispatchEventImpl(Component.java(Compiled Code))
at java.awt.Container.dispatchEventImpl(Container.java(Compiled Code))
at java.awt.Component.dispatchEvent(Component.java(Compiled Code))
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java(Comp
iled Code))
at java.awt.LightweightDispatcher.processMouseEvent(Container.java(Compi
led Code))
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2139)
at java.awt.Window.dispatchEventImpl(Window.java(Compiled Code))
at java.awt.Window.dispatchEventImpl(Window.java(Compiled Code))
at java.awt.Component.dispatchEvent(Component.java(Compiled Code))
at java.awt.EventQueue.dispatchEvent(EventQueue.java(Compiled Code))
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java(Co
mpiled Code))
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java(Comp
iled Code))
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Exception occurred during event dispatching:
java.lang.NullPointerException
at com.thought.CocoAdmin.SplitInternalFrame._$2370(SplitInternalFrame.ja
va:4475)
at com.thought.CocoAdmin.SplitInternalFrame._$5925(SplitInternalFrame.ja
va:5079)
at com.thought.CocoAdmin.SplitInternalFrame.createFrame(SplitInternalFra
me.java:1110)
at com.thought.CocoAdmin.SplitInternalFrame.setInit(SplitInternalFrame.j
ava:1072)
at com.thought.CocoAdmin.SplitInternalFrame.<init>(SplitInternalFrame.ja
va:1064)
at com.thought.CocoAdmin.CocoAdmin.createEditMapFrame(CocoAdmin.java:143
0)
at com.thought.CocoAdmin.CocoAdmin.actionPerformed(CocoAdmin.java:1132)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:14
50)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1504)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:384)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:256
)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:216)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
37)
at java.awt.Component.processMouseEvent(Component.java:3753)
at java.awt.Component.processEvent(Component.java(Compiled Code))
at java.awt.Container.processEvent(Container.java(Compiled Code))
at java.awt.Component.dispatchEventImpl(Component.java(Compiled Code))
at java.awt.Container.dispatchEventImpl(Container.java(Compiled Code))
at java.awt.Component.dispatchEvent(Component.java(Compiled Code))
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java(Comp
iled Code))
at java.awt.LightweightDispatcher.processMouseEvent(Container.java(Compi
led Code))
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2139)
at java.awt.Window.dispatchEventImpl(Window.java(Compiled Code))
at java.awt.Window.dispatchEventImpl(Window.java(Compiled Code))
at java.awt.Component.dispatchEvent(Component.java(Compiled Code))
at java.awt.EventQueue.dispatchEvent(EventQueue.java(Compiled Code))
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java(Co
mpiled Code))
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java(Comp
iled Code))
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

----------------------------------------------------------
With futher investigations, i discovered that it's not tied with the action 'edit map' but more with the access to the map repository.

For example, after generating the maps without even execute SQL/DDL script, i quit cocobase, i then restart it and when it tries to check for the repository the same error occurs

Btw conf is the following:

Win XP
Ibm JDK 1.3
Cocobase4 (latest version)
Postgresql 7.2

03-27-2002 08:00 AM
Click Here to See the Profile for Tlvenn    Find more posts by Tlvenn        Edit/Delete Message    Reply w/Quote    IP: Logged
admin
Administrator

Registered: Apr 2001
Posts: 19

Double check the database type that was used by postgreSQL for
this particular data type. It's possible that the driver
didn't give us valid information for a particular column and
this is the issue. For example your application is failing
with a Timestamp column, so reconcile the DDL that was
generated against your map & java class to ensure the types
are valid.

This is why we generate the DDL in a form that you can
easily edit. We're going to use the jdbc driver to give you
a best bet, but sometimes - depending on the driver - you
might need to modify the DDL to have optimal types for the
actual db...

THOUGHT Support

03-28-2002 09:53 AM
Click Here to See the Profile for admin    Find more posts by admin        Edit/Delete Message    Reply w/Quote    IP: Logged
All times are PST (US)    Post New Thread     Post A Reply
Forum Jump:
< Previous Thread     Next Thread >

Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author. Messages can be deleted by their author.
Posts: HTML code is OFF. Smilies are OFF. vB code is OFF. [IMG] code is OFF.

Admin Options:
Open / Close Thread
Move Thread
Delete Thread
Edit Thread

< Contact Us - THOUGHT Inc. >

Copyright © Jelsoft Enterprises Limited 2000.
Copyright 2001 All Rights Reserved, THOUGHT Inc.