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 :
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
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
si vous avez des suggestions !!!
merci