HI Hoan,
The error doesn’t really mean anything to me. Please provide the complete
output of running one of the example programs you refer to which I presume are
the one in the documentation at:
http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtJdbcHibernate#Building%20and%20running%20the%20example
which work for me with the leatest Virtuoso 6.2 components against hibernate
3.3:
$ which ant
/usr/bin/ant
hugh-williams-computer-3932:ex1 hughwilliams$ ant run
Buildfile: /Users/hughwilliams/hibernate/ex1/build.xml
clean:
[delete] Deleting directory /Users/hughwilliams/hibernate/ex1/bin
[mkdir] Created dir: /Users/hughwilliams/hibernate/ex1/bin
copy-resources:
[copy] Copying 3 files to /Users/hughwilliams/hibernate/ex1/bin
[copy] Copied 2 empty directories to 1 empty directory under
/Users/hughwilliams/hibernate/ex1/bin
compile:
[javac] /Users/hughwilliams/hibernate/ex1/build.xml:21: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to
false for repeatable builds
[javac] Compiling 3 source files to /Users/hughwilliams/hibernate/ex1/bin
run:
[java] Hibernate: insert into Event (EVENT_DATE, title) values (?, ?)
[java] Hibernate: select identity_value()
[java] Hibernate: insert into Event (EVENT_DATE, title) values (?, ?)
[java] Hibernate: select identity_value()
[java] Hibernate: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE
as EVENT2_0_, event0_.title as title0_ from Event event0_
[java] Event: My Event1 Time: 2011-04-25 12:51:08.0
[java] Event: My Event2 Time: 2011-04-25 12:51:13.0
BUILD SUCCESSFUL
Total time: 12 seconds
$
Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink
On 25 Apr 2011, at 11:23, Nguyen Mau Quoc Hoan wrote:
Hi.
I'm doing some Hibernate examples from Virtuoso document but I failed to run
it. I always got the same error whatever virtuoso hibernate project. This is
the error report:
Exception in thread main java.lang.ExceptionInInitializerError
at MyUtil.HibernateUtil.clinit(HibernateUtil.java:16)
at events.EventManager.createAndStoreEvent(Unknown Source)
at events.EventManager.main(Unknown Source)
Caused by: java.lang.NoSuchFieldError: INTEGER
at virtuoso.hibernate.VirtuosoDialect.init(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:156)
at
org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:99)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:117)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2836)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2832)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1843)
at MyUtil.HibernateUtil.clinit(HibernateUtil.java:12)
What's problem I got here? I already downloaded all the necessary library.
Thanks in advance.
--
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been
demonstrated beyond question. Learn why your peers are replacing JEE
containers with lightweight application servers - and what you can gain
from the move.
http://p.sf.net/sfu/vmware-sfemails___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users