1 2 Previous Next 17 Replies Latest reply on Dec 11, 2003 3:31 AM by belaban Go to original post
      • 15. Re: Fails on Java 1.3.1
        norbert

        I can't find TreeCacheMBean, TreeCacheViewMBean TreeCacheAOPMBean in CVS. I guess they are without version-control placed on your harddisk.

        • 16. Re: Fails on Java 1.3.1
          belaban

          they're generated as part of the build

          Bela

          • 17. Re: Fails on Java 1.3.1
            norbert

            thank you for the hint (must have been blind), but you must admit that it really sucks when you start from scratch by downloading everything from JBoss-CVS and all module-names are different from the directory-names that are refereced in the build.xml's...

            I had to change a few more lines to get the code from CVS-HEAD (both JGroups and JBossCache) running on JDK 1.3.1:

            enable the use of ContextInputStream in org.jboss.Message.getObject() (otherwise you get the same 'ClassNotFoundException: boolean'):

            public Object getObject() {
            if(buf == null) return null;
            try {
            ByteArrayInputStream in_stream=new ByteArrayInputStream(buf, offset, length);
            // ObjectInputStream in=new ObjectInputStream(in_stream);
            ObjectInputStream in=new ContextObjectInputStream(in_stream);
            return in.readObject();
            }
            catch(Exception ex) {
            throw new IllegalArgumentException(ex.toString());
            }
            }

            remove the use of 'Boolean.valueOf(boolean)' (which is a new method in JDK 1.4) in org.jgroups.JChannel.getOpt(int) to fix a 'noSuchMethodException' on JDK 1.3.1:

            public Object getOpt(int option) {
            switch(option) {
            case VIEW:
            // return Boolean.valueOf(receive_views);
            return receive_views ? Boolean.TRUE : Boolean.FALSE;
            case BLOCK:
            // return Boolean.valueOf(receive_blocks);
            return receive_blocks ? Boolean.TRUE : Boolean.FALSE;
            case SUSPECT:
            // return Boolean.valueOf(receive_suspects);
            return receive_suspects ? Boolean.TRUE : Boolean.FALSE;
            case GET_STATE_EVENTS:
            // return Boolean.valueOf(receive_get_states);
            return receive_get_states ? Boolean.TRUE : Boolean.FALSE;
            case LOCAL:
            // return Boolean.valueOf(receive_local_msgs);
            return receive_local_msgs ? Boolean.TRUE : Boolean.FALSE;
            default:
            if(log.isErrorEnabled()) log.error("option " + Channel.option2String(option) + " not known");
            return null;
            }
            }

            1 2 Previous Next