You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Myrna van Lunteren <m....@gmail.com> on 2014/03/19 01:47:48 UTC

trunk build failed on window with java.lang.StackOverFlowError...

Hi,

I downloaded a copy of the shiny new hotspot jdk 8, and tried to build
trunk, on windows (7), but got two StackOverFlowError / out of resource
errors, like so:
     [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.StackOverflowError
    [javac]     at
com.sun.tools.javac.parser.UnicodeReader.putChar(UnicodeReader.java:143)
 [javac]     at
com.sun.tools.javac.parser.JavaTokenizer.scanDigits(JavaTokenizer.java:196)
    [javac]     at
com.sun.tools.javac.parser.JavaTokenizer.scanNumber(JavaTokenizer.java:322)
    [javac]     at
com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:538)
    [javac]     at
com.sun.tools.javac.parser.Scanner.nextToken(Scanner.java:115)
    [javac]     at
com.sun.tools.javac.parser.JavacParser.nextToken(JavacParser.java:296)
    [javac]     at
com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1772)
    [javac]     at
com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1789)
    [javac]     at
com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1250)
    [javac]     at
com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:904)
    [javac]     at
com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:875)
...[more stuff]...

any suggestions anyone?

I'll take another look at this tomorrow.

Thanks,
Myrna

Re: trunk build failed on window with java.lang.StackOverFlowError...

Posted by Myrna van Lunteren <m....@gmail.com>.
I was able to build trunk - apparently without trouble - on windows 7 with
jdk 1.8 (64 bit) after setting the following ANT_OPTS:
"-Xms512m -Xmx1024m -Xss1024k"

On to 10.10...

Myrna


On Wed, Mar 19, 2014 at 8:04 AM, dag wanvik <da...@oracle.com> wrote:

> Data point: I just compiler derby successfully with
>
> > ant clobber all buildjars
>
> on WIndows 7 (64 bits) with the new JDK:
>
> >  java -version
>
> java version "1.8.0"
> Java(TM) SE Runtime Environment (build 1.8.0-b132)
> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
>
> under cygwin. I don't see any issue, so I am not sure what gives here...
>
> Thanks,
> Dag
>
>
> On 19.03.2014 14:43, Knut Anders Hatlen wrote:
>
>> Rick Hillegas <ri...@oracle.com> writes:
>>
>>  On 3/18/14 5:47 PM, Myrna van Lunteren wrote:
>>>
>>>> Hi,
>>>>
>>>> I downloaded a copy of the shiny new hotspot jdk 8, and tried to
>>>> build trunk, on windows (7), but got two StackOverFlowError / out of
>>>> resource errors, like so:
>>>>       [javac] The system is out of resources.
>>>>      [javac] Consult the following stack trace for details.
>>>>      [javac] java.lang.StackOverflowError
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.UnicodeReader.putChar(
>>>> UnicodeReader.java:143)
>>>>   [javac]     at
>>>> com.sun.tools.javac.parser.JavaTokenizer.scanDigits(
>>>> JavaTokenizer.java:196)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.JavaTokenizer.scanNumber(
>>>> JavaTokenizer.java:322)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.JavaTokenizer.readToken(
>>>> JavaTokenizer.java:538)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.Scanner.nextToken(Scanner.java:115)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.JavacParser.nextToken(JavacParser.java:296)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1772)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1789)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1250)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:904)
>>>>      [javac]     at
>>>> com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:875)
>>>> ...[more stuff]...
>>>>
>>>> any suggestions anyone?
>>>>
>>>> I'll take another look at this tomorrow.
>>>>
>>>> Thanks,
>>>> Myrna
>>>>
>>>>
>>>>  I have just installed on my mac the GA of Oracle's JDK 8 from here:
>>> http://www.oracle.com/technetwork/java/javase/downloads/index.html.
>>> Its version info is
>>>
>>> java version "1.8.0"
>>> Java(TM) SE Runtime Environment (build 1.8.0-b132)
>>> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
>>>
>>> With this JDK, the Derby trunk builds cleanly for me on my mac. With
>>> this JDK I also get a clean build of the 10.10 branch except for the
>>> warnings described by https://issues.apache.org/jira/browse/DERBY-6513
>>>
>>> Can people on other platforms test-drive the build using the new JDK
>>> 8? It would be good to be able to give Myrna clear advice about what
>>> platforms can be used to build the 10.10.2 maintenance release.
>>>
>> Builds fine for me on Debian too.
>>
>> java version "1.8.0"
>> Java(TM) SE Runtime Environment (build 1.8.0-b132)
>> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
>>
>>
>>
>

Re: trunk build failed on window with java.lang.StackOverFlowError...

Posted by dag wanvik <da...@oracle.com>.
Data point: I just compiler derby successfully with

 > ant clobber all buildjars

on WIndows 7 (64 bits) with the new JDK:

 >  java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

under cygwin. I don't see any issue, so I am not sure what gives here...

Thanks,
Dag

On 19.03.2014 14:43, Knut Anders Hatlen wrote:
> Rick Hillegas <ri...@oracle.com> writes:
>
>> On 3/18/14 5:47 PM, Myrna van Lunteren wrote:
>>> Hi,
>>>
>>> I downloaded a copy of the shiny new hotspot jdk 8, and tried to
>>> build trunk, on windows (7), but got two StackOverFlowError / out of
>>> resource errors, like so:
>>>       [javac] The system is out of resources.
>>>      [javac] Consult the following stack trace for details.
>>>      [javac] java.lang.StackOverflowError
>>>      [javac]     at
>>> com.sun.tools.javac.parser.UnicodeReader.putChar(UnicodeReader.java:143)
>>>   [javac]     at
>>> com.sun.tools.javac.parser.JavaTokenizer.scanDigits(JavaTokenizer.java:196)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.JavaTokenizer.scanNumber(JavaTokenizer.java:322)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:538)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.Scanner.nextToken(Scanner.java:115)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.JavacParser.nextToken(JavacParser.java:296)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1772)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1789)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1250)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:904)
>>>      [javac]     at
>>> com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:875)
>>> ...[more stuff]...
>>>
>>> any suggestions anyone?
>>>
>>> I'll take another look at this tomorrow.
>>>
>>> Thanks,
>>> Myrna
>>>
>>>
>> I have just installed on my mac the GA of Oracle's JDK 8 from here:
>> http://www.oracle.com/technetwork/java/javase/downloads/index.html.
>> Its version info is
>>
>> java version "1.8.0"
>> Java(TM) SE Runtime Environment (build 1.8.0-b132)
>> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
>>
>> With this JDK, the Derby trunk builds cleanly for me on my mac. With
>> this JDK I also get a clean build of the 10.10 branch except for the
>> warnings described by https://issues.apache.org/jira/browse/DERBY-6513
>>
>> Can people on other platforms test-drive the build using the new JDK
>> 8? It would be good to be able to give Myrna clear advice about what
>> platforms can be used to build the 10.10.2 maintenance release.
> Builds fine for me on Debian too.
>
> java version "1.8.0"
> Java(TM) SE Runtime Environment (build 1.8.0-b132)
> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
>
>


Re: trunk build failed on window with java.lang.StackOverFlowError...

Posted by Myrna van Lunteren <m....@gmail.com>.
Thanks for those experiments and reports...

I can probably find a Linux box, but I'll try 10.10 on windows first. (I
started with trunk).

I've not done the release generation on Linux before, so would probably
need to set up some more bits and pieces. On the other hand, there's always
been irritating line-ending troubles on windows, so that's one in favor for
linux.

I'll get on this this afternoon (PDT)...

Myrna


On Wed, Mar 19, 2014 at 6:43 AM, Knut Anders Hatlen
<kn...@oracle.com>wrote:

> Rick Hillegas <ri...@oracle.com> writes:
>
> > On 3/18/14 5:47 PM, Myrna van Lunteren wrote:
> >> Hi,
> >>
> >> I downloaded a copy of the shiny new hotspot jdk 8, and tried to
> >> build trunk, on windows (7), but got two StackOverFlowError / out of
> >> resource errors, like so:
> >>      [javac] The system is out of resources.
> >>     [javac] Consult the following stack trace for details.
> >>     [javac] java.lang.StackOverflowError
> >>     [javac]     at
> >> com.sun.tools.javac.parser.UnicodeReader.putChar(UnicodeReader.java:143)
> >>  [javac]     at
> >>
> com.sun.tools.javac.parser.JavaTokenizer.scanDigits(JavaTokenizer.java:196)
> >>     [javac]     at
> >>
> com.sun.tools.javac.parser.JavaTokenizer.scanNumber(JavaTokenizer.java:322)
> >>     [javac]     at
> >>
> com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:538)
> >>     [javac]     at
> >> com.sun.tools.javac.parser.Scanner.nextToken(Scanner.java:115)
> >>     [javac]     at
> >> com.sun.tools.javac.parser.JavacParser.nextToken(JavacParser.java:296)
> >>     [javac]     at
> >> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1772)
> >>     [javac]     at
> >> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1789)
> >>     [javac]     at
> >> com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1250)
> >>     [javac]     at
> >> com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:904)
> >>     [javac]     at
> >> com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:875)
> >> ...[more stuff]...
> >>
> >> any suggestions anyone?
> >>
> >> I'll take another look at this tomorrow.
> >>
> >> Thanks,
> >> Myrna
> >>
> >>
> > I have just installed on my mac the GA of Oracle's JDK 8 from here:
> > http://www.oracle.com/technetwork/java/javase/downloads/index.html.
> > Its version info is
> >
> > java version "1.8.0"
> > Java(TM) SE Runtime Environment (build 1.8.0-b132)
> > Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
> >
> > With this JDK, the Derby trunk builds cleanly for me on my mac. With
> > this JDK I also get a clean build of the 10.10 branch except for the
> > warnings described by https://issues.apache.org/jira/browse/DERBY-6513
> >
> > Can people on other platforms test-drive the build using the new JDK
> > 8? It would be good to be able to give Myrna clear advice about what
> > platforms can be used to build the 10.10.2 maintenance release.
>
> Builds fine for me on Debian too.
>
> java version "1.8.0"
> Java(TM) SE Runtime Environment (build 1.8.0-b132)
> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
>
>
> --
> Knut Anders
>

Re: trunk build failed on window with java.lang.StackOverFlowError...

Posted by Knut Anders Hatlen <kn...@oracle.com>.
Rick Hillegas <ri...@oracle.com> writes:

> On 3/18/14 5:47 PM, Myrna van Lunteren wrote:
>> Hi,
>>
>> I downloaded a copy of the shiny new hotspot jdk 8, and tried to
>> build trunk, on windows (7), but got two StackOverFlowError / out of
>> resource errors, like so:
>>      [javac] The system is out of resources.
>>     [javac] Consult the following stack trace for details.
>>     [javac] java.lang.StackOverflowError
>>     [javac]     at
>> com.sun.tools.javac.parser.UnicodeReader.putChar(UnicodeReader.java:143)
>>  [javac]     at
>> com.sun.tools.javac.parser.JavaTokenizer.scanDigits(JavaTokenizer.java:196)
>>     [javac]     at
>> com.sun.tools.javac.parser.JavaTokenizer.scanNumber(JavaTokenizer.java:322)
>>     [javac]     at
>> com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:538)
>>     [javac]     at
>> com.sun.tools.javac.parser.Scanner.nextToken(Scanner.java:115)
>>     [javac]     at
>> com.sun.tools.javac.parser.JavacParser.nextToken(JavacParser.java:296)
>>     [javac]     at
>> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1772)
>>     [javac]     at
>> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1789)
>>     [javac]     at
>> com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1250)
>>     [javac]     at
>> com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:904)
>>     [javac]     at
>> com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:875)
>> ...[more stuff]...
>>
>> any suggestions anyone?
>>
>> I'll take another look at this tomorrow.
>>
>> Thanks,
>> Myrna
>>
>>
> I have just installed on my mac the GA of Oracle's JDK 8 from here:
> http://www.oracle.com/technetwork/java/javase/downloads/index.html.
> Its version info is
>
> java version "1.8.0"
> Java(TM) SE Runtime Environment (build 1.8.0-b132)
> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
>
> With this JDK, the Derby trunk builds cleanly for me on my mac. With
> this JDK I also get a clean build of the 10.10 branch except for the
> warnings described by https://issues.apache.org/jira/browse/DERBY-6513
>
> Can people on other platforms test-drive the build using the new JDK
> 8? It would be good to be able to give Myrna clear advice about what
> platforms can be used to build the 10.10.2 maintenance release.

Builds fine for me on Debian too.

java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)


-- 
Knut Anders

Re: trunk build failed on window with java.lang.StackOverFlowError...

Posted by Rick Hillegas <ri...@oracle.com>.
On 3/18/14 5:47 PM, Myrna van Lunteren wrote:
> Hi,
>
> I downloaded a copy of the shiny new hotspot jdk 8, and tried to build 
> trunk, on windows (7), but got two StackOverFlowError / out of 
> resource errors, like so:
>      [javac] The system is out of resources.
>     [javac] Consult the following stack trace for details.
>     [javac] java.lang.StackOverflowError
>     [javac]     at 
> com.sun.tools.javac.parser.UnicodeReader.putChar(UnicodeReader.java:143)
>  [javac]     at 
> com.sun.tools.javac.parser.JavaTokenizer.scanDigits(JavaTokenizer.java:196)
>     [javac]     at 
> com.sun.tools.javac.parser.JavaTokenizer.scanNumber(JavaTokenizer.java:322)
>     [javac]     at 
> com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:538)
>     [javac]     at 
> com.sun.tools.javac.parser.Scanner.nextToken(Scanner.java:115)
>     [javac]     at 
> com.sun.tools.javac.parser.JavacParser.nextToken(JavacParser.java:296)
>     [javac]     at 
> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1772)
>     [javac]     at 
> com.sun.tools.javac.parser.JavacParser.arguments(JavacParser.java:1789)
>     [javac]     at 
> com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1250)
>     [javac]     at 
> com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:904)
>     [javac]     at 
> com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:875)
> ...[more stuff]...
>
> any suggestions anyone?
>
> I'll take another look at this tomorrow.
>
> Thanks,
> Myrna
>
>
I have just installed on my mac the GA of Oracle's JDK 8 from here: 
http://www.oracle.com/technetwork/java/javase/downloads/index.html. Its 
version info is

java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

With this JDK, the Derby trunk builds cleanly for me on my mac. With 
this JDK I also get a clean build of the 10.10 branch except for the 
warnings described by https://issues.apache.org/jira/browse/DERBY-6513

Can people on other platforms test-drive the build using the new JDK 8? 
It would be good to be able to give Myrna clear advice about what 
platforms can be used to build the 10.10.2 maintenance release.

Thanks,
-Rick