: Illegal character in opaque part at index 2:

824 views
Skip to first unread message

Gareth Murfin

unread,
Apr 23, 2014, 9:36:53 AM4/23/14
to codenameone...@googlegroups.com
I selected a video using a modified version of "openImageGallery" and tried to play in simulator, using this MediaPlayer.setDataSource() - and got this strange error. 

[EDT] 0:0:7,626 - ####StateMachine:USER ADDED VIDEO FROM:file://home/goonMercy/VIDEO0029.mp4
at com.codename1.ui.Display$1.run(Display.java:741)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Users\user\.cn1\goonMercy\VIDEO0029.mp4
at javafx.scene.media.Media.<init>(Media.java:361)
at com.codename1.impl.javase.JavaSEPort$CodenameOneMediaPlayer.<init>(JavaSEPort.java:5192)
at com.codename1.impl.javase.JavaSEPort$44.run(JavaSEPort.java:4166)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:17)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:67)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Users\user\.cn1\goonMercy\VIDEO0029.mp4
at java.net.URI$Parser.fail(URI.java:2829)
at java.net.URI$Parser.checkChars(URI.java:3002)
at java.net.URI$Parser.parse(URI.java:3039)
at java.net.URI.<init>(URI.java:595)
at javafx.scene.media.Media.<init>(Media.java:359)
... 11 more

Shai Almog

unread,
Apr 23, 2014, 1:42:58 PM4/23/14
to codenameone...@googlegroups.com
I see a potential issue here. We'll fix it for the next update.

Gareth Murfin

unread,
Aug 10, 2014, 2:45:50 PM8/10/14
to codenameone...@googlegroups.com
This works great now thanks.
Reply all
Reply to author
Forward
0 new messages