Thanks working fine :)

On Sat, Sep 5, 2009 at 1:08 AM, Thanasis <[email protected]> wrote:

>
> Forget this previous answer, just saw the "gnu.xxx" package.
>
> You need to install JDK 5 in order to use SMSLib.
>
> On Sep 4, 10:37 pm, Thanasis <[email protected]> wrote:
> > Hi,
> >
> > which JDK are you using?
> >
> > On Sep 4, 9:09 am, Hemanth kumar <[email protected]> wrote:
> >
> >
> >
> > > Hi All,
> >
> > >             I am getting a pattern syntax exception when smslib is run
> in
> > > Linux OS.This works fine in windows.please help.Here is the problematic
> code
> > > part
> >
> > > "public synchronized boolean isAlive() throws Exception
> > >     {
> > >         serialDriver.send("AT\r");
> > >          return
> > > (serialDriver.getResponse().matches("\\s*[\\p{ASCII}]*\\s+OK\\s"));
> > >     }
> > > "
> >
> > > Here is the stack trace.
> >
> > > java.util.regex.PatternSyntaxException: At position 12 in regular
> expression
> > > pattern:
> > > At position 0 in regular expression pattern:
> > > unsupported name ASCII
> > >         \s*[\p{ASCII}]*\s+OK\s
> > >                     ^
> > >    at java.util.regex.Pattern.<init>(libgcj.so.7rh)
> > >    at java.util.regex.Pattern.compile(libgcj.so.7rh)
> > >    at java.util.regex.Pattern.compile(libgcj.so.7rh)
> > >    at java.util.regex.Pattern.matches(libgcj.so.7rh)
> > >    at java.lang.String.matches(libgcj.so.7rh)
> > >    at org.smslib.CATHandler.isAlive(CATHandler.java:72)
> > >    at org.smslib.CService.connect(CService.java:203)
> > > Caused by: gnu.java.util.regex.REException: At position 12 in regular
> > > expression pattern:
> > > At position 0 in regular expression pattern:
> > > unsupported name ASCII
> > >    at gnu.java.util.regex.RE.getRETokenNamedProperty(libgcj.so.7rh)
> > >    at gnu.java.util.regex.RE.parseCharClass(libgcj.so.7rh)
> > >    at gnu.java.util.regex.RE.initialize(libgcj.so.7rh)
> > >    at gnu.java.util.regex.RE.<init>(libgcj.so.7rh)
> > >    at gnu.java.util.regex.RE.<init>(libgcj.so.7rh)
> > >    at java.util.regex.Pattern.<init>(libgcj.so.7rh)
> > >    ...7 more
> > > Caused by: gnu.java.util.regex.REException: At position 0 in regular
> > > expression pattern:
> > > unsupported name ASCII
> > >    at
> gnu.java.util.regex.RETokenNamedProperty.getHandler(libgcj.so.7rh)
> > >    at gnu.java.util.regex.RETokenNamedProperty.<init>(libgcj.so.7rh)
> > >    at gnu.java.util.regex.RE.getRETokenNamedProperty(libgcj.so.7rh)
> > >    ...12 more
> >
> > > Awaiting for your reply,
> >
> > > Thanks and regards,
> > > Hemanth.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib for Java User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to