You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Maxim Zinal (JIRA)" <ji...@apache.org> on 2012/08/21 16:40:37 UTC

[jira] [Created] (AMQ-3984) ActiveMQ is incompatible with JDK 1.5

Maxim Zinal created AMQ-3984:
--------------------------------

             Summary: ActiveMQ is incompatible with JDK 1.5
                 Key: AMQ-3984
                 URL: https://issues.apache.org/jira/browse/AMQ-3984
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker, Message Store
    Affects Versions: 5.6.0
         Environment: Debian/GNU Linux 6.0
            Reporter: Maxim Zinal
            Priority: Minor


ActiveMQ documentation claims to support Java 5, which is not currently true: at least JDK 6 is required to build and run ActiveMQ 5.6.0.

I was not able to build ActiveMQ with Sun JDK 1.5, because build fails on KahaDB with the following error message:

[ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.5:bundle (default-bundle) on project kahadb: Execution default-bundle of goal org.apache.felix:maven-bundle-plugin:2.3.5:bundle failed: An API incompatibility was encountered while executing org.apache.felix:maven-bundle-plugin:2.3.5:bundle: java.lang.NoSuchMethodError: java.lang.String.getBytes(Ljava/nio/charset/Charset;)[B

I was able to run ActiveMQ broker under IBM JDK 5 (in WebSphere Application Server 6.1 environment) after applying some code changes and rebuilding ActiveMQ with Oracle JDK 7 (in compatibility mode, with "-source 1.5 -target 1.5" options).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AMQ-3984) ActiveMQ is incompatible with JDK 1.5

Posted by "Maxim Zinal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim Zinal updated AMQ-3984:
-----------------------------

    Attachment: activemq-5.6.0-JDK15.diff

This is a simple patch against ActiveMQ 5.6.0 source code to make it build for JDK 1.5 as a target platform.
                
> ActiveMQ is incompatible with JDK 1.5
> -------------------------------------
>
>                 Key: AMQ-3984
>                 URL: https://issues.apache.org/jira/browse/AMQ-3984
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker, Message Store
>    Affects Versions: 5.6.0
>         Environment: Debian/GNU Linux 6.0
>            Reporter: Maxim Zinal
>            Priority: Minor
>         Attachments: activemq-5.6.0-JDK15.diff
>
>
> ActiveMQ documentation claims to support Java 5, which is not currently true: at least JDK 6 is required to build and run ActiveMQ 5.6.0.
> I was not able to build ActiveMQ with Sun JDK 1.5, because build fails on KahaDB with the following error message:
> [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.5:bundle (default-bundle) on project kahadb: Execution default-bundle of goal org.apache.felix:maven-bundle-plugin:2.3.5:bundle failed: An API incompatibility was encountered while executing org.apache.felix:maven-bundle-plugin:2.3.5:bundle: java.lang.NoSuchMethodError: java.lang.String.getBytes(Ljava/nio/charset/Charset;)[B
> I was able to run ActiveMQ broker under IBM JDK 5 (in WebSphere Application Server 6.1 environment) after applying some code changes and rebuilding ActiveMQ with Oracle JDK 7 (in compatibility mode, with "-source 1.5 -target 1.5" options).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (AMQ-3984) ActiveMQ is incompatible with JDK 1.5

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish closed AMQ-3984.
-----------------------------

    Resolution: Not A Problem

Version 5.6.0 is targeted towards JDK 1.6 not 1.5.  If you can provide the links to the docs you are referring to we can update them to reflect this.
                
> ActiveMQ is incompatible with JDK 1.5
> -------------------------------------
>
>                 Key: AMQ-3984
>                 URL: https://issues.apache.org/jira/browse/AMQ-3984
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker, Message Store
>    Affects Versions: 5.6.0
>         Environment: Debian/GNU Linux 6.0
>            Reporter: Maxim Zinal
>            Priority: Minor
>         Attachments: activemq-5.6.0-JDK15.diff
>
>
> ActiveMQ documentation claims to support Java 5, which is not currently true: at least JDK 6 is required to build and run ActiveMQ 5.6.0.
> I was not able to build ActiveMQ with Sun JDK 1.5, because build fails on KahaDB with the following error message:
> [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.5:bundle (default-bundle) on project kahadb: Execution default-bundle of goal org.apache.felix:maven-bundle-plugin:2.3.5:bundle failed: An API incompatibility was encountered while executing org.apache.felix:maven-bundle-plugin:2.3.5:bundle: java.lang.NoSuchMethodError: java.lang.String.getBytes(Ljava/nio/charset/Charset;)[B
> I was able to run ActiveMQ broker under IBM JDK 5 (in WebSphere Application Server 6.1 environment) after applying some code changes and rebuilding ActiveMQ with Oracle JDK 7 (in compatibility mode, with "-source 1.5 -target 1.5" options).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3984) ActiveMQ is incompatible with JDK 1.5

Posted by "Maxim Zinal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438820#comment-13438820 ] 

Maxim Zinal commented on AMQ-3984:
----------------------------------

At least the following documents state that ActiveMQ is targeted towards JDK 1.5:
http://activemq.apache.org/what-platforms-does-activemq-support.html
http://activemq.apache.org/can-i-use-activemq-5x-or-later-on-java-14.html

I also could not find anywhere which was the last ActiveMQ release to support JDK 1.5.
                
> ActiveMQ is incompatible with JDK 1.5
> -------------------------------------
>
>                 Key: AMQ-3984
>                 URL: https://issues.apache.org/jira/browse/AMQ-3984
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker, Message Store
>    Affects Versions: 5.6.0
>         Environment: Debian/GNU Linux 6.0
>            Reporter: Maxim Zinal
>            Priority: Minor
>         Attachments: activemq-5.6.0-JDK15.diff
>
>
> ActiveMQ documentation claims to support Java 5, which is not currently true: at least JDK 6 is required to build and run ActiveMQ 5.6.0.
> I was not able to build ActiveMQ with Sun JDK 1.5, because build fails on KahaDB with the following error message:
> [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.5:bundle (default-bundle) on project kahadb: Execution default-bundle of goal org.apache.felix:maven-bundle-plugin:2.3.5:bundle failed: An API incompatibility was encountered while executing org.apache.felix:maven-bundle-plugin:2.3.5:bundle: java.lang.NoSuchMethodError: java.lang.String.getBytes(Ljava/nio/charset/Charset;)[B
> I was able to run ActiveMQ broker under IBM JDK 5 (in WebSphere Application Server 6.1 environment) after applying some code changes and rebuilding ActiveMQ with Oracle JDK 7 (in compatibility mode, with "-source 1.5 -target 1.5" options).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira