bonjour,
voila je veux recupere du texte d'un jEditorPane pour l'envoyer a une base access sur un champ memo
jusque la tout va bien
tout se corse l'orsque je veut faire du copier coller dans le jEditorPane appartir d'un document word ou d'une page web
voici mon code
le problemme est que quandt je copie appartir d'un fichier texte sela fonctionne mé des que c'est un document word ou une page wed sela me sort l'exeption suivante
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 String hhhhh; hhhhh="**"+jEditorPane2.getText()+"***"; conv.statement.executeUpdate("insert into Discusstion values(" + a + ",'"+idclt+" ','" + aa+ "','" + jComboBox1.getItemAt(jComboBox1.getSelectedIndex()).toString() + "','" + hhhhh+ "','" + datte + "','" + service + "')");
merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 15 juin 2009 22:46:14 naustradamus.Naustradamusi jButton9ActionPerformed GRAVE: null java.sql.SQLException: General error at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6986) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3110) at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338) at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288) at naustradamus.Naustradamusi.jButton9ActionPerformed(Naustradamusi.java:1655) at naustradamus.Naustradamusi.access$2000(Naustradamusi.java:36) at naustradamus.Naustradamusi$21.actionPerformed(Naustradamusi.java:857) 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:6216) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5981) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4583) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4413) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4413) 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)
Partager