Discussion:
[jira] [Created] (COCOON-2344) XSP not working with Java 8
Francesco Chicchiriccò (JIRA)
2015-01-15 08:14:34 UTC
Permalink
Francesco Chicchiriccò created COCOON-2344:
----------------------------------------------

Summary: XSP not working with Java 8
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Fix For: 2.1.13


When running with Java 8 and accessing

http://localhost:8888/samples/blocks/xsp/java/cacheable

a NullPointerException is reported.

This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.

See the relevant ML discussion at

http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-01-15 08:15:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò updated COCOON-2344:
-------------------------------------------
Attachment: COCOON-2344.patch

This patch replaces

lib/core/jdtcore-3.1.0.jar

with

lib/core/org.eclipse.jdt.core_3.10.0.v20140902-0626.jar

which can be downloaded from [1] (and seems not ho have any licensing changes), and also makes some minor adjustments.

[1] http://repository.grepcode.com/java/eclipse.org/4.4.1/plugins/org.eclipse.jdt.core_3.10.0.v20140902-0626.jar
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
carlos chávez (JIRA)
2015-01-30 14:07:35 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

carlos chávez updated COCOON-2344:
----------------------------------
Attachment: COCOON-2344.patch

Added sourceCodeVersion and target platform to identify java 1.6 to 1.8.
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch, COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-01-31 05:12:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò updated COCOON-2344:
-------------------------------------------
Attachment: (was: COCOON-2344.patch)
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-01-31 05:15:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò reassigned COCOON-2344:
----------------------------------------------

Assignee: Francesco Chicchiriccò
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-01-31 05:22:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299680#comment-14299680 ]

Francesco Chicchiriccò commented on COCOON-2344:
------------------------------------------------

Patch applied: http://svn.apache.org/r1656165
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-01-31 05:23:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò closed COCOON-2344.
------------------------------------------
Resolution: Fixed
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Hudson (JIRA)
2015-01-31 06:08:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299686#comment-14299686 ]

Hudson commented on COCOON-2344:
--------------------------------

FAILURE: Integrated in Cocoon 2.1.X #98 (See [https://builds.apache.org/job/Cocoon%202.1.X/98/])
[COCOON-2344] Applying the provided patch (ilgrosso: http://svn.apache.org/viewvc/?view=rev&rev=1656165)
* /cocoon/branches/BRANCH_2_1_X/lib/core/jdtcore-3.1.0.jar
* /cocoon/branches/BRANCH_2_1_X/lib/core/org.eclipse.jdt.core_3.10.0.v20140902-0626.jar
* /cocoon/branches/BRANCH_2_1_X/lib/jars.xml
* /cocoon/branches/BRANCH_2_1_X/misc/notes/review-jars.txt
* /cocoon/branches/BRANCH_2_1_X/src/blocks/xsp/java/org/apache/cocoon/components/language/programming/java/EclipseJavaCompiler.java
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-02-02 09:22:35 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò reopened COCOON-2344:
--------------------------------------------

It seems there is a problem; see
https://builds.apache.org/job/Cocoon%202.1.X/98/console

bad class file: /home/jenkins/jenkins-slave/workspace/Cocoon
2.1.X/BRANCH_2_1_X/lib/core/org.eclipse.jdt.core_3.10.0.v20140902-0626.jar(org/eclipse/jdt/core/compiler/IProblem.class)
class file has wrong version 50.0, should be 48.0

This means that the JAR above does not work with JDK 1.4, which is
currently a pre-requisite for Cocoon 2.1.X
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Hudson (JIRA)
2015-02-02 09:25:36 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301044#comment-14301044 ]

Hudson commented on COCOON-2344:
--------------------------------

SUCCESS: Integrated in Cocoon 2.1.X #99 (See [https://builds.apache.org/job/Cocoon%202.1.X/99/])
[COCOON-2344] Restore compatibility with Java 1.4 (ilgrosso: http://svn.apache.org/viewvc/?view=rev&rev=1656424)
* /cocoon/branches/BRANCH_2_1_X/lib/core/org.eclipse.jdt.core-3.9.1.v20130905-0837.jar
* /cocoon/branches/BRANCH_2_1_X/lib/core/org.eclipse.jdt.core_3.10.0.v20140902-0626.jar
* /cocoon/branches/BRANCH_2_1_X/lib/jars.xml
* /cocoon/branches/BRANCH_2_1_X/misc/notes/review-jars.txt
* /cocoon/branches/BRANCH_2_1_X/src/blocks/xsp/java/org/apache/cocoon/components/language/programming/java/EclipseJavaCompiler.java
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Francesco Chicchiriccò (JIRA)
2015-02-02 09:28:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò closed COCOON-2344.
------------------------------------------
Resolution: Fixed

The new version (org.eclipse.jdt.core-3.9.1.v20130905-0837.jar) seems to be the latest compatible with Java 1.4.

I have checked both URLs that were reported as failing in the samples (http://localhost:8888/samples/blocks/xsp/java/cacheable http://localhost:8888/samples/blocks/xsp/java/java5) and they both worked.
Post by Francesco Chicchiriccò (JIRA)
XSP not working with Java 8
---------------------------
Key: COCOON-2344
URL: https://issues.apache.org/jira/browse/COCOON-2344
Project: Cocoon
Issue Type: Bug
Components: Blocks: XSP
Affects Versions: 2.1.12
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
Fix For: 2.1.13
Attachments: COCOON-2344.patch
When running with Java 8 and accessing
http://localhost:8888/samples/blocks/xsp/java/cacheable
a NullPointerException is reported.
This seems to be due to lib/core/jdtcore-3.1.0.jar which is reported not working with Java 8.
See the relevant ML discussion at
http://cocoon.10839.n7.nabble.com/cocoon-2-1-x-and-java-8-td58465.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...