Problema PAF-ECF e freedom

4 respostas
V

Olá. Estou implementando as mudanças conforme requisitos do PAF-ECF, mas estou tendo problemas. Consigo enviar alguns comandos corretamente à impressora, enquanto outros, não. A exceção é sempre a mesma. Um exemplo destas é esse:

Exception occurred during event dispatching: java.lang.UnsatisfiedLinkError: bemajava.Bematech.EspelhoMFD(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I at bemajava.Bematech.EspelhoMFD(Native Method) at org.freedom.ecf.driver.ECFBematech.EspelhoMFD(ECFBematech.java:1536) at org.freedom.ecf.app.ControllerECF.EspelhoMFD(ControllerECF.java:433) at org.freedom.modulos.pdv.EspelhoMFD.actionPerformed(EspelhoMFD.java:176) 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.Window.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.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.freedom.telas.FPrincipal.criatela(FPrincipal.java:525) at org.freedom.telas.Aplicativo.actionPerformed(Aplicativo.java:591) 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.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.Window.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)

estou utilizando a dll bemafi32. O que pode ser?

abraços.

4 Respostas

P

Iiii, acho melhor vc perguntar a area do Java Avançado sobre esse tema.

R

Melhor perguntar aos criadores do Freedom… Para resolver isso apenas analisano o código do projeto.

marvinla

Pelo que sei, a dll BemaFI32.dll não tem o método “EspelhoMFD” (pelo menos a versão que tenho aqui). Para efetuar a rotina de espelho, eu uso as seguntes funções :

Bematech_FI_DownloadMFD
Bematech_FI_FormatoDadosMFD

E pelo que parece pela exceção UnsatisfiedLinkError, a JVM não conseguiu encontrar a função com o nome EspelhoMFD.

Espero ter ajudado.

V

http://www.bematech.com.br/suporte/bemafi32/index.html

essa aqui é a página em que a bematech oferece todos os detalhes das funções da bemafi32.dll relacionadas ao PAF-ECF.

Criado 15 de fevereiro de 2011
Ultima resposta 15 de fev. de 2011
Respostas 4
Participantes 4