You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Thomas Schüppel <t....@bit-side.com> on 2002/06/20 11:16:08 UTC

Patch for Build Error in Slide 2.0 from CVS

hi,

building XMLValue fails due to the fact that no IOException is
thrown inside the try statement. The following patch should fix
this.
Additionally AbstractWebdavMethod needs to be patched (at
least for me).



Index: util/XMLValue.java
====================================================
RCS file: /home/cvspublic/jakarta-
slide/src/webdav/server/org/apache/slide/webdav/util/XMLValue.java,v
retrieving revision 1.8
diff -r1.8 XMLValue.java
274,285c274,278
<             try {
<                 Document document = builder.build(new StringReader(buffer.toString()));
<                 List children = document.getRootElement().getChildren();
<                 add(children);
<                 // detach elements from parent
<                 document.getRootElement().removeChildren();
<             }
<             catch (IOException e) {
<                 // should not happen since the StringReader does not
<                 // perform any "real" I/O
<                 throw new JDOMException(e.getMessage());
<             }
---
>             Document document = builder.build(new StringReader(buffer.toString()));
>             List children = document.getRootElement().getChildren();
>             add(children);
>             // detach elements from parent
>             document.getRootElement().removeChildren();




Index: method/AbstractWebdavMethod.java
====================================================
RCS file: /home/cvspublic/jakarta-
slide/src/webdav/server/org/apache/slide/webdav/method/AbstractWebdavMethod.java
,v
retrieving revision 1.1
diff -r1.1 AbstractWebdavMethod.java
112c112
<     implements WebdavMethod {
---
>     implements org.apache.slide.webdav.WebdavMethod {




l8r...
	Thomas


--
Thomas Schüppel, bit~side GmbH   Fon:   +49+30+394054-28
Salzufer 14a, 10587 Berlin     Fax:   +49+30+394054-51
http://www.bit-side.com        Email: t.schueppel@bit-side.com





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Patch for Build Error in Slide 2.0 from CVS

Posted by Raimo Ihle <r....@bit-side.com>.
Hi Christopher:

Christopher Lenz wrote:

> Hmm, the class org.apache.slide.webdav.method.WebdavMethod is removed from CVS,
> please check if it was also removed locally.

It was.
 
> If it is, maybe the corresponding class file is still hanging around on your
> system, and you should get away with a simple "ant clean".

That did it!

I always thought "ant full-dist" does a full recompile, from now
on I'll go with "ant clean; ant full-dist" !

Thanks,
Raimo.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Patch for Build Error in Slide 2.0 from CVS

Posted by Christopher Lenz <cm...@gmx.de>.
Am 20.06.2002 12:20:40, schrieb Raimo Ihle <r....@bit-side.com>:
>Hi Christopher,
>
>Christopher Lenz wrote:
>> BTW, what is that second diff below for ?
>
>It is really usefull, should you like to get the current CVS-version to
>compile ;-)

Hmm, the class org.apache.slide.webdav.method.WebdavMethod is removed from CVS, 
please check if it was also removed locally.

If it is, maybe the corresponding class file is still hanging around on your 
system, and you should get away with a simple "ant clean".

>If you don't apply it, compiling the current CVS-Version looks something
>like this:
>
>----------------------------------------------------------------------------
>Compiling 44 source files to
>H:\proj\slide\jakarta-slide.cvsed\build\classes
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\AbstractWebdavMethod.java:112: interface expected here
>    implements WebdavMethod {
>               ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:108: incompatible types
>found   : org.apache.slide.webdav.method.GetMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new GetMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:110: incompatible types
>found   : org.apache.slide.webdav.method.PropFindMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new PropFindMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:112: incompatible types
>found   : org.apache.slide.webdav.method.HeadMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new HeadMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:114: incompatible types
>found   : org.apache.slide.webdav.method.LockMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new LockMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:116: incompatible types
>found   : org.apache.slide.webdav.method.UnlockMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new UnlockMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:118: incompatible types
>found   : org.apache.slide.webdav.method.OptionsMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new OptionsMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:120: incompatible types
>found   : org.apache.slide.webdav.method.PutMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new PutMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:122: incompatible types
>found   : org.apache.slide.webdav.method.MkcolMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new MkcolMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:124: incompatible types
>found   : org.apache.slide.webdav.method.PostMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new PostMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:126: incompatible types
>found   : org.apache.slide.webdav.method.CopyMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new CopyMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:128: incompatible types
>found   : org.apache.slide.webdav.method.MoveMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new MoveMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:130: incompatible types
>found   : org.apache.slide.webdav.method.DeleteMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new DeleteMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:132: incompatible types
>found   : org.apache.slide.webdav.method.PropPatchMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new PropPatchMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:134: incompatible types
>found   : org.apache.slide.webdav.method.SearchMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new SearchMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:136: incompatible types
>found   : org.apache.slide.webdav.method.ReportMethod
>required: org.apache.slide.webdav.WebdavMethod
>            return new ReportMethod(token, config);
>                   ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:140: incompatible types
>found   : org.apache.slide.webdav.method.AclMethod
>required: org.apache.slide.webdav.WebdavMethod
>                    return new AclMethod(token, config);
>                           ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:145: incompatible types
>found   : org.apache.slide.webdav.method.VersionControlMethod
>required: org.apache.slide.webdav.WebdavMethod
>                    return new VersionControlMethod(token, config);
>                           ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:147: incompatible types
>found   : org.apache.slide.webdav.method.CheckinMethod
>required: org.apache.slide.webdav.WebdavMethod
>                    return new CheckinMethod(token, config);
>                           ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:149: incompatible types
>found   : org.apache.slide.webdav.method.CheckoutMethod
>required: org.apache.slide.webdav.WebdavMethod
>                    return new CheckoutMethod(token, config);
>                           ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:151: incompatible types
>found   : org.apache.slide.webdav.method.UncheckoutMethod
>required: org.apache.slide.webdav.WebdavMethod
>                    return new UncheckoutMethod(token, config);
>                           ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:153: incompatible types
>found   : org.apache.slide.webdav.method.MkworkspaceMethod
>required: org.apache.slide.webdav.WebdavMethod
>                    return new MkworkspaceMethod(token, config);
>                           ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:155: incompatible types
>found   : org.apache.slide.webdav.method.LabelMethod
>required: org.apache.slide.webdav.WebdavMethod
>                    return new LabelMethod(token, config);
>                           ^
>H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
>\method\DefaultMethodFactory.java:157: incompatible types
>found   : org.apache.slide.webdav.method.UpdateMethod
>required: org.apache.slide.webdav.WebdavMethod
>                    return new UpdateMethod(token, config);
>                           ^
>24 errors
>
>BUILD FAILED
>H:\proj\slide\jakarta-slide.cvsed\build.xml:550: Compile failed; see the
>co
>mpiler error output for details.
>
>
>-- 
>Dipl.-Inform. Raimo Ihle               Tel: +49 (0)30 39 40 54 25
>bit~side GmbH                          Fax: +49 (0)30 39 40 54 50
>Salzufer 14a Aufgang D                 Email: r.ihle@bit-side.com
>10587 Berlin                           WWW: <http://www.bit-side.com>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
Christopher Lenz
_______________________________________________
 /=/ cmlenz at gmx.de





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Patch for Build Error in Slide 2.0 from CVS

Posted by Raimo Ihle <r....@bit-side.com>.
Hi Christopher,

Christopher Lenz wrote:
> BTW, what is that second diff below for ?

It is really usefull, should you like to get the current CVS-version to
compile ;-)

If you don't apply it, compiling the current CVS-Version looks something
like this:

----------------------------------------------------------------------------
Compiling 44 source files to
H:\proj\slide\jakarta-slide.cvsed\build\classes
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\AbstractWebdavMethod.java:112: interface expected here
    implements WebdavMethod {
               ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:108: incompatible types
found   : org.apache.slide.webdav.method.GetMethod
required: org.apache.slide.webdav.WebdavMethod
            return new GetMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:110: incompatible types
found   : org.apache.slide.webdav.method.PropFindMethod
required: org.apache.slide.webdav.WebdavMethod
            return new PropFindMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:112: incompatible types
found   : org.apache.slide.webdav.method.HeadMethod
required: org.apache.slide.webdav.WebdavMethod
            return new HeadMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:114: incompatible types
found   : org.apache.slide.webdav.method.LockMethod
required: org.apache.slide.webdav.WebdavMethod
            return new LockMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:116: incompatible types
found   : org.apache.slide.webdav.method.UnlockMethod
required: org.apache.slide.webdav.WebdavMethod
            return new UnlockMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:118: incompatible types
found   : org.apache.slide.webdav.method.OptionsMethod
required: org.apache.slide.webdav.WebdavMethod
            return new OptionsMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:120: incompatible types
found   : org.apache.slide.webdav.method.PutMethod
required: org.apache.slide.webdav.WebdavMethod
            return new PutMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:122: incompatible types
found   : org.apache.slide.webdav.method.MkcolMethod
required: org.apache.slide.webdav.WebdavMethod
            return new MkcolMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:124: incompatible types
found   : org.apache.slide.webdav.method.PostMethod
required: org.apache.slide.webdav.WebdavMethod
            return new PostMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:126: incompatible types
found   : org.apache.slide.webdav.method.CopyMethod
required: org.apache.slide.webdav.WebdavMethod
            return new CopyMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:128: incompatible types
found   : org.apache.slide.webdav.method.MoveMethod
required: org.apache.slide.webdav.WebdavMethod
            return new MoveMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:130: incompatible types
found   : org.apache.slide.webdav.method.DeleteMethod
required: org.apache.slide.webdav.WebdavMethod
            return new DeleteMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:132: incompatible types
found   : org.apache.slide.webdav.method.PropPatchMethod
required: org.apache.slide.webdav.WebdavMethod
            return new PropPatchMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:134: incompatible types
found   : org.apache.slide.webdav.method.SearchMethod
required: org.apache.slide.webdav.WebdavMethod
            return new SearchMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:136: incompatible types
found   : org.apache.slide.webdav.method.ReportMethod
required: org.apache.slide.webdav.WebdavMethod
            return new ReportMethod(token, config);
                   ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:140: incompatible types
found   : org.apache.slide.webdav.method.AclMethod
required: org.apache.slide.webdav.WebdavMethod
                    return new AclMethod(token, config);
                           ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:145: incompatible types
found   : org.apache.slide.webdav.method.VersionControlMethod
required: org.apache.slide.webdav.WebdavMethod
                    return new VersionControlMethod(token, config);
                           ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:147: incompatible types
found   : org.apache.slide.webdav.method.CheckinMethod
required: org.apache.slide.webdav.WebdavMethod
                    return new CheckinMethod(token, config);
                           ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:149: incompatible types
found   : org.apache.slide.webdav.method.CheckoutMethod
required: org.apache.slide.webdav.WebdavMethod
                    return new CheckoutMethod(token, config);
                           ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:151: incompatible types
found   : org.apache.slide.webdav.method.UncheckoutMethod
required: org.apache.slide.webdav.WebdavMethod
                    return new UncheckoutMethod(token, config);
                           ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:153: incompatible types
found   : org.apache.slide.webdav.method.MkworkspaceMethod
required: org.apache.slide.webdav.WebdavMethod
                    return new MkworkspaceMethod(token, config);
                           ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:155: incompatible types
found   : org.apache.slide.webdav.method.LabelMethod
required: org.apache.slide.webdav.WebdavMethod
                    return new LabelMethod(token, config);
                           ^
H:\proj\slide\jakarta-slide.cvsed\src\webdav\server\org\apache\slide\webdav
\method\DefaultMethodFactory.java:157: incompatible types
found   : org.apache.slide.webdav.method.UpdateMethod
required: org.apache.slide.webdav.WebdavMethod
                    return new UpdateMethod(token, config);
                           ^
24 errors

BUILD FAILED
H:\proj\slide\jakarta-slide.cvsed\build.xml:550: Compile failed; see the
co
mpiler error output for details.


-- 
Dipl.-Inform. Raimo Ihle               Tel: +49 (0)30 39 40 54 25
bit~side GmbH                          Fax: +49 (0)30 39 40 54 50
Salzufer 14a Aufgang D                 Email: r.ihle@bit-side.com
10587 Berlin                           WWW: <http://www.bit-side.com>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Patch for Build Error in Slide 2.0 from CVS

Posted by Christopher Lenz <cm...@gmx.de>.
Hi Thomas,

actually you'll just need to use the dev version of JDOM (which *does* throw the 
IOException). A snapshot is included in our CVS in ./lib/jdom-dev.jar. Using 
that instead of any of the released betas should work.

BTW, what is that second diff below for ?

Am 20.06.2002 11:16:08, schrieb "Thomas Schüppel" <t....@bit-side.com>:
>hi,
>
>building XMLValue fails due to the fact that no IOException is
>thrown inside the try statement. The following patch should fix
>this.
>Additionally AbstractWebdavMethod needs to be patched (at
>least for me).
>
>
>
>Index: util/XMLValue.java
>====================================================
>RCS file: /home/cvspublic/jakarta-
>slide/src/webdav/server/org/apache/slide/webdav/util/XMLValue.java,v
>retrieving revision 1.8
>diff -r1.8 XMLValue.java
>274,285c274,278
><             try {
><                 Document document = builder.build(new StringReader
(buffer.toString()));
><                 List children = document.getRootElement().getChildren();
><                 add(children);
><                 // detach elements from parent
><                 document.getRootElement().removeChildren();
><             }
><             catch (IOException e) {
><                 // should not happen since the StringReader does not
><                 // perform any "real" I/O
><                 throw new JDOMException(e.getMessage());
><             }
>---
>>             Document document = builder.build(new StringReader
(buffer.toString()));
>>             List children = document.getRootElement().getChildren();
>>             add(children);
>>             // detach elements from parent
>>             document.getRootElement().removeChildren();
>
>
>
>
>Index: method/AbstractWebdavMethod.java
>====================================================
>RCS file: /home/cvspublic/jakarta-
>slide/src/webdav/server/org/apache/slide/webdav/method/AbstractWebdavMethod.jav
a
>,v
>retrieving revision 1.1
>diff -r1.1 AbstractWebdavMethod.java
>112c112
><     implements WebdavMethod {
>---
>>     implements org.apache.slide.webdav.WebdavMethod {
>
>
>
>
>l8r...
>	Thomas

--
Christopher Lenz
_______________________________________________
 /=/ cmlenz at gmx.de





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>