[daisy] Ahead warning: merging BRANCH_DOCID into trunk

Bruno Dumon bruno at outerthought.org
Mon Jul 10 13:01:21 CDT 2006


On Mon, 2006-07-10 at 10:02 +0200, Andreas Deininger wrote:
> 2006/7/10, Bruno Dumon <bruno at outerthought.org>:
> > On Sun, 2006-07-09 at 23:43 +0200, Andreas Deininger wrote:
> > > 2006/7/9, Bruno Dumon <bruno at outerthought.org>:
> > > > On Fri, 2006-07-07 at 19:35 +0200, Andreas Deininger wrote:
<snip/>
> > > > >
> > > > > ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[daisydemo.deininger.net].[/].[Cocoon]]
> > > > > Servlet.service() for servlet Cocoon threw exception
> > > > > java.lang.NoSuchMethodError:
> > > > > org.outerx.daisy.x10.VariantKeyDocument$VariantKey.getDocumentId()J
> > > >
> > > > It should be working.
> > > >
> > > > Make sure you do a clean build, thus execute 'maven clean' or simply
> > > > find target -exec rm -rf {} \;
> > >
> > > I'm absolutely sure I did a clean build of the repository and I'm
> > > quite sure I issued a 'maven clean' prior to building the wiki, too.
> >
> > But then the Java compiler would have complained about the above error.
> 
> Yes, I got the following warnings while compiling the repository:
> 
> /../SVN/daisy_3010/repository/api/src/java/org/outerj/daisy/repository/DocumentVariantNotFoundException.java:60:
> warning: non-varargs call of varargs method with inexact argument type
> for last parameter;
> cast to java.lang.Object for a varargs call
> cast to java.lang.Object[] for a non-varargs call and to suppress this warning
>         return MessageFormat.format(message, new String[] {
> documentId, branch, language });
>                                                           ^
> /.../SVN/daisy_3010/repository/api/src/java/org/outerj/daisy/repository/DocumentNotFoundException.java:55:
> warning: non-varargs call of varargs method with inexact argument type
> for last parameter;
> cast to java.lang.Object for a varargs call
> cast to java.lang.Object[] for a non-varargs call and to suppress this warning
>         return MessageFormat.format(message, new String[] { id });
> 

I've changed the code so that the warnings should be gone, however this
is unrelated to the problem you were having. I'd still retry to do a
clean compile of everything.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list