I found the problem and I think everyone would be interested in this one,
theproblem was caused from Locale setting.
a Locale related method String.toLowerCase() caused the problem for example
BIGINT should be "bigint" when its case is lowered, but in Turkish it is
retruned to "bıgınt" so the mappings are read
falsely if you happen to encounter this kind of a problem consider Locale
setting first.
Best Regards,
On 11/14/05, Armin Waibel <[EMAIL PROTECTED]> wrote:
>
> Hi Tuna,
>
> please could you post the whole stack trace, then we can find the root
> exception.
>
> regards,
> Armin
>
> Tuna Ozkasap wrote:
> > Hi Everyone,
> >
> > Here is my problem; when I create the PersistenceBroker instance by
> >
> ----------------------------------------------------------------------------------------------------
> > PBKey pbKey = new PBKey("default");
> > broker = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
> >
> ----------------------------------------------------------------------------------------------------
> > I get error of mismatching type;
> >
> > [org.apache.ojb.broker.metadata.RepositoryXmlHandler] ERROR: Exception
> while
> > read metadata
> > Can't assign the specified jdbc field-type 'BIGINT' for field:
> > <field-descriptor
> > name="maxKey"
> > column="MAX_KEY"
> > jdbc-type="BIGINT"
> > access="readwrite"
> > />
> >
> > this mapping is in the repository_internal.xml, it is not my mapping, it
> is
> > a default mapping by OJB.
> > Though it gives an error, what can be the problem? Thank you for your
> help.
> > --
> > Tuna Ozkasap
> > Yazılım Mühendisi
> > Trend-Tech Cyberpark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Tuna Ozkasap
Yazılım Mühendisi
Trend-Tech Cyberpark