Hi
ist mein erster Post hier im Forum, bitte um Nachsicht wenn der Post an der falschen Stelle ist.
Habe folgendes Problem:
Ich habe ein Tabelle in der CellEditor ein JTextArea ist.
Wenn ich Text von Hand eingebe, beliebig lang, ist alles wunder bar.
Wenn ich Text aus der Zwischenablage einfüge der nicht mehr Zeilen hat als
die TexArea(Sichtbar ohne Scrollbar) ist auch noch alles ok.
Jetzt kommts, wenn ich aber Text einfüge der Länger ist als das Textfeld bekomme ich beim commit
folgende Fehlermeldung (Auszug):
javax.persistence.PersistenceException: Could not execute JDBC batch update
at com.util.HibernateUtil.commitTransaction(HibernateUtil.java:191) at com.style.productionmanual.ProductionManualGuiBuilder.persistProductionManual(ProductionManualGuiBuilder.java:1116)at com.application.action.StyleActionController.handleApplayProductionManualStyle(StyleActionController.java:326)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Das blöde ist ich komme einfach nicht weiter, auch die SQL-Ausgabe Hilft nicht wirklich weiter.
Das Objekt was unter der Zeile liegt wird durch einen TableCellListener aktualisiert.
Ich hoffe das jemand von euch einen Tip für mich hat.
Schon mal vielen Dank.
Gruß
Mirco
PS: Benutze Hibernate für die komi. zur DB
ist mein erster Post hier im Forum, bitte um Nachsicht wenn der Post an der falschen Stelle ist.
Habe folgendes Problem:
Ich habe ein Tabelle in der CellEditor ein JTextArea ist.
Wenn ich Text von Hand eingebe, beliebig lang, ist alles wunder bar.
Wenn ich Text aus der Zwischenablage einfüge der nicht mehr Zeilen hat als
die TexArea(Sichtbar ohne Scrollbar) ist auch noch alles ok.
Jetzt kommts, wenn ich aber Text einfüge der Länger ist als das Textfeld bekomme ich beim commit
folgende Fehlermeldung (Auszug):
javax.persistence.PersistenceException: Could not execute JDBC batch update
at com.util.HibernateUtil.commitTransaction(HibernateUtil.java:191) at com.style.productionmanual.ProductionManualGuiBuilder.persistProductionManual(ProductionManualGuiBuilder.java:1116)at com.application.action.StyleActionController.handleApplayProductionManualStyle(StyleActionController.java:326)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Das blöde ist ich komme einfach nicht weiter, auch die SQL-Ausgabe Hilft nicht wirklich weiter.
Das Objekt was unter der Zeile liegt wird durch einen TableCellListener aktualisiert.
Ich hoffe das jemand von euch einen Tip für mich hat.
Schon mal vielen Dank.
Gruß
Mirco
PS: Benutze Hibernate für die komi. zur DB