I have a module working in client./designer scope in Ignition 7.9.10 to play mp3 file.
I convert it to Ignition 8.
When I try to play a file in Ignition 8, it’s Ok in the designer but Not Ok in the client.
In the client I have the following error
@Kevin.Herron
Any idea of what could be different beetween those 2 scopes in Ignition 8 ???
Error in the vision client :
12:18:44.383 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - open(C:\Users\lionel\sono-temp\42008f29-3ba6-4a11-a665-d12d73833492.mp3)
12:18:44.390 [AWT-EventQueue-0] ERROR com.bouyguesenergiesservices.ignition.client.ttsacapela.Mp3ScriptModule - openFile() - BasicPlayerException :
javazoom.jlgui.basicplayer.BasicPlayerException: javax.sound.sampled.UnsupportedAudioFileException: File of unsupported format
at javazoom.jlgui.basicplayer.BasicPlayer.initAudioInputStream(BasicPlayer.java:317)
at javazoom.jlgui.basicplayer.BasicPlayer.open(BasicPlayer.java:220)
at com.bouyguesenergiesservices.ignition.client.ttsacapela.Mp3ScriptModule.openFile(Mp3ScriptModule.java:42)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction.__call__(ScriptManager.java:514)
at org.python.core.PyObject.__call__(PyObject.java:413)
at org.python.pycode._pyx1910.f$0(<event:actionPerformed>:17)
at org.python.pycode._pyx1910.call_function(<event:actionPerformed>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:756)
at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.runActions(ActionAdapter.java:187)
at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.invoke(ActionAdapter.java:278)
at com.inductiveautomation.factorypmi.application.binding.action.RelayInvocationHandler.invoke(RelayInvocationHandler.java:57)
at com.sun.proxy.$Proxy99.actionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: javax.sound.sampled.UnsupportedAudioFileException: File of unsupported format
at java.desktop/javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
at javazoom.jlgui.basicplayer.BasicPlayer.initAudioInputStream(BasicPlayer.java:330)
at javazoom.jlgui.basicplayer.BasicPlayer.initAudioInputStream(BasicPlayer.java:266)
... 54 common frames omitted
In the designer, when it works :
12:32:05.791 [Thread-18] INFO com.bouyguesenergiesservices.ignition.common.ttsacapela.TtsAction - scriptGetVoices() - mapVoice.size()=76
12:32:19.520 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - open(C:\Users\lionel\sono-temp\80fee805-89a1-4d27-bf9b-d030a613b8ec.mp3)
12:32:19.566 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line
12:32:19.574 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line : Source format : MPEG1L3 44100.0 Hz, unknown bits per sample, stereo, unknown frame size, 38.28125 frames/second,
12:32:19.577 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line : Target format: PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian
12:32:19.811 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Line : com.sun.media.sound.DirectAudioDevice$DirectSDL@31fdd078
12:32:19.817 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - startPlayback called
12:32:19.819 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - initLine()
12:32:19.847 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Open Line : BufferSize=88200
12:32:19.856 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Master Gain Control : [-80.0,6.0206] 0.625
12:32:19.857 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Pan Control : [-1.0,1.0] 0.0078125
12:32:19.859 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Creating new thread
12:32:19.866 [BasicPlayer] INFO javazoom.jlgui.basicplayer.BasicPlayer - Thread Running
12:32:23.678 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Stream closed
12:32:23.680 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - stopPlayback() completed
12:32:23.678 [BasicPlayer] INFO javazoom.jlgui.basicplayer.BasicPlayer - Stream closed
12:32:23.678 [BasicPlayer] INFO javazoom.jlgui.basicplayer.BasicPlayer - Thread completed
12:32:32.281 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - open(C:\Users\lionel\sono-temp\c5545a29-7221-44e1-b3f9-df6633aabadb.mp3)
12:32:32.283 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Stream closed
12:32:32.291 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line
12:32:32.293 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line : Source format : MPEG1L3 44100.0 Hz, unknown bits per sample, stereo, unknown frame size, 38.28125 frames/second,
12:32:32.294 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Create Line : Target format: PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian
12:32:32.297 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Line : com.sun.media.sound.DirectAudioDevice$DirectSDL@290260cf
12:32:32.299 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - startPlayback called
12:32:32.300 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - initLine()
12:32:32.314 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Open Line : BufferSize=88200
12:32:32.316 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Master Gain Control : [-80.0,6.0206] 0.625
12:32:32.318 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Pan Control : [-1.0,1.0] 0.0078125
12:32:32.319 [AWT-EventQueue-0] INFO javazoom.jlgui.basicplayer.BasicPlayer - Creating new thread
12:32:32.328 [BasicPlayer] INFO javazoom.jlgui.basicplayer.BasicPlayer - Thread Running
Note : module-client.pom include :
<dependency>
<groupId>com.googlecode.soundlibs</groupId>
<artifactId>basicplayer</artifactId>
<version>3.0.0.0</version>
</dependency>