Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion java.util.regex.PatternSyntaxE xception

Received: by 10.115.17.11 with SMTP id u11mr619240wai.25.1222543420164;
        Sat, 27 Sep 2008 12:23:40 -0700 (PDT)
Return-Path: <ray.bax...@gmail.com>
Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171])
        by mx.google.com with ESMTP id m37si618459waf.0.2008.09.27.12.23.39;
        Sat, 27 Sep 2008 12:23:39 -0700 (PDT)
Received-SPF: pass (google.com: domain of ray.bax...@gmail.com designates 209.85.200.171 as permitted sender) client-ip=209.85.200.171;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of ray.bax...@gmail.com designates 209.85.200.171 as permitted sender) smtp.mail=ray.bax...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by wf-out-1314.google.com with SMTP id 27so1580063wfd.17
        for <google-help-dataapi@googlegroups.com>; Sat, 27 Sep 2008 12:23:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:from:to:in-reply-to:subject
         :references:message-id:content-type:content-transfer-encoding
         :reply-to:mime-version:date:x-mailer;
        bh=2y3x0kVxOAYVb2vbSfiWOVu+1nGAQjgDLzCJx94fTfE=;
        b=A5zVrQ+UONDLqMI30rm19V4SWAoGKGXus304WJWkCFkPt4pe2eaeRrhQeKiAR99QY6
         7NbmhvA6r2CqqbtzJHRZSJr7FqQV0lyprL6nkiUy6ZDEkxcqUxWqFuONu4owou0Wu5hU
         bhdxxmjQ3kb8N3VXGb/WR+UqY+8Gh8WJCwYhc=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:to:in-reply-to:subject:references:message-id:content-type
         :content-transfer-encoding:reply-to:mime-version:date:x-mailer;
        b=fP44zx9NYHs1R2vIEqClYjMXCGzBc9Fn3rYf/zfXXphue0zvtazs2uWC1ceZZxoYHe
         04FWDcc5vOe7G2i5ak2VfyEpqy2Y0ZGGcOyeLcahYwZRRiQUqTqdohLzWbNQrbR2lXDA
         wEvrhfS0YIYEdpo4k4KpRSytD1lJWaCq5xrh4=
Received: by 10.142.142.14 with SMTP id p14mr1311490wfd.104.1222543419114;
        Sat, 27 Sep 2008 12:23:39 -0700 (PDT)
Return-Path: <ray.bax...@gmail.com>
Received: from ?10.0.0.101? (h-67-101-37-13.snfccasy.dynamic.covad.net [67.101.37.13])
        by mx.google.com with ESMTPS id 24sm417663wfc.6.2008.09.27.12.23.37
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Sat, 27 Sep 2008 12:23:38 -0700 (PDT)
From: Ray Baxter <ray.bax...@gmail.com>
To: google-help-dataapi@googlegroups.com
In-Reply-To: <5f5e81dd-964a-4f8f-baa0-177e12908...@z66g2000hsc.googlegroups.com>
Subject: Re: [GData Protocol] java.util.regex.PatternSyntaxException
References: <5f5e81dd-964a-4f8f-baa0-177e12908...@z66g2000hsc.googlegroups.com>
Message-Id: <DEF41B52-87DF-448B-9BDA-70FD98414...@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Reply-To: ray.bax...@gmail.com
Date: Sat, 27 Sep 2008 12:23:36 -0700
X-Mailer: Apple Mail (2.929.2)


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

Ray

On Sep 27, 2008, at 9:06 AM, jules wrote:

>
> 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
>