Partage
  • Partager sur Facebook
  • Partager sur Twitter

applet accede à une DLL

    28 mai 2009 à 12:31:34

    bonjour,
    j'ai une applet qui fait appel à ue classe pour faire l'impression via le port série,
    j'utilise l'api javacomm pour la communication série et ce dernier implemente une dll pour communique avec le port série, mon application d'impression marche trés bien, mais quand je l'appel via mon applet une erreur :-°
    java.lang.NullPointerException: name can't be null
    at java.io.FilePermission.init(Unknown Source)
    at java.io.FilePermission.<init>(Unknown Source)
    at java.lang.SecurityManager.checkDelete(Unknown Source)
    at javax.comm.CommPortIdentifier.addPortName(CommPortIdentifier.java:182)
    at com.sun.comm.Win32Driver.initialize(Win32Driver.java:47)
    at fr.billetel.impression.thprinter.test.JavaCom.<init>(JavaCom.java:113)
    at fr.billetel.impression.thprinter.test.AppletComm$1.actionPerformed(AppletComm.java:22)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    apparament je dois signé mon applet pour quel accede au ressources locales,
    mais j'ai cherché partout je rien trouvé pour me facilité la vie :p
    si vous avez des suggestions !!! >_<
    merci
    • Partager sur Facebook
    • Partager sur Twitter

    applet accede à une DLL

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown