Problème Java (Unknow Source)

Problème Java (Unknow Source) - Java - Programmation

Marsh Posté le 15-04-2010 à 10:08:51    

Bonjour,
 
je suis actuellement entrain de me coder une applet et j'ai un petit soucis... Lorsque je lance le run et que je teste tout fonctionne correctement, en cliquant sur un bouton j'arrive à obtenir l'affichage de mon tableau mais lorsque je le lance à partir du navigateur je n'obtiens plus rien...
 
Dans un premier temps voici ou se trouve l'erreur :

Code :
  1. public void actionPerformed(ActionEvent ae)
  2.   {
  3.    if (ae.getActionCommand() == "Tab" )
  4.    {
  5.     <souligne>RequestManager.displayInTab(StationPanel.getTagSQ(), timePanel.getStartDate(), timePanel.getEndDate());</souligne>
  6.    }


 
Et voici ma table concernée (une partie car elle est grande):

Code :
  1. public static void displayInTab(ArrayList<String> tabTag, Date startDate, Date endDate)
  2. {
  3.  HashMap<String, Statistique> statList = StationPanel.getStatistiques();
  4.  TabFrame tabFrame = new TabFrame(startDate, endDate);
  5. ........


 
Pour finir voici mes erreurs, la ligne 73 est celle soulignée :

Code :
  1. Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDataset
  2. at com.actemium.syclopp.analyser.AnalyserPanel$1.actionPerformed(AnalyserPanel.java:113)
  3. at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
  4. at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  5. at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
  6. at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
  7. at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
  8. at java.awt.Component.processMouseEvent(Unknown Source)
  9. at javax.swing.JComponent.processMouseEvent(Unknown Source)
  10. at java.awt.Component.processEvent(Unknown Source)
  11. at java.awt.Container.processEvent(Unknown Source)
  12. at java.awt.Component.dispatchEventImpl(Unknown Source)
  13. at java.awt.Container.dispatchEventImpl(Unknown Source)
  14. at java.awt.Component.dispatchEvent(Unknown Source)
  15. at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
  16. at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
  17. at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
  18. at java.awt.Container.dispatchEventImpl(Unknown Source)
  19. at java.awt.Component.dispatchEvent(Unknown Source)
  20. at java.awt.EventQueue.dispatchEvent(Unknown Source)
  21. at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
  22. at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
  23. at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  24. at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  25. at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  26. at java.awt.EventDispatchThread.run(Unknown Source)
  27. Caused by: java.lang.ClassNotFoundException: org.jfree.data.category.CategoryDataset
  28. at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
  29. at java.lang.ClassLoader.loadClass(Unknown Source)
  30. at java.lang.ClassLoader.loadClass(Unknown Source)
  31. ... 25 more
  32. Caused by: java.io.IOException: open HTTP connection failed:http://localhost/Docs/org/jfree/data/category/CategoryDataset.class
  33. at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
  34. at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
  35. at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
  36. at java.security.AccessController.doPrivileged(Native Method)
  37. ... 28 more


 
Merci beaucoup pour votre aide ! ;)

Reply

Marsh Posté le 15-04-2010 à 10:08:51   

Reply

Marsh Posté le 15-04-2010 à 10:33:19    

la classe org/jfree/data/category/CategoryDataset n'est pas trouvée, ca veut dire que tu n'as pas chargé le jar de jfreechart... (ou en tout cas que la JVM n'a pas réussi à le trouver).

Reply

Marsh Posté le 15-04-2010 à 14:48:36    

Ok impec ! Merci beaucoup !
Problème résolu

Reply

Marsh Posté le 15-04-2010 à 14:55:06    

ah aussi... J'ai créer une boite "enregistrer sous" qui fonctionne aussi très bien mais pas sur le navigateur... Le message ce coup ci est :
 

Code :
  1. Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
  2. at java.security.AccessControlContext.checkPermission(Unknown Source)
  3. at java.security.AccessController.checkPermission(Unknown Source)
  4. at java.lang.SecurityManager.checkPermission(Unknown Source)
  5. at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
  6. at java.lang.System.getProperty(Unknown Source)
  7. at java.io.Win32FileSystem.getUserPath(Unknown Source)
  8. at java.io.Win32FileSystem.resolve(Unknown Source)
  9. at java.io.File.getAbsolutePath(Unknown Source)
  10. at javax.swing.filechooser.WindowsFileSystemView.isFloppyDrive(Unknown Source)
  11. at javax.swing.plaf.basic.BasicFileChooserUI$BasicFileView.getIcon(Unknown Source)
  12. at javax.swing.JFileChooser.getIcon(Unknown Source)
  13. at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxRenderer.getListCellRendererComponent(Unknown Source)
  14. at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
  15. at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
  16. at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(Unknown Source)
  17. at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
  18. at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
  19. at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
  20. at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
  21. at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
  22. at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
  23. at javax.swing.JList.setSelectedIndex(Unknown Source)
  24. at javax.swing.plaf.basic.BasicComboPopup.setListSelection(Unknown Source)
  25. at javax.swing.plaf.basic.BasicComboPopup.access$300(Unknown Source)
  26. at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(Unknown Source)
  27. at javax.swing.JComboBox.fireItemStateChanged(Unknown Source)
  28. at javax.swing.JComboBox.selectedItemChanged(Unknown Source)
  29. at javax.swing.JComboBox.contentsChanged(Unknown Source)
  30. at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
  31. at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem(Unknown Source)
  32. at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem(Unknown Source)
  33. at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.access$900(Unknown Source)
  34. at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(Unknown Source)
  35. at javax.swing.plaf.metal.MetalFileChooserUI.access$1200(Unknown Source)
  36. at javax.swing.plaf.metal.MetalFileChooserUI$5.propertyChange(Unknown Source)
  37. at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
  38. at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
  39. at java.awt.Component.firePropertyChange(Unknown Source)
  40. at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
  41. at javax.swing.JFileChooser.<init>(Unknown Source)
  42. at javax.swing.JFileChooser.<init>(Unknown Source)
  43. at com.actemium.syclopp.analyser.TabCsvFrame.source(TabCsvFrame.java:132)
  44. at com.actemium.syclopp.analyser.TabCsvFrame.<init>(TabCsvFrame.java:39)
  45. at com.actemium.syclopp.analyser.RequestManager.exportInCSV(RequestManager.java:174)
  46. at com.actemium.syclopp.analyser.AnalyserPanel$1.actionPerformed(AnalyserPanel.java:121)
  47. at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
  48. at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  49. at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
  50. at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
  51. at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
  52. at java.awt.Component.processMouseEvent(Unknown Source)
  53. at javax.swing.JComponent.processMouseEvent(Unknown Source)
  54. at java.awt.Component.processEvent(Unknown Source)
  55. at java.awt.Container.processEvent(Unknown Source)
  56. at java.awt.Component.dispatchEventImpl(Unknown Source)
  57. at java.awt.Container.dispatchEventImpl(Unknown Source)
  58. at java.awt.Component.dispatchEvent(Unknown Source)
  59. at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
  60. at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
  61. at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
  62. at java.awt.Container.dispatchEventImpl(Unknown Source)
  63. at java.awt.Component.dispatchEvent(Unknown Source)
  64. at java.awt.EventQueue.dispatchEvent(Unknown Source)
  65. at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
  66. at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
  67. at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  68. at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  69. at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  70. at java.awt.EventDispatchThread.run(Unknown Source)
  71. network: Entrée de cache introuvable [URL : http://localhost/docs/History/2010 [...] 000_$F.zip, version : null]
  72. network: Connexion de http://localhost/docs/History/2010 [...] 000_$F.zip avec proxy=DIRECT
  73. network: Connexion de http://localhost:80/ avec proxy=DIRECT
  74. network: Entrée de cache introuvable [URL : http://localhost/docs/History/2010 [...] 00_$10.zip, version : null]
  75. network: Connexion de http://localhost/docs/History/2010 [...] 00_$10.zip avec proxy=DIRECT


 
Avez vous une idée des modifications à apporter ?
Merci


Message édité par yokooo le 15-04-2010 à 14:55:52
Reply

Marsh Posté le 15-04-2010 à 16:18:39    

Sans signer ton applet tu ne peux pas accéder au filesytem local

Reply

Marsh Posté le 15-04-2010 à 16:19:12    

Ok parfait tout est ok ! Merci

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed