You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Frédéric SOUCHU <Fr...@ingenico.com> on 2015/04/17 11:29:02 UTC
Unable to compile latest 4.0 source code: antlr error
Getting any pre-4.0.BETA 03 source code on Windows 7 (64bits - English version) produces the following error:
[INFO] --- antlr4-maven-plugin:4.1:antlr4 (default) @ odata-server-core ---
[INFO] ANTLR 4: Processing source directory D:\olingo-odata4-master-29e2833\lib\server-core\src\main\antlr4
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] Message{errorType=EPSILON_TOKEN, args=[REST_F], e=null, fileName='org\apache\olingo\server\core\uri\antlr\UriLexer.g4', line=314,charPosition=0}
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriParser.g4
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 3.260 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.343 s]
[INFO] odata-commons-api .................................. SUCCESS [ 4.605 s]
[INFO] odata-commons-core ................................. SUCCESS [ 5.963 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.794 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.570 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.203 s]
[INFO] odata-server-core .................................. FAILURE [ 0.921 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.111 s
[INFO] Finished at: 2015-04-17T10:24:39+01:00
[INFO] Final Memory: 84M/564M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.1:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.1:antlr4 failed: Index: 0, Size: 0 -> [Help 1]
Using Antlr 4.2 produces a bit more information but still fails:
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] warning(146): org\apache\olingo\server\core\uri\antlr\UriLexer.g4:314:0: non-fragment lexer rule 'REST_F' can match the empty string
[WARNING] d:\olingo-odata4-master-29e2833\org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [314:0]: non-fragment lexer rule 'REST_F' can match the empty string
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 4.043 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.374 s]
[INFO] odata-commons-api .................................. SUCCESS [ 5.449 s]
[INFO] odata-commons-core ................................. SUCCESS [ 7.063 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.841 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.680 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.265 s]
[INFO] odata-server-core .................................. FAILURE [ 0.812 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.276 s
[INFO] Finished at: 2015-04-17T10:16:38+01:00
[INFO] Final Memory: 84M/620M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.2:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.2:antlr4 failed: Serialized ATN data element out of range. -> [Help 1]
For information: Java -version gives:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
I have tried master branch, OLINGO-573 branch with the same result.
I have zero knowledge on the Antlr framework, however, the warning message seems fair:
REST_F : ~('\r'|'\n')* -> type(REST), popMode;
If ~ is a reserved Antlr keyword, then ()* can indeed match anything!
Thanks for pointer on how to fix the Beta 03 compilation.
Regards,
Frederic Souchu
RE: Unable to compile latest 4.0 source code: antlr error
Posted by "Amend, Christian" <ch...@sap.com>.
Hi Frederic,
thank you for creating the ticket.
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 15:48
To: Amend, Christian; user@olingo.apache.org
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Ticket created here:
OLINGO-631<https://issues.apache.org/jira/browse/OLINGO-631>
Cheers,
Frederic
From: Amend, Christian [mailto:christian.amend@sap.com]
Sent: 17 April 2015 13:52
To: user@olingo.apache.org<ma...@olingo.apache.org>
Cc: Frédéric SOUCHU
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Hi Frederic,
Please open a feature request in our JIRA. We also had a Java 1.8 issue with our V2 library but have not yet been able to make the switch work due to time constraints.
Also I do not know when we will get to fix the V4 code to be 1.8 compatible. Any contributions are always welcome!
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 13:29
To: Amend, Christian; user@olingo.apache.org<ma...@olingo.apache.org>
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Indeed, switching back to 1.7 did the trick!
Is it worth filling a bug report or is migration to JDK 1.8 a known item in the roadmap?
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 2.936 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.298 s]
[INFO] odata-commons-api .................................. SUCCESS [ 3.951 s]
[INFO] odata-commons-core ................................. SUCCESS [ 8.033 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.425 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.939 s]
[INFO] odata-server-api ................................... SUCCESS [ 1.710 s]
[INFO] odata-server-core .................................. SUCCESS [ 12.318 s]
[INFO] odata-server-tecsvc ................................ SUCCESS [ 10.165 s]
[INFO] odata-server-test .................................. SUCCESS [ 13.666 s]
[INFO] odata-ext .......................................... SUCCESS [ 0.102 s]
[INFO] odata-client-proxy ................................. SUCCESS [ 2.268 s]
[INFO] pojogen-maven-plugin ............................... SUCCESS [ 22.920 s]
[INFO] odata-client-android ............................... SUCCESS [ 12.891 s]
[INFO] odata-fit .......................................... SUCCESS [01:19 min]
[INFO] odata-dist ......................................... SUCCESS [ 0.109 s]
[INFO] Olingo-OData-Client-for-Android .................... SUCCESS [ 0.118 s]
[INFO] Olingo-OData-Client-for-Java ....................... SUCCESS [ 0.261 s]
[INFO] Olingo-OData-Server-for-Java ....................... SUCCESS [ 0.200 s]
[INFO] Olingo-OData-JavaDoc ............................... SUCCESS [ 0.092 s]
[INFO] odata-samples ...................................... SUCCESS [ 0.100 s]
[INFO] odata-server-sample ................................ SUCCESS [ 1.027 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:01 min
[INFO] Finished at: 2015-04-17T12:26:46+01:00
[INFO] Final Memory: 68M/1913M
From: Amend, Christian [mailto:christian.amend@sap.com]
Sent: 17 April 2015 13:02
To: user@olingo.apache.org<ma...@olingo.apache.org>
Cc: Frédéric SOUCHU
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Hi Frederic,
have you tried using Java Version 1.6 or 1.7? I also have an English Windows 7 64bit system and I do not get this error.
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 11:29
To: user@olingo.apache.org<ma...@olingo.apache.org>
Subject: Unable to compile latest 4.0 source code: antlr error
Getting any pre-4.0.BETA 03 source code on Windows 7 (64bits - English version) produces the following error:
[INFO] --- antlr4-maven-plugin:4.1:antlr4 (default) @ odata-server-core ---
[INFO] ANTLR 4: Processing source directory D:\olingo-odata4-master-29e2833\lib\server-core\src\main\antlr4
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] Message{errorType=EPSILON_TOKEN, args=[REST_F], e=null, fileName='org\apache\olingo\server\core\uri\antlr\UriLexer.g4', line=314,charPosition=0}
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriParser.g4
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 3.260 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.343 s]
[INFO] odata-commons-api .................................. SUCCESS [ 4.605 s]
[INFO] odata-commons-core ................................. SUCCESS [ 5.963 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.794 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.570 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.203 s]
[INFO] odata-server-core .................................. FAILURE [ 0.921 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.111 s
[INFO] Finished at: 2015-04-17T10:24:39+01:00
[INFO] Final Memory: 84M/564M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.1:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.1:antlr4 failed: Index: 0, Size: 0 -> [Help 1]
Using Antlr 4.2 produces a bit more information but still fails:
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] warning(146): org\apache\olingo\server\core\uri\antlr\UriLexer.g4:314:0: non-fragment lexer rule 'REST_F' can match the empty string
[WARNING] d:\olingo-odata4-master-29e2833\org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [314:0]: non-fragment lexer rule 'REST_F' can match the empty string
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 4.043 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.374 s]
[INFO] odata-commons-api .................................. SUCCESS [ 5.449 s]
[INFO] odata-commons-core ................................. SUCCESS [ 7.063 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.841 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.680 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.265 s]
[INFO] odata-server-core .................................. FAILURE [ 0.812 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.276 s
[INFO] Finished at: 2015-04-17T10:16:38+01:00
[INFO] Final Memory: 84M/620M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.2:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.2:antlr4 failed: Serialized ATN data element out of range. -> [Help 1]
For information: Java -version gives:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
I have tried master branch, OLINGO-573 branch with the same result.
I have zero knowledge on the Antlr framework, however, the warning message seems fair:
REST_F : ~('\r'|'\n')* -> type(REST), popMode;
If ~ is a reserved Antlr keyword, then ()* can indeed match anything!
Thanks for pointer on how to fix the Beta 03 compilation.
Regards,
Frederic Souchu
RE: Unable to compile latest 4.0 source code: antlr error
Posted by Frédéric SOUCHU <Fr...@ingenico.com>.
Ticket created here:
OLINGO-631<https://issues.apache.org/jira/browse/OLINGO-631>
Cheers,
Frederic
From: Amend, Christian [mailto:christian.amend@sap.com]
Sent: 17 April 2015 13:52
To: user@olingo.apache.org
Cc: Frédéric SOUCHU
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Hi Frederic,
Please open a feature request in our JIRA. We also had a Java 1.8 issue with our V2 library but have not yet been able to make the switch work due to time constraints.
Also I do not know when we will get to fix the V4 code to be 1.8 compatible. Any contributions are always welcome!
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 13:29
To: Amend, Christian; user@olingo.apache.org<ma...@olingo.apache.org>
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Indeed, switching back to 1.7 did the trick!
Is it worth filling a bug report or is migration to JDK 1.8 a known item in the roadmap?
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 2.936 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.298 s]
[INFO] odata-commons-api .................................. SUCCESS [ 3.951 s]
[INFO] odata-commons-core ................................. SUCCESS [ 8.033 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.425 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.939 s]
[INFO] odata-server-api ................................... SUCCESS [ 1.710 s]
[INFO] odata-server-core .................................. SUCCESS [ 12.318 s]
[INFO] odata-server-tecsvc ................................ SUCCESS [ 10.165 s]
[INFO] odata-server-test .................................. SUCCESS [ 13.666 s]
[INFO] odata-ext .......................................... SUCCESS [ 0.102 s]
[INFO] odata-client-proxy ................................. SUCCESS [ 2.268 s]
[INFO] pojogen-maven-plugin ............................... SUCCESS [ 22.920 s]
[INFO] odata-client-android ............................... SUCCESS [ 12.891 s]
[INFO] odata-fit .......................................... SUCCESS [01:19 min]
[INFO] odata-dist ......................................... SUCCESS [ 0.109 s]
[INFO] Olingo-OData-Client-for-Android .................... SUCCESS [ 0.118 s]
[INFO] Olingo-OData-Client-for-Java ....................... SUCCESS [ 0.261 s]
[INFO] Olingo-OData-Server-for-Java ....................... SUCCESS [ 0.200 s]
[INFO] Olingo-OData-JavaDoc ............................... SUCCESS [ 0.092 s]
[INFO] odata-samples ...................................... SUCCESS [ 0.100 s]
[INFO] odata-server-sample ................................ SUCCESS [ 1.027 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:01 min
[INFO] Finished at: 2015-04-17T12:26:46+01:00
[INFO] Final Memory: 68M/1913M
From: Amend, Christian [mailto:christian.amend@sap.com]
Sent: 17 April 2015 13:02
To: user@olingo.apache.org<ma...@olingo.apache.org>
Cc: Frédéric SOUCHU
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Hi Frederic,
have you tried using Java Version 1.6 or 1.7? I also have an English Windows 7 64bit system and I do not get this error.
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 11:29
To: user@olingo.apache.org<ma...@olingo.apache.org>
Subject: Unable to compile latest 4.0 source code: antlr error
Getting any pre-4.0.BETA 03 source code on Windows 7 (64bits - English version) produces the following error:
[INFO] --- antlr4-maven-plugin:4.1:antlr4 (default) @ odata-server-core ---
[INFO] ANTLR 4: Processing source directory D:\olingo-odata4-master-29e2833\lib\server-core\src\main\antlr4
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] Message{errorType=EPSILON_TOKEN, args=[REST_F], e=null, fileName='org\apache\olingo\server\core\uri\antlr\UriLexer.g4', line=314,charPosition=0}
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriParser.g4
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 3.260 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.343 s]
[INFO] odata-commons-api .................................. SUCCESS [ 4.605 s]
[INFO] odata-commons-core ................................. SUCCESS [ 5.963 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.794 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.570 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.203 s]
[INFO] odata-server-core .................................. FAILURE [ 0.921 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.111 s
[INFO] Finished at: 2015-04-17T10:24:39+01:00
[INFO] Final Memory: 84M/564M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.1:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.1:antlr4 failed: Index: 0, Size: 0 -> [Help 1]
Using Antlr 4.2 produces a bit more information but still fails:
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] warning(146): org\apache\olingo\server\core\uri\antlr\UriLexer.g4:314:0: non-fragment lexer rule 'REST_F' can match the empty string
[WARNING] d:\olingo-odata4-master-29e2833\org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [314:0]: non-fragment lexer rule 'REST_F' can match the empty string
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 4.043 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.374 s]
[INFO] odata-commons-api .................................. SUCCESS [ 5.449 s]
[INFO] odata-commons-core ................................. SUCCESS [ 7.063 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.841 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.680 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.265 s]
[INFO] odata-server-core .................................. FAILURE [ 0.812 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.276 s
[INFO] Finished at: 2015-04-17T10:16:38+01:00
[INFO] Final Memory: 84M/620M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.2:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.2:antlr4 failed: Serialized ATN data element out of range. -> [Help 1]
For information: Java -version gives:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
I have tried master branch, OLINGO-573 branch with the same result.
I have zero knowledge on the Antlr framework, however, the warning message seems fair:
REST_F : ~('\r'|'\n')* -> type(REST), popMode;
If ~ is a reserved Antlr keyword, then ()* can indeed match anything!
Thanks for pointer on how to fix the Beta 03 compilation.
Regards,
Frederic Souchu
RE: Unable to compile latest 4.0 source code: antlr error
Posted by "Amend, Christian" <ch...@sap.com>.
Hi Frederic,
Please open a feature request in our JIRA. We also had a Java 1.8 issue with our V2 library but have not yet been able to make the switch work due to time constraints.
Also I do not know when we will get to fix the V4 code to be 1.8 compatible. Any contributions are always welcome!
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 13:29
To: Amend, Christian; user@olingo.apache.org
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Indeed, switching back to 1.7 did the trick!
Is it worth filling a bug report or is migration to JDK 1.8 a known item in the roadmap?
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 2.936 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.298 s]
[INFO] odata-commons-api .................................. SUCCESS [ 3.951 s]
[INFO] odata-commons-core ................................. SUCCESS [ 8.033 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.425 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.939 s]
[INFO] odata-server-api ................................... SUCCESS [ 1.710 s]
[INFO] odata-server-core .................................. SUCCESS [ 12.318 s]
[INFO] odata-server-tecsvc ................................ SUCCESS [ 10.165 s]
[INFO] odata-server-test .................................. SUCCESS [ 13.666 s]
[INFO] odata-ext .......................................... SUCCESS [ 0.102 s]
[INFO] odata-client-proxy ................................. SUCCESS [ 2.268 s]
[INFO] pojogen-maven-plugin ............................... SUCCESS [ 22.920 s]
[INFO] odata-client-android ............................... SUCCESS [ 12.891 s]
[INFO] odata-fit .......................................... SUCCESS [01:19 min]
[INFO] odata-dist ......................................... SUCCESS [ 0.109 s]
[INFO] Olingo-OData-Client-for-Android .................... SUCCESS [ 0.118 s]
[INFO] Olingo-OData-Client-for-Java ....................... SUCCESS [ 0.261 s]
[INFO] Olingo-OData-Server-for-Java ....................... SUCCESS [ 0.200 s]
[INFO] Olingo-OData-JavaDoc ............................... SUCCESS [ 0.092 s]
[INFO] odata-samples ...................................... SUCCESS [ 0.100 s]
[INFO] odata-server-sample ................................ SUCCESS [ 1.027 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:01 min
[INFO] Finished at: 2015-04-17T12:26:46+01:00
[INFO] Final Memory: 68M/1913M
From: Amend, Christian [mailto:christian.amend@sap.com]
Sent: 17 April 2015 13:02
To: user@olingo.apache.org<ma...@olingo.apache.org>
Cc: Frédéric SOUCHU
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Hi Frederic,
have you tried using Java Version 1.6 or 1.7? I also have an English Windows 7 64bit system and I do not get this error.
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 11:29
To: user@olingo.apache.org<ma...@olingo.apache.org>
Subject: Unable to compile latest 4.0 source code: antlr error
Getting any pre-4.0.BETA 03 source code on Windows 7 (64bits - English version) produces the following error:
[INFO] --- antlr4-maven-plugin:4.1:antlr4 (default) @ odata-server-core ---
[INFO] ANTLR 4: Processing source directory D:\olingo-odata4-master-29e2833\lib\server-core\src\main\antlr4
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] Message{errorType=EPSILON_TOKEN, args=[REST_F], e=null, fileName='org\apache\olingo\server\core\uri\antlr\UriLexer.g4', line=314,charPosition=0}
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriParser.g4
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 3.260 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.343 s]
[INFO] odata-commons-api .................................. SUCCESS [ 4.605 s]
[INFO] odata-commons-core ................................. SUCCESS [ 5.963 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.794 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.570 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.203 s]
[INFO] odata-server-core .................................. FAILURE [ 0.921 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.111 s
[INFO] Finished at: 2015-04-17T10:24:39+01:00
[INFO] Final Memory: 84M/564M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.1:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.1:antlr4 failed: Index: 0, Size: 0 -> [Help 1]
Using Antlr 4.2 produces a bit more information but still fails:
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] warning(146): org\apache\olingo\server\core\uri\antlr\UriLexer.g4:314:0: non-fragment lexer rule 'REST_F' can match the empty string
[WARNING] d:\olingo-odata4-master-29e2833\org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [314:0]: non-fragment lexer rule 'REST_F' can match the empty string
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 4.043 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.374 s]
[INFO] odata-commons-api .................................. SUCCESS [ 5.449 s]
[INFO] odata-commons-core ................................. SUCCESS [ 7.063 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.841 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.680 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.265 s]
[INFO] odata-server-core .................................. FAILURE [ 0.812 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.276 s
[INFO] Finished at: 2015-04-17T10:16:38+01:00
[INFO] Final Memory: 84M/620M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.2:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.2:antlr4 failed: Serialized ATN data element out of range. -> [Help 1]
For information: Java -version gives:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
I have tried master branch, OLINGO-573 branch with the same result.
I have zero knowledge on the Antlr framework, however, the warning message seems fair:
REST_F : ~('\r'|'\n')* -> type(REST), popMode;
If ~ is a reserved Antlr keyword, then ()* can indeed match anything!
Thanks for pointer on how to fix the Beta 03 compilation.
Regards,
Frederic Souchu
RE: Unable to compile latest 4.0 source code: antlr error
Posted by Frédéric SOUCHU <Fr...@ingenico.com>.
Indeed, switching back to 1.7 did the trick!
Is it worth filling a bug report or is migration to JDK 1.8 a known item in the roadmap?
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 2.936 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.298 s]
[INFO] odata-commons-api .................................. SUCCESS [ 3.951 s]
[INFO] odata-commons-core ................................. SUCCESS [ 8.033 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.425 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.939 s]
[INFO] odata-server-api ................................... SUCCESS [ 1.710 s]
[INFO] odata-server-core .................................. SUCCESS [ 12.318 s]
[INFO] odata-server-tecsvc ................................ SUCCESS [ 10.165 s]
[INFO] odata-server-test .................................. SUCCESS [ 13.666 s]
[INFO] odata-ext .......................................... SUCCESS [ 0.102 s]
[INFO] odata-client-proxy ................................. SUCCESS [ 2.268 s]
[INFO] pojogen-maven-plugin ............................... SUCCESS [ 22.920 s]
[INFO] odata-client-android ............................... SUCCESS [ 12.891 s]
[INFO] odata-fit .......................................... SUCCESS [01:19 min]
[INFO] odata-dist ......................................... SUCCESS [ 0.109 s]
[INFO] Olingo-OData-Client-for-Android .................... SUCCESS [ 0.118 s]
[INFO] Olingo-OData-Client-for-Java ....................... SUCCESS [ 0.261 s]
[INFO] Olingo-OData-Server-for-Java ....................... SUCCESS [ 0.200 s]
[INFO] Olingo-OData-JavaDoc ............................... SUCCESS [ 0.092 s]
[INFO] odata-samples ...................................... SUCCESS [ 0.100 s]
[INFO] odata-server-sample ................................ SUCCESS [ 1.027 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:01 min
[INFO] Finished at: 2015-04-17T12:26:46+01:00
[INFO] Final Memory: 68M/1913M
From: Amend, Christian [mailto:christian.amend@sap.com]
Sent: 17 April 2015 13:02
To: user@olingo.apache.org
Cc: Frédéric SOUCHU
Subject: RE: Unable to compile latest 4.0 source code: antlr error
Hi Frederic,
have you tried using Java Version 1.6 or 1.7? I also have an English Windows 7 64bit system and I do not get this error.
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 11:29
To: user@olingo.apache.org<ma...@olingo.apache.org>
Subject: Unable to compile latest 4.0 source code: antlr error
Getting any pre-4.0.BETA 03 source code on Windows 7 (64bits - English version) produces the following error:
[INFO] --- antlr4-maven-plugin:4.1:antlr4 (default) @ odata-server-core ---
[INFO] ANTLR 4: Processing source directory D:\olingo-odata4-master-29e2833\lib\server-core\src\main\antlr4
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] Message{errorType=EPSILON_TOKEN, args=[REST_F], e=null, fileName='org\apache\olingo\server\core\uri\antlr\UriLexer.g4', line=314,charPosition=0}
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriParser.g4
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 3.260 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.343 s]
[INFO] odata-commons-api .................................. SUCCESS [ 4.605 s]
[INFO] odata-commons-core ................................. SUCCESS [ 5.963 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.794 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.570 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.203 s]
[INFO] odata-server-core .................................. FAILURE [ 0.921 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.111 s
[INFO] Finished at: 2015-04-17T10:24:39+01:00
[INFO] Final Memory: 84M/564M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.1:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.1:antlr4 failed: Index: 0, Size: 0 -> [Help 1]
Using Antlr 4.2 produces a bit more information but still fails:
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] warning(146): org\apache\olingo\server\core\uri\antlr\UriLexer.g4:314:0: non-fragment lexer rule 'REST_F' can match the empty string
[WARNING] d:\olingo-odata4-master-29e2833\org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [314:0]: non-fragment lexer rule 'REST_F' can match the empty string
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 4.043 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.374 s]
[INFO] odata-commons-api .................................. SUCCESS [ 5.449 s]
[INFO] odata-commons-core ................................. SUCCESS [ 7.063 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.841 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.680 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.265 s]
[INFO] odata-server-core .................................. FAILURE [ 0.812 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.276 s
[INFO] Finished at: 2015-04-17T10:16:38+01:00
[INFO] Final Memory: 84M/620M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.2:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.2:antlr4 failed: Serialized ATN data element out of range. -> [Help 1]
For information: Java -version gives:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
I have tried master branch, OLINGO-573 branch with the same result.
I have zero knowledge on the Antlr framework, however, the warning message seems fair:
REST_F : ~('\r'|'\n')* -> type(REST), popMode;
If ~ is a reserved Antlr keyword, then ()* can indeed match anything!
Thanks for pointer on how to fix the Beta 03 compilation.
Regards,
Frederic Souchu
RE: Unable to compile latest 4.0 source code: antlr error
Posted by "Amend, Christian" <ch...@sap.com>.
Hi Frederic,
have you tried using Java Version 1.6 or 1.7? I also have an English Windows 7 64bit system and I do not get this error.
Best Regards,
Christian
From: Frédéric SOUCHU [mailto:Frederic.SOUCHU@ingenico.com]
Sent: Freitag, 17. April 2015 11:29
To: user@olingo.apache.org
Subject: Unable to compile latest 4.0 source code: antlr error
Getting any pre-4.0.BETA 03 source code on Windows 7 (64bits - English version) produces the following error:
[INFO] --- antlr4-maven-plugin:4.1:antlr4 (default) @ odata-server-core ---
[INFO] ANTLR 4: Processing source directory D:\olingo-odata4-master-29e2833\lib\server-core\src\main\antlr4
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] Message{errorType=EPSILON_TOKEN, args=[REST_F], e=null, fileName='org\apache\olingo\server\core\uri\antlr\UriLexer.g4', line=314,charPosition=0}
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriParser.g4
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 3.260 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.343 s]
[INFO] odata-commons-api .................................. SUCCESS [ 4.605 s]
[INFO] odata-commons-core ................................. SUCCESS [ 5.963 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.794 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.570 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.203 s]
[INFO] odata-server-core .................................. FAILURE [ 0.921 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.111 s
[INFO] Finished at: 2015-04-17T10:24:39+01:00
[INFO] Final Memory: 84M/564M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.1:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.1:antlr4 failed: Index: 0, Size: 0 -> [Help 1]
Using Antlr 4.2 produces a bit more information but still fails:
[INFO] Processing grammar: org\apache\olingo\server\core\uri\antlr\UriLexer.g4
[WARNING] warning(146): org\apache\olingo\server\core\uri\antlr\UriLexer.g4:314:0: non-fragment lexer rule 'REST_F' can match the empty string
[WARNING] d:\olingo-odata4-master-29e2833\org\apache\olingo\server\core\uri\antlr\UriLexer.g4 [314:0]: non-fragment lexer rule 'REST_F' can match the empty string
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Olingo-OData ....................................... SUCCESS [ 4.043 s]
[INFO] odata-lib .......................................... SUCCESS [ 0.374 s]
[INFO] odata-commons-api .................................. SUCCESS [ 5.449 s]
[INFO] odata-commons-core ................................. SUCCESS [ 7.063 s]
[INFO] odata-client-api ................................... SUCCESS [ 1.841 s]
[INFO] odata-client-core .................................. SUCCESS [ 6.680 s]
[INFO] odata-server-api ................................... SUCCESS [ 2.265 s]
[INFO] odata-server-core .................................. FAILURE [ 0.812 s]
[INFO] odata-server-tecsvc ................................ SKIPPED
[INFO] odata-server-test .................................. SKIPPED
[INFO] odata-ext .......................................... SKIPPED
[INFO] odata-client-proxy ................................. SKIPPED
[INFO] pojogen-maven-plugin ............................... SKIPPED
[INFO] odata-client-android ............................... SKIPPED
[INFO] odata-fit .......................................... SKIPPED
[INFO] odata-dist ......................................... SKIPPED
[INFO] Olingo-OData-Client-for-Android .................... SKIPPED
[INFO] Olingo-OData-Client-for-Java ....................... SKIPPED
[INFO] Olingo-OData-Server-for-Java ....................... SKIPPED
[INFO] Olingo-OData-JavaDoc ............................... SKIPPED
[INFO] odata-samples ...................................... SKIPPED
[INFO] odata-server-sample ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.276 s
[INFO] Finished at: 2015-04-17T10:16:38+01:00
[INFO] Final Memory: 84M/620M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.antlr:antlr4-maven-plugin:4.2:antlr4 (default) on project odata-server-core: Execution default of goal org.antlr:antlr4-maven-plugin:4.2:antlr4 failed: Serialized ATN data element out of range. -> [Help 1]
For information: Java -version gives:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
I have tried master branch, OLINGO-573 branch with the same result.
I have zero knowledge on the Antlr framework, however, the warning message seems fair:
REST_F : ~('\r'|'\n')* -> type(REST), popMode;
If ~ is a reserved Antlr keyword, then ()* can indeed match anything!
Thanks for pointer on how to fix the Beta 03 compilation.
Regards,
Frederic Souchu