You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Steve Whitlatch <sw...@getnet.net> on 2005/04/14 18:27:51 UTC

1.5 Sun JDK and Xindice?

I'm using some features from the 1.5 Sun JDK. In the Xindice FAQ, I see:

********
8. Which JDK should I use?

We recommend Sun's SDK for Java 1.3.  Xindice will not work with
the 1.2 SDK, and we have not tested it yet with the 1.4 SDK.
There are known issues with Sun's SDK for Java 1.3.1 on several
Linux distributions, but 1.3.0 should work without any problems.
************

Any info about Xindice becoming compatible with Sun's 1.5 JDK? 

Thanks, 

Steve Whitlatch

 


Re: 1.5 Sun JDK and Xindice?

Posted by Murray Altheim <m....@open.ac.uk>.
Steve Whitlatch wrote:
> I'm using some features from the 1.5 Sun JDK. In the Xindice FAQ, I see:
> 
> ********
> 8. Which JDK should I use?
> 
> We recommend Sun's SDK for Java 1.3.  Xindice will not work with
> the 1.2 SDK, and we have not tested it yet with the 1.4 SDK.
> There are known issues with Sun's SDK for Java 1.3.1 on several
> Linux distributions, but 1.3.0 should work without any problems.
> ************
> 
> Any info about Xindice becoming compatible with Sun's 1.5 JDK? 

As a point of information, I've been using Xindice with all of the
various versions of 1.4 with no noticeable problems. I've not
tried 1.5 yet.

Murray

......................................................................
Murray Altheim                    http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

        Ils ont l'orteil de Bouc, & d'un Chevreil l'oreille,
        La corne d'un Chamois, & la face vermeille
        Comme un rouge Croissant: & dancent toute nuict
        Dedans un carrefour, ou pres d'une eau qui bruict.

Re: 1.5 Sun JDK and Xindice?

Posted by Mark Eggers <it...@yahoo.com>.
On Thu, 2005-04-14 at 20:03 +0100, Murray Altheim wrote:
> Laxma Reddy Dendi wrote:
> > i tried xindice 1.1b3 & 1.1b4 soruce with JDK1.5 and both failed to compile.

I just checked out the latest version in CVS and built it Fedora Core 3
with jdk1.5.0_01.

I ran ./build.sh test and got one (anticipated) failure out of 319
tests.

The failure was in IntegrationXmlRpcTests running
testGetUnknownDatabase.

The report is as follows:

Expected ErrorCodes.NO_SUCH_DATABASE (400), got collection: null
junit.framework.AssertionFailedError: Expected
ErrorCodes.NO_SUCH_DATABASE (400), got collection: null
at 
org.apache.xindice.integration.client.basic.CollectionTest.testGetUnknownDatabase(CollectionTest.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junitx.extensions.TestSetup$1.protect(TestSetup.java:81)
at junitx.extensions.TestSetup.run(TestSetup.java:87)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junitx.extensions.TestSetup$1.protect(TestSetup.java:81)
at junitx.extensions.TestSetup.run(TestSetup.java:87)

Sorry for the line wrap.

Everything else was clean.

-- 
Mark Eggers <it...@yahoo.com>


Re: 1.5 Sun JDK and Xindice?

Posted by Murray Altheim <m....@open.ac.uk>.
Laxma Reddy Dendi wrote:
> here is the output from the build command (jdk1.5.0_02, got the latest
> xindice with cvs, on Windows 2000 prof)
> ====================================================================
[...] ryImpl.java:32: org.apache.xindice.xml.jaxp.DocumentBuilderFactoryImpl is
> not abstract and does not override abstract method getFeature(java.lang.String)
> in javax.xml.parsers.DocumentBuilderFactory
>     [javac] public class DocumentBuilderFactoryImpl extends DocumentBuilderFacto
> ry {
>     [javac]        ^
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 14 errors
> 
> BUILD FAILED
> file:D:/Xindice-1.1b5/build.xml:102: Compile failed; see the compiler error outp
> ut for details.
> 
> Total time: 8 seconds
> 
> D:\Xindice-1.1b5>
> ==================================================================
> 
> 
> any ideas how to fix these errors...
> 
> thanks
> 
> laxma

Laxma,

I'm unable to help today (working on a paper), but the key I
think is to force Xindice to use the XML parser you want. I believe
this is done by setting the values under XINDICE_HOME/config/vm.cgf.
If this isn't the answer, perhaps Vadim or somebody can pipe in...

Murray

......................................................................
Murray Altheim                    http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

   Bob did give me the secret to world domination, which was pretty
   startling. He looked at me and he said, "Don" (he called me Don),
   "think how dumb the average guy is." And I thought about that for
   a moment, and he said, "Half of them are dumber than that."

   http://www.austinchronicle.com/issues/vol17/issue47/screens.webb.html

Re: 1.5 Sun JDK and Xindice?

Posted by Laxma Reddy Dendi <la...@gmail.com>.
here is the output from the build command (jdk1.5.0_02, got the latest
xindice with cvs, on Windows 2000 prof)
====================================================================
D:\Xindice-1.1b5>build
Using Java from d:\jdk1.5.0_02
Buildfile: build.xml

src-build:
    [javac] Compiling 29 source files to D:\Xindice-1.1b5\build\classes
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\AttrImpl.java:3
1: org.apache.xindice.xml.dom.AttrImpl is not abstract and does not override abs
tract method setUserData(java.lang.String,java.lang.Object,org.w3c.dom.UserDataH
andler) in org.w3c.dom.Node
    [javac] public final class AttrImpl extends ContainerNodeImpl implements Att
r {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\TextImpl.java:3
0: org.apache.xindice.xml.dom.TextImpl is not abstract and does not override abs
tract method setUserData(java.lang.String,java.lang.Object,org.w3c.dom.UserDataH
andler) in org.w3c.dom.Node
    [javac] public class TextImpl extends CharacterDataImpl implements Text {
    [javac]        ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\CDATASectionImp
l.java:29: org.apache.xindice.xml.dom.CDATASectionImpl is not abstract and does
not override abstract method replaceWholeText(java.lang.String) in org.w3c.dom.T
ext
    [javac] public final class CDATASectionImpl extends TextImpl implements CDAT
ASection {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\CommentImpl.jav
a:29: org.apache.xindice.xml.dom.CommentImpl is not abstract and does not overri
de abstract method setUserData(java.lang.String,java.lang.Object,org.w3c.dom.Use
rDataHandler) in org.w3c.dom.Node
    [javac] public final class CommentImpl extends CharacterDataImpl implements
Comment {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\DOMImplementati
onImpl.java:32: org.apache.xindice.xml.dom.DOMImplementationImpl is not abstract
 and does not override abstract method getFeature(java.lang.String,java.lang.Str
ing) in org.w3c.dom.DOMImplementation
    [javac] public final class DOMImplementationImpl implements DOMImplementatio
n {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\DocumentFragmen
tImpl.java:29: org.apache.xindice.xml.dom.DocumentFragmentImpl is not abstract a
nd does not override abstract method setUserData(java.lang.String,java.lang.Obje
ct,org.w3c.dom.UserDataHandler) in org.w3c.dom.Node
    [javac] public final class DocumentFragmentImpl extends ContainerNodeImpl im
plements DocumentFragment {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\DocumentImpl.ja
va:57: org.apache.xindice.xml.dom.DocumentImpl is not abstract and does not over
ride abstract method setUserData(java.lang.String,java.lang.Object,org.w3c.dom.U
serDataHandler) in org.w3c.dom.Node
    [javac] public final class DocumentImpl extends ContainerNodeImpl
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\DocumentTypeImp
l.java:30: org.apache.xindice.xml.dom.DocumentTypeImpl is not abstract and does
not override abstract method setUserData(java.lang.String,java.lang.Object,org.w
3c.dom.UserDataHandler) in org.w3c.dom.Node
    [javac] public final class DocumentTypeImpl extends NodeImpl implements Docu
mentType {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\ElementImpl.jav
a:43: org.apache.xindice.xml.dom.ElementImpl is not abstract and does not overri
de abstract method setUserData(java.lang.String,java.lang.Object,org.w3c.dom.Use
rDataHandler) in org.w3c.dom.Node
    [javac] public final class ElementImpl extends ContainerNodeImpl implements
Element {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\EntityImpl.java
:29: org.apache.xindice.xml.dom.EntityImpl is not abstract and does not override
 abstract method setUserData(java.lang.String,java.lang.Object,org.w3c.dom.UserD
ataHandler) in org.w3c.dom.Node
    [javac] public final class EntityImpl extends NodeImpl implements Entity {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\EntityReference
Impl.java:36: org.apache.xindice.xml.dom.EntityReferenceImpl is not abstract and
 does not override abstract method setUserData(java.lang.String,java.lang.Object
,org.w3c.dom.UserDataHandler) in org.w3c.dom.Node
    [javac] public final class EntityReferenceImpl extends NodeImpl implements E
ntityReference {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\NotationImpl.ja
va:29: org.apache.xindice.xml.dom.NotationImpl is not abstract and does not over
ride abstract method setUserData(java.lang.String,java.lang.Object,org.w3c.dom.U
serDataHandler) in org.w3c.dom.Node
    [javac] public final class NotationImpl extends NodeImpl implements Notation
 {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\dom\ProcessingInstr
uctionImpl.java:36: org.apache.xindice.xml.dom.ProcessingInstructionImpl is not
abstract and does not override abstract method setUserData(java.lang.String,java
.lang.Object,org.w3c.dom.UserDataHandler) in org.w3c.dom.Node
    [javac] public final class ProcessingInstructionImpl extends NodeImpl implem
ents ProcessingInstruction {
    [javac]              ^
    [javac] D:\Xindice-1.1b5\java\src\org\apache\xindice\xml\jaxp\DocumentBuilde
rFactoryImpl.java:32: org.apache.xindice.xml.jaxp.DocumentBuilderFactoryImpl is
not abstract and does not override abstract method getFeature(java.lang.String)
in javax.xml.parsers.DocumentBuilderFactory
    [javac] public class DocumentBuilderFactoryImpl extends DocumentBuilderFacto
ry {
    [javac]        ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 14 errors

BUILD FAILED
file:D:/Xindice-1.1b5/build.xml:102: Compile failed; see the compiler error outp
ut for details.

Total time: 8 seconds

D:\Xindice-1.1b5>
==================================================================


any ideas how to fix these errors...

thanks

laxma

On 4/14/05, Murray Altheim <m....@open.ac.uk> wrote:
> Laxma Reddy Dendi wrote:
> > i tried xindice 1.1b3 & 1.1b4 soruce with JDK1.5 and both failed to compile.
> 
> It would be very helpful if you could provide any information
> on what actually happened when you tried to compile it, i.e.,
> which packages or classes failed, and why. A stacktrace would
> be fine in this regard. Sometimes these things are due to an
> individual's platform, specific installation, classpath settings,
> etc.
> 
> If I remember correctly, Vadim suggested that I not use 1.1b3 as
> it has some problems, so we'd really only need know about 1.1b4.
> 
> If you didn't keep track of that info, that's okay. Just wondering
> if you had. My own targets don't currently include JDK 1.5 so I
> won't be testing for compatibility myself.
> 
> Thanks,
> 
> Murray
>

Re: 1.5 Sun JDK and Xindice?

Posted by Murray Altheim <m....@open.ac.uk>.
Laxma Reddy Dendi wrote:
> i tried xindice 1.1b3 & 1.1b4 soruce with JDK1.5 and both failed to compile.

It would be very helpful if you could provide any information
on what actually happened when you tried to compile it, i.e.,
which packages or classes failed, and why. A stacktrace would
be fine in this regard. Sometimes these things are due to an
individual's platform, specific installation, classpath settings,
etc.

If I remember correctly, Vadim suggested that I not use 1.1b3 as
it has some problems, so we'd really only need know about 1.1b4.

If you didn't keep track of that info, that's okay. Just wondering
if you had. My own targets don't currently include JDK 1.5 so I
won't be testing for compatibility myself.

Thanks,

Murray

> On 4/14/05, Steve Whitlatch <sw...@getnet.net> wrote:
> 
>>I'm using some features from the 1.5 Sun JDK. In the Xindice FAQ, I see:
>>
>>********
>>8. Which JDK should I use?
>>
>>We recommend Sun's SDK for Java 1.3.  Xindice will not work with
>>the 1.2 SDK, and we have not tested it yet with the 1.4 SDK.
>>There are known issues with Sun's SDK for Java 1.3.1 on several
>>Linux distributions, but 1.3.0 should work without any problems.
>>************
>>
>>Any info about Xindice becoming compatible with Sun's 1.5 JDK?
>>
>>Thanks,
>>
>>Steve Whitlatch


......................................................................
Murray Altheim                    http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

        Ils ont l'orteil de Bouc, & d'un Chevreil l'oreille,
        La corne d'un Chamois, & la face vermeille
        Comme un rouge Croissant: & dancent toute nuict
        Dedans un carrefour, ou pres d'une eau qui bruict.

Re: 1.5 Sun JDK and Xindice?

Posted by Laxma Reddy Dendi <la...@gmail.com>.
i tried xindice 1.1b3 & 1.1b4 soruce with JDK1.5 and both failed to compile.





On 4/14/05, Steve Whitlatch <sw...@getnet.net> wrote:
> I'm using some features from the 1.5 Sun JDK. In the Xindice FAQ, I see:
> 
> ********
> 8. Which JDK should I use?
> 
> We recommend Sun's SDK for Java 1.3.  Xindice will not work with
> the 1.2 SDK, and we have not tested it yet with the 1.4 SDK.
> There are known issues with Sun's SDK for Java 1.3.1 on several
> Linux distributions, but 1.3.0 should work without any problems.
> ************
> 
> Any info about Xindice becoming compatible with Sun's 1.5 JDK?
> 
> Thanks,
> 
> Steve Whitlatch
> 
>