Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO/Teneo/Hibernate] java.lang.IllegalArgumentException: Invalid type: java.math.BigDecimal
[CDO/Teneo/Hibernate] java.lang.IllegalArgumentException: Invalid type: java.math.BigDecimal [message #883327] Fri, 08 June 2012 09:47 Go to next message
Matthias Casjens is currently offline Matthias CasjensFriend
Messages: 9
Registered: July 2009
Junior Member
I've been testing the CDO export with Teneo and Hibernate again and got an error:

java.lang.IllegalArgumentException: Invalid type: java.math.BigDecimal
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.type(CDOServerExporter.java:702)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportFeature(CDOServerExporter.java:582)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportFeature(CDOServerExporter.java:537)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportRevision(CDOServerExporter.java:525)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportRevision(CDOServerExporter.java:1)
	at org.eclipse.emf.cdo.server.CDOServerExporter$2.handleRevision(CDOServerExporter.java:192)
	at org.eclipse.emf.cdo.common.revision.CDORevisionHandler$Filtered.handleRevision(CDORevisionHandler.java:55)
	at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.handleRevisionsByEClass(HibernateStoreAccessor.java:461)
	at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.handleRevisions(HibernateStoreAccessor.java:444)
	at org.eclipse.emf.cdo.internal.server.Repository.handleRevisions(Repository.java:1398)
	at org.eclipse.emf.cdo.server.CDOServerExporter.exportRevisions(CDOServerExporter.java:185)
	at org.eclipse.emf.cdo.server.CDOServerExporter.exportBranch(CDOServerExporter.java:180)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportBranch(CDOServerExporter.java:464)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportBranch(CDOServerExporter.java:1)
	at org.eclipse.emf.cdo.server.CDOServerExporter.exportBranches(CDOServerExporter.java:157)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportBranches(CDOServerExporter.java:447)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportBranches(CDOServerExporter.java:1)
	at org.eclipse.emf.cdo.server.CDOServerExporter.exportAll(CDOServerExporter.java:113)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportAll(CDOServerExporter.java:402)
	at org.eclipse.emf.cdo.server.CDOServerExporter$XML.exportAll(CDOServerExporter.java:1)
	at org.eclipse.emf.cdo.server.CDOServerExporter.exportRepository(CDOServerExporter.java:92)
	at org.eclipse.emf.cdo.internal.server.bundle.CDOCommandProvider.exportXML(CDOCommandProvider.java:208)
	at org.eclipse.emf.cdo.internal.server.bundle.CDOCommandProvider._cdo(CDOCommandProvider.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:209)
	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:155)
	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:140)
	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:104)
	at java.lang.Thread.run(Unknown Source)


I'm currently using a CDO 4.1 from May 8th.
Re: [CDO/Teneo/Hibernate] java.lang.IllegalArgumentException: Invalid type: java.math.BigDecimal [message #885003 is a reply to message #883327] Tue, 12 June 2012 08:53 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 835
Registered: July 2009
Senior Member
Using git master: it seems there is no support for BigDecimals in the exporter/importer.

@Eike
Is it too late for contributions to 4.1?
Re: [CDO/Teneo/Hibernate] java.lang.IllegalArgumentException: Invalid type: java.math.BigDecimal [message #885072 is a reply to message #885003] Tue, 12 June 2012 12:11 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 835
Registered: July 2009
Senior Member
There is a bug report which is already fixed in git master:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=382346
Re: [CDO/Teneo/Hibernate] java.lang.IllegalArgumentException: Invalid type: java.math.BigDecimal [message #888536 is a reply to message #885072] Mon, 18 June 2012 08:49 Go to previous message
Matthias Casjens is currently offline Matthias CasjensFriend
Messages: 9
Registered: July 2009
Junior Member
Tried it with the build from Friday and it works. Thanks for fixing this.
Previous Topic:Features UML Model can't be expressed ina Ecore Model
Next Topic:[CDO] Collaborative work on UML models
Goto Forum:
  


Current Time: Sat Jul 22 09:08:07 GMT 2017

Powered by FUDForum. Page generated in 0.03305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software