Results 1 to 3 of 3

Thread: PatternSyntaxException: Illegal/unsupported escape sequence near index 3

  1. #1
    Join Date
    Dec 2011
    Posts
    2

    Question PatternSyntaxException: Illegal/unsupported escape sequence near index 3

    Hello everyone,

    I have to migrate wowza from linux to windows. The problem is that when I write windows paths I am getting this exception whenever I try to play a movie. What is the correct syntax for paths under windows? Anyone knows?

    Caused by: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3
    C:\Users\Administrator\Environment\storage\content\
       ^
            at java.util.regex.Pattern.error(Pattern.java:1713)
            at java.util.regex.Pattern.escape(Pattern.java:2177)
            at java.util.regex.Pattern.atom(Pattern.java:1952)
            at java.util.regex.Pattern.sequence(Pattern.java:1885)
            at java.util.regex.Pattern.expr(Pattern.java:1752)
            at java.util.regex.Pattern.compile(Pattern.java:1460)
            at java.util.regex.Pattern.<init>(Pattern.java:1133)
            at java.util.regex.Pattern.compile(Pattern.java:823)
            at java.lang.String.replaceFirst(String.java:2146)
            at com.indieplaya.wms.application.AbstractPlayModule.trimRoot(AbstractPlayModule.java:269)
            at com.indieplaya.wms.application.PreviewModule.play(PreviewModule.java:168)
            at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
            at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
            at $Proxy60.play(Unknown Source)
    Thanks in advance.
    Agustin

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    Try this:
    C:\\Users\\Administrator\\Environment\\storage\\content\\

    Please let me know if it works,

    Jason

  3. #3
    Join Date
    Dec 2011
    Posts
    2

    Default

    Hi Jason,

    Thanks for your reply. I found out that my main problem was that I was changing the paths in a different file so I couldn't see if my changes were working or not (I thought I was).

    I ended up using C:/Users/Administrator/Environment/storage/content/

    Two slashes didn't work for me.

    Thanks,
    Agustin

Similar Threads

  1. How to return to user the part of the sequence?
    By pidboretskyy in forum Video On Demand Streaming Discussion
    Replies: 7
    Last Post: 08-08-2012, 03:32 AM
  2. Replies: 2
    Last Post: 05-16-2012, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •