Error on Compile since rev.2526 (LuceneEngine.java)

Generic questions and request for help of DrFTPD 3.0

Moderator: developers

Error on Compile since rev.2526 (LuceneEngine.java)

Postby FeliX » Mon Jul 23, 2012, 1:31 pm

Hello,

i have to setup a new server, so i downloaded all new files today. Bot oh, i got errors on compile.
Code: Select all
(snip)
[echo] Cleaning org.drftpd.plugins.autofreespace plug-in
        [echo] Building org.drftpd.plugins.autofreespace plug-in to file E:\drftpd/plugins/master/org.drftpd.plugins.autofreespace-3.0.0.zip
        [echo] Cleaning org.drftpd.plugins.dupecheck.metadata plug-in
        [echo] Building org.drftpd.plugins.dupecheck.metadata plug-in to file E:\drftpd/plugins/master/org.drftpd.plugins.dupecheck.metadata-3.0.0.zip
        [echo] Cleaning org.drftpd.plugins.dupecheck plug-in
        [echo] Building org.drftpd.plugins.dupecheck plug-in to file E:\drftpd/plugins/master/org.drftpd.plugins.dupecheck-3.0.0.zip
        [echo] Cleaning org.drftpd.vfs.index.lucene plug-in
        [echo] Building org.drftpd.vfs.index.lucene plug-in to file E:\drftpd/plugins/master/org.drftpd.vfs.index.lucene-3.0.0.zip
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\src\org\drftpd\vfs\index\lucene\LuceneEngine.java:1023: type org.apache.lucene.search.FieldComparator does not take parameters
   public class RandomOrderFieldComparator extends FieldComparator<Integer> {
                                                                  ^
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\src\org\drftpd\vfs\index\lucene\LuceneEngine.java:420: type org.apache.lucene.search.FieldComparator does not take parameters
               public FieldComparator<Integer> newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
                                     ^
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\src\org\drftpd\vfs\index\lucene\LuceneEngine.java:1027: method does not override or implement a method from a supertype
      @Override
      ^
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\src\org\drftpd\vfs\index\lucene\LuceneEngine.java:1032: method does not override or implement a method from a supertype
      @Override
      ^
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\src\org\drftpd\vfs\index\lucene\LuceneEngine.java:1037: method does not override or implement a method from a supertype
      @Override
      ^
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\src\org\drftpd\vfs\index\lucene\LuceneEngine.java:1041: method does not override or implement a method from a supertype
      @Override
      ^
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\src\org\drftpd\vfs\index\lucene\LuceneEngine.java:1045: method does not override or implement a method from a supertype
      @Override
      ^
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\src\org\drftpd\vfs\index\lucene\LuceneEngine.java:1049: method does not override or implement a method from a supertype
      @Override
      ^
8 errors

BUILD FAILED
Total time: 9 seconds

The following error occurred while executing this line:
E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\build.xml:7: The following error occurred while executing this line:
E:\drftpd\setup.xml:81: Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
   at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:302)
   at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
   at org.drftpd.tools.installer.PluginBuilder.buildPlugins(PluginBuilder.java:136)
   at org.drftpd.tools.installer.PluginBuilderThread.run(PluginBuilderThread.java:33)
   at java.lang.Thread.run(Thread.java:662)
Caused by: E:\drftpd\src\plugins\org.drftpd.vfs.index.lucene\build.xml:7: The following error occurred while executing this line:
E:\drftpd\setup.xml:81: Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:390)
   at org.apache.tools.ant.Target.performTasks(Target.java:411)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
   ... 5 more
Caused by: E:\drftpd\setup.xml:81: Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
   ... 17 more


So i have seen that this build was published yesterday. Maybe scitz0 could take a look if this is alright or maybe something is missing.

Thanks..
FeliX
 
Posts: 2
Joined: Mon Jul 23, 2012, 10:14 am

Re: Error on Compile since rev.2526 (LuceneEngine.java)

Postby zocky » Tue Jul 31, 2012, 6:49 am

hiho

feels like i have the same problem but on debian lenny system

if any fix or workaround out ther let me know plx



Code: Select all

BUILD STARTED

Note: /home/drftpd/dr3/trunk/src/master/src/org/drftpd/event/AsyncThreadSafeEventService.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:1023: type org.apache.lucene.search.FieldComparator does not take parameters
   public class RandomOrderFieldComparator extends FieldComparator<Integer> {
                                                                  ^
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:420: type org.apache.lucene.search.FieldComparator does not take parameters
               public FieldComparator<Integer> newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException {
                                     ^
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:1027: method does not override or implement a method from a supertype
      @Override
      ^
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:1032: method does not override or implement a method from a supertype
      @Override
      ^
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:1037: method does not override or implement a method from a supertype
      @Override
      ^
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:1041: method does not override or implement a method from a supertype
      @Override
      ^
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:1045: method does not override or implement a method from a supertype
      @Override
      ^
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:1049: method does not override or implement a method from a supertype
      @Override
      ^
8 errors

BUILD FAILED
Total time: 6 seconds

The following error occurred while executing this line:
/home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/build.xml:7: The following error occurred while executing this line:
/home/drftpd/dr3/trunk/setup.xml:81: Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
   at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:302)
   at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
   at org.drftpd.tools.installer.PluginBuilder.buildPlugins(PluginBuilder.java:136)
   at org.drftpd.tools.installer.PluginBuilderThread.run(PluginBuilderThread.java:33)
   at java.lang.Thread.run(Thread.java:662)
Caused by: /home/drftpd/dr3/trunk/src/plugins/org.drftpd.vfs.index.lucene/build.xml:7: The following error occurred while executing this line:
/home/drftpd/dr3/trunk/setup.xml:81: Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:390)
   at org.apache.tools.ant.Target.performTasks(Target.java:411)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
   ... 5 more
Caused by: /home/drftpd/dr3/trunk/setup.xml:81: Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
   ... 17 more





EDIT: ... found a workaround simple downgrade to revision 2525
to do this after u downloadet the trunk via svn and cd to the trunk dir type "svn update -r 2525" it will downgrade to the older version worked for me to sucsessful compile without that error
gl
sry for my bad english
zocky
 
Posts: 2
Joined: Tue Jul 31, 2012, 6:27 am

Re: Error on Compile since rev.2526 (LuceneEngine.java)

Postby erich » Sun Aug 12, 2012, 9:17 pm

Please checkout latest rev!
Make sure to get latest deps,
Grab lucene-core-3.3.0.jar and lucene-queries-3.3.0.jar from http://archive.apache.org/dist/lucene/java/3.3.0/
erich
Node's little helper
 
Posts: 573
Joined: Mon Nov 29, 2004, 12:50 pm

Re: Error on Compile since rev.2526 (LuceneEngine.java)

Postby darkspyre0 » Fri Aug 17, 2012, 3:59 am

where do you put these files? i've d/led the new lucene files and put them where i thought they go, but i'm still getting the errors.

Code: Select all
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/AdvancedSearchFieldSelector.java:21: error: package org.apache.lucene.document does not exist
import org.apache.lucene.document.FieldSelector;
                                 ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/AdvancedSearchFieldSelector.java:22: error: package org.apache.lucene.document does not exist
import org.apache.lucene.document.FieldSelectorResult;
                                 ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/AdvancedSearchFieldSelector.java:32: error: cannot find symbol
public class AdvancedSearchFieldSelector implements FieldSelector {
                                                    ^
  symbol: class FieldSelector
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/AdvancedSearchFieldSelector.java:33: error: cannot find symbol
        public FieldSelectorResult accept(String fieldName) {
               ^
  symbol:   class FieldSelectorResult
  location: class AdvancedSearchFieldSelector
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneBackupThread.java:27: error: package org.apache.lucene.store does not exist
import org.apache.lucene.store.FSDirectory;
                              ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:37: error: package org.apache.lucene.analysis does not exist
import org.apache.lucene.analysis.Analyzer;
                                 ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:38: error: package org.apache.lucene.document does not exist
import org.apache.lucene.document.Document;
                                 ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:39: error: package org.apache.lucene.document does not exist
import org.apache.lucene.document.Field;
                                 ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:40: error: package org.apache.lucene.document does not exist
import org.apache.lucene.document.NumericField;
                                 ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:41: error: package org.apache.lucene.index does not exist
import org.apache.lucene.index.CorruptIndexException;
                              ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:42: error: package org.apache.lucene.index does not exist
import org.apache.lucene.index.IndexReader;
                              ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:43: error: package org.apache.lucene.index does not exist
import org.apache.lucene.index.IndexWriter;
                              ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:44: error: package org.apache.lucene.index does not exist
import org.apache.lucene.index.IndexWriterConfig;
                              ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:45: error: package org.apache.lucene.index does not exist
import org.apache.lucene.index.Term;
                              ^
/home/dark/FTPD/src/plugins/org.drftpd.vfs.index.lucene/src/org/drftpd/vfs/index/lucene/LuceneEngine.java:46: error: package org.apache.lucene.search.BooleanClause does not exist
import org.apache.lucene.search.BooleanClause.Occur;
                                             ^
darkspyre0
 
Posts: 8
Joined: Mon Dec 24, 2007, 2:27 am

Re: Error on Compile since rev.2526 (LuceneEngine.java)

Postby kia » Sun Aug 19, 2012, 9:26 pm

into the lib dir
kia
Node's little helper
 
Posts: 125
Joined: Sun Apr 26, 2009, 9:58 pm


Return to General questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron