Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependencies and can not connect to database #17

Open
hunghp666 opened this issue Oct 8, 2022 · 2 comments
Open

Missing dependencies and can not connect to database #17

hunghp666 opened this issue Oct 8, 2022 · 2 comments

Comments

@hunghp666
Copy link

Hi
I'm new to this project. Thanks for your effort on this.
I can build it with maven just fine, its running. Now I want to implement something new to this codebase.
I check out this source and try to run in Eclipse but show some errors:

  1. Missing some dependencies as show in this screen shot

Screenshot 2022-10-08 071817

  1. When starting app it cannot connect to database. Do i need to manual add something to make it work. Thanks and brgs,

com.floreantpos.util.DatabaseConnectionException: org.hibernate.InstantiationException: could not instantiate test objectcom.floreantpos.model.ModifierGroup
ERROR: 08-Oct-2022 07:07:47: org.hibernate.InstantiationException: could not instantiate test objectcom.floreantpos.model.ModifierGroup
at com.floreantpos.util.DatabaseUtil.initialize(DatabaseUtil.java:548)
at com.floreantpos.main.Application.initializeSystem(Application.java:167)
at com.floreantpos.main.Application.start(Application.java:135)
at com.floreantpos.main.Main.main(Main.java:58)
Caused by: org.hibernate.InstantiationException: could not instantiate test objectcom.floreantpos.model.ModifierGroup
at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:25)
at org.hibernate.engine.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:44)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:124)
at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at com.floreantpos.model.dao._RootDAO.reInitialize(_RootDAO.java:260)
at com.floreantpos.util.DatabaseUtil.initialize(DatabaseUtil.java:544)
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:22)
... 13 more
Caused by: java.lang.Error: Unresolved compilation problems:
The import javax.xml.bind cannot be resolved
XmlRootElement cannot be resolved to a type

at com.floreantpos.model.ModifierGroup.<init>(ModifierGroup.java:3)
... 19 more

ERROR: 08-Oct-2022 07:07:47: com.floreantpos.util.DatabaseConnectionException: org.hibernate.InstantiationException: could not instantiate test objectcom.floreantpos.model.ModifierGroup

@fat-tire
Copy link
Owner

Hmm. Im' not sure. I believe there have been more updates to the floreant code upstream that aren't in this git repo-- did you check there to see if there's any fix?

@hunghp666
Copy link
Author

Thanks. I tried with original repo. It stills show errors but I can build it with no problem. Maybe I'm missing some IDE configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants