NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Binding data from DB into a Jtable

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
evepokua



Joined: 03 Feb 2009
Posts: 15

PostPosted: Wed Feb 10, 2010 11:22 am    Post subject: Binding data from DB into a Jtable Reply with quote

Hello everyone,

I have the following error. I am trying to bind data from my
DB into a Jtable using the following tutorial. When it's not bind
it runs ok. But binding it causes the following errors -



Tutorial -

http://netbeans.dzone.com/news/binding-jtable-swing-controls-

I am using netbeans 6.7 and SQL 2000 server. It is an enterprise application and I am able to retrieve data in my web pages but I get
the following error trying to run my application client.

Errors -

Internal Exception: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [ENTERPRISEdbPU] failed.
Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the attribute [basketItems] on the entity class [class entityJB.Items] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:144)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:168)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at enterprise.Main.initComponents(Main.java:6Cool
at enterprise.Main.<init>(Main.java:3Cool
at enterprise.Main$7.run(Main.java:325)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [ENTERPRISEdbPU] failed.
Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the attribute [basketItems] on the entity class [class entityJB.Items] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:644)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:172)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:240)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:256)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:154)
... 13 more
Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [ENTERPRISEdbPU] failed.
Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the attribute [basketItems] on the entity class [class entityJB.Items] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
at oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:228)
... 18 more
Caused by: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the attribute [basketItems] on the entity class [class entityJB.Items] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
at oracle.toplink.essentials.exceptions.ValidationException.invalidTypeForSerializedAttribute(ValidationException.java:963)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwInvalidTypeForSerializedAttribute(MetadataValidator.java:254)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processSerialized(DirectAccessor.java:302)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processJPAConverters(DirectAccessor.java:249)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processMappingConverter(DirectAccessor.java:287)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.BasicAccessor.processDirectToFieldMapping(BasicAccessor.java:188)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.BasicAccessor.process(BasicAccessor.java:160)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessor(ClassAccessor.java:528)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessorFields(ClassAccessor.java:541)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessors(ClassAccessor.java:567)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:498)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:288)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:298)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:608)
... 17 more

The following providers:
org.hibernate.ejb.HibernatePersistence
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at enterprise.Main.initComponents(Main.java:6Cool
at enterprise.Main.<init>(Main.java:3Cool
at enterprise.Main$7.run(Main.java:325)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
successfully logon
Caught an Exception: stafff logon details provided does not exist
javax.persistence.PersistenceException: No Persistence provider for EntityManager named enterprisedbPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:
javax.persistence.PersistenceException
javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [ENTERPRISEdbPU] failed.
Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the attribute [basketItems] on the entity class [class entityJB.Items] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:644)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:195)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at enterprise.Main.initComponents(Main.java:6Cool
at enterprise.Main.<init>(Main.java:3Cool
at enterprise.Logon.stflogin(Logon.java:133)
at enterprise.Logon.logonbutActionPerformed(Logon.java:124)
at enterprise.Logon.access$000(Logon.java:16)
at enterprise.Logon$1.actionPerformed(Logon.java:55)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6134)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5899)
at java.awt.Container.processEvent(Container.java:2023)
at java.awt.Component.dispatchEventImpl(Component.java:4501)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
at java.awt.Container.dispatchEventImpl(Container.java:2067)
at java.awt.Window.dispatchEventImpl(Window.java:2458)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [enterprisedbPU] failed.
Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the attribute [basketItems] on the entity class [class entityJB.Items] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
at oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:228)
... 35 more
Caused by: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the attribute [baskItems] on the entity class [class entityJB.Items] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
at oracle.toplink.essentials.exceptions.ValidationException.invalidTypeForSerializedAttribute(ValidationException.java:963)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwInvalidTypeForSerializedAttribute(MetadataValidator.java:254)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processSerialized(DirectAccessor.java:302)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processJPAConverters(DirectAccessor.java:249)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processMappingConverter(DirectAccessor.java:287)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.BasicAccessor.processDirectToFieldMapping(BasicAccessor.java:188)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.BasicAccessor.process(BasicAccessor.java:160)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessor(ClassAccessor.java:528)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessorFields(ClassAccessor.java:541)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessors(ClassAccessor.java:567)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:498)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:288)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:298)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:608)
... 34 more

The following providers:
org.hibernate.ejb.HibernatePersistence
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at enterprise.Main.initComponents(Main.java:6Cool
at enterprise.Main.<init>(Main.java:3Cool
at enterprise.Logon.stflogin(Logon.java:133)
at enterprise.Logon.logonbutActionPerformed(Logon.java:124)
at enterprise.Logon.access$000(Logon.java:16)
at enterprise.Logon$1.actionPerformed(Logon.java:55)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6134)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5899)
at java.awt.Container.processEvent(Container.java:2023)
at java.awt.Component.dispatchEventImpl(Component.java:4501)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
at java.awt.Container.dispatchEventImpl(Container.java:2067)
at java.awt.Window.dispatchEventImpl(Window.java:2458)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)




Sorry for the long error

Thanks

eve


Last edited by evepokua on Sun Mar 07, 2010 3:06 pm; edited 1 time in total
Back to top
jhalupka



Joined: 05 Feb 2010
Posts: 52

PostPosted: Wed Feb 10, 2010 3:32 pm    Post subject: Re: Binding data from DB into a Jtable Reply with quote

The clue is the following line in the exception log:

The type [interface java.util.List] for the attribute [basketItems] on the
entity class [class entityJB.Baleent] is not a valid type for a serialized
mapping. The attribute type must implement the Serializable interface.

basketItems is a List of objects. Whatever that object's type is must not
serializable and apparently is not.


eveeve wrote:
Quote:

Hello everyone,

I have the following error. I am trying to bind data from my
DB into a Jtable using the following tutorial. When it's not bind
it runs ok. But binding it causes the following errors -

I am using netbeans 6.7 and SQL 2000 server. It is an enterprise
application and I am able to retrieve data in my web pages but I get the
following error trying to run my application client.

Internal Exception: javax.persistence.PersistenceException: Exception
[TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs
(12/23/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [ENTERPRISEdbPU]
failed.
Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials -
2.1 (Build b60e-fcs (12/23/2008))):
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the
attribute [basketItems] on the entity class [class entityJB.Baleent] is
not a valid type for a serialized mapping. The attribute type must
implement the Serializable interface.

Caused by: javax.persistence.PersistenceException: Exception
[TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs
(12/23/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException


--
View this message in context: http://old.nabble.com/Binding-data-from-DB-into-a-Jtable-tp27530007p27532730.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
Anand Rathi
Posted via mailing list.





PostPosted: Thu Feb 11, 2010 3:55 am    Post subject: Problem with different version of netbeans Reply with quote

Hi All,

I have developed java swing based application on netbeans IDE 6.5 when I am trying to invoke this in Netbeans IDE 4.1 it is giving problem.

Is netbeans version are not backward compatible. NEW NETBEANS VERSION SHOULD SUPPORT OLD CODE ALSO.


Thanks and Regards,
Anand Rathi
+91 99700 97902

============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================
Back to top
Aurelian Tutuianu
Posted via mailing list.





PostPosted: Thu Feb 11, 2010 9:42 am    Post subject: Re: Problem with different version of netbeans Reply with quote

Maybe I am wrong, but I think something else about backward compatibility.
If you have done something in NB4.1, that should work in NB6.5. If is backward compatibility.
If you have done something in NB6.5, that will probable NOT work in NB4.1, because of the new features added in the meantime.

So backward compatibility means all you have in a previous (older) version, works as it is in future versions.

On Thu, Feb 11, 2010 at 5:55 AM, Anand Rathi <address-removed ([email]address-removed[/email])> wrote:
Quote:

Hi All,

I have developed java swing based application on netbeans IDE 6.5 when I am trying to invoke this in Netbeans IDE 4.1 it is giving problem.

Is netbeans version are not backward compatible. NEW NETBEANS VERSION SHOULD SUPPORT OLD CODE ALSO.


Thanks and Regards,
Anand Rathi
+91 99700 97902

============================================================================================================================Disclaimer:
Back to top
Anand Rathi
Posted via mailing list.





PostPosted: Thu Feb 11, 2010 12:10 pm    Post subject: Re: Problem with different version of netbeans Reply with quote

Aurelian,

Thanks for reply. I have done further investigation and came to know that problem is due to form version. Just changing the form version in .form file resolves my problem.
<Form version="1.0">

But issue here is that when netbeans create JFrame/JPanel it give form version by itself. It will never ask developer to enter form version.

If two developers are working on different version of Netbeans IDE then they will face problem L

Anand Rathi


From: Aurelian Tutuianu [mailto:address-removed]
Sent: Thursday, February 11, 2010 3:11 PM
To: address-removed
Subject: [nbj2ee] Re: Problem with different version of netbeans


Maybe I am wrong, but I think something else about backward compatibility.
If you have done something in NB4.1, that should work in NB6.5. If is backward compatibility.
If you have done something in NB6.5, that will probable NOT work in NB4.1, because of the new features added in the meantime.

So backward compatibility means all you have in a previous (older) version, works as it is in future versions.
On Thu, Feb 11, 2010 at 5:55 AM, Anand Rathi <address-removed ([email]address-removed[/email])> wrote:

Hi All,

I have developed java swing based application on netbeans IDE 6.5 when I am trying to invoke this in Netbeans IDE 4.1 it is giving problem.

Is netbeans version are not backward compatible. NEW NETBEANS VERSION SHOULD SUPPORT OLD CODE ALSO.


Thanks and Regards,
Anand Rathi
+91 99700 97902

============================================================================================================================Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================
Back to top
evepokua



Joined: 03 Feb 2009
Posts: 15

PostPosted: Thu Feb 11, 2010 12:25 pm    Post subject: Re: Binding data from DB into a Jtable Reply with quote

Hello,


Yes, but I am able to retrieve data and display it in a web page from
this same DB table, using jsps, and jspx. So, why I'm I getting an error with the appclient?

I'll make some changes

Thanks

eve

jhalupka wrote:
The clue is the following line in the exception log:

The type [interface java.util.List] for the attribute [basketItems] on the
entity class [class entityJB.Items] is not a valid type for a serialized
mapping. The attribute type must implement the Serializable interface.

basketItems is a List of objects. Whatever that object's type is must not
serializable and apparently is not.


eveeve wrote:
Quote:

Hello everyone,

I have the following error. I am trying to bind data from my
DB into a Jtable using the following tutorial. When it's not bind
it runs ok. But binding it causes the following errors -

I am using netbeans 6.7 and SQL 2000 server. It is an enterprise
application and I am able to retrieve data in my web pages but I get the
following error trying to run my application client.

Internal Exception: javax.persistence.PersistenceException: Exception
[TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs
(12/23/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [ENTERPRISEdbPU]
failed.
Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials -
2.1 (Build b60e-fcs (12/23/2008))):
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The type [interface java.util.List] for the
attribute [basketItems] on the entity class [class entityJB.Items] is
not a valid type for a serialized mapping. The attribute type must
implement the Serializable interface.

Caused by: javax.persistence.PersistenceException: Exception
[TOPLINK-28018] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs
(12/23/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException


--
View this message in context: http://old.nabble.com/Binding-data-from-DB-into-a-Jtable-tp27530007p27532730.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.


Last edited by evepokua on Sun Mar 07, 2010 3:08 pm; edited 1 time in total
Back to top
jhalupka



Joined: 05 Feb 2010
Posts: 52

PostPosted: Fri Feb 12, 2010 8:36 am    Post subject: Re: Binding data from DB into a Jtable Reply with quote

Are those JSPs using your persistence framework?

If they connect to and access the database directly, then this problem won't
occur.


eveeve wrote:
Quote:

Yes, but I am able to retrieve data and display it in a web page from
this same DB table, using jsps, and jspx. So, why I'm I getting an error
with the appclient?


--
View this message in context: http://old.nabble.com/Binding-data-from-DB-into-a-Jtable-tp27530007p27556738.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
evepokua



Joined: 03 Feb 2009
Posts: 15

PostPosted: Fri Feb 12, 2010 1:51 pm    Post subject: Re: Binding data from DB into a Jtable Reply with quote

Hi,


So if I create a method and bind the method to my JFrame, I should
work? Because, my JSPs access data through a method.

Thanks

eve


jhalupka wrote:
Are those JSPs using your persistence framework?

If they connect to and access the database directly, then this problem won't
occur.


eveeve wrote:
Quote:

Yes, but I am able to retrieve data and display it in a web page from
this same DB table, using jsps, and jspx. So, why I'm I getting an error
with the appclient?


--
View this message in context: http://old.nabble.com/Binding-data-from-DB-into-a-Jtable-tp27530007p27556738.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
evepokua



Joined: 03 Feb 2009
Posts: 15

PostPosted: Sun Mar 07, 2010 3:12 pm    Post subject: Reply with quote

Hi,

I have resolved this issue. Please, take a look at the follow site-

http://wiki.netbeans.org/DevFaqAppClientOnNbPlatformTut

it was very helpful.

Thanks

eve
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo