java.util.regex.PatternSyntaxException

28 views
Skip to first unread message

jules

unread,
Sep 27, 2008, 12:06:22 PM9/27/08
to Google Data Protocol
Hi,

I am getting an error when I use the Finance API. I am sending on this
group because it also happens when I use the others google API. Here
is the error I get when I do
FinanceService service = new FinanceService("NAME");
(I have tried with other names)


Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.81)
at com.google.gdata.client.Service.<init>(Service.java:546)
at com.google.gdata.client.GoogleService.<init>(GoogleService.java:
198)
at com.google.gdata.client.GoogleService.<init>(GoogleService.java:
171)
at
com.google.gdata.client.finance.FinanceService.<init>(FinanceService.java:
56)
at TestDocumentList.main(TestDocumentList.java:26)
Caused by: java.util.regex.PatternSyntaxException: At position 10 in
regular expression pattern:
At position 0 in regular expression pattern:
unsupported name ASCII
^[\p{ASCII}&&[^\p{Cntrl} ;/=\[\]\(\)\<\>\@\,\:\"\?\=]]+$
^
at java.util.regex.Pattern.<init>(libgcj.so.81)


at java.util.regex.Pattern.compile(libgcj.so.81)
at java.util.regex.Pattern.compile(libgcj.so.81)
at com.google.gdata.util.ContentType.<clinit>(ContentType.java:38)
at java.lang.Class.initializeClass(libgcj.so.81)
...5 more
Caused by: gnu.java.util.regex.REException: At position 10 in regular
expression pattern:
At position 0 in regular expression pattern:
unsupported name ASCII
at gnu.java.util.regex.RE.getRETokenNamedProperty(libgcj.so.81)
at gnu.java.util.regex.RE.parseCharClass(libgcj.so.81)
at gnu.java.util.regex.RE.initialize(libgcj.so.81)
at gnu.java.util.regex.RE.<init>(libgcj.so.81)
at gnu.java.util.regex.RE.<init>(libgcj.so.81)
at java.util.regex.Pattern.<init>(libgcj.so.81)
...9 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.
81)
at gnu.java.util.regex.RETokenNamedProperty.<init>(libgcj.so.81)
at gnu.java.util.regex.RE.getRETokenNamedProperty(libgcj.so.81)
...14 more



Thanks a lot

Ray Baxter

unread,
Sep 27, 2008, 3:23:36 PM9/27/08
to google-he...@googlegroups.com

Have you tried running your code with Sun Java instead of gcj?

Ray

jules

unread,
Sep 28, 2008, 12:31:52 PM9/28/08
to Google Data Protocol
I am using Eclipse, and I don't know which of Sun Java or GCJ I am
using neither I know how to switch from one or another

jules

unread,
Sep 28, 2008, 1:42:04 PM9/28/08
to Google Data Protocol
Ok, I found how to switch from gcj to Sun Java.

It actually works now so thanks a lot Ray.

superemr

unread,
Oct 27, 2008, 6:18:09 AM10/27/08
to Google Data Protocol
Hi Jules

Can you show me details what problem which you got, Because I'm using
GoogleService service = new GoogleService("GoogleHealth");
I got the same problem with you.
I can run from my localhost, but I can not run on Server(ubuntu).

I appreciate your help

Thanks
Reply all
Reply to author
Forward
0 new messages