我正在尝试使用Sharpen工具将lucenetransform代码从java移植到c#。我在PaulDB.getWords()
使用了锐化设置信息当我运行转换过程时,我收到以下错误
!会话2012-12-15 14:55:21.773 ----------------------------------- ------------ eclipse.buildId = I20120608-1200 java.version = 1.6.0_38 java.vendor = Sun Microsystems Inc. BootLoader常量:OS = win32,ARCH = x86_64, WS = win32,NL = en_IN框架参数:-application sharpen.core.application -header C:\ ADT-束窗口\工作空间\ lucenetransform \ header.txt sharpened / src -cp C:\ ADT-束窗口\工作空间\ lucenetransform \ lib中\的junit \的junit-3.8.2.jar -cp C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ junit_4 \ _junit-4.5.jar -cp C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ copylibs \ org-netbeans-modules-java-j2seproject-copylibstask.jar -cp C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ lucene-core-3.3.0.jar @ sharpen-all-options命令行参数:-data C:\ adt-bundle-windows \ workspace \ lucenetransform \ sharpen -application sharpen.core.application -header C:\ ADT-束窗口\工作空间\ lucenetransform \ header.txt sharpened / src -cp C:\ ADT-束窗口\工作空间\ lucenetransform \ lib中\的junit \的junit-3.8.2.jar -cp C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ junit_4 \ _junit-4.5.jar -cp C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ copylibs \ org-netbeans-modules-java-j2seproject-copylibstask.jar -cp C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ lucene-core-3.3.0.jar @锐化-所有选项
!ENTRY org.eclipse.osgi 4 0 2012-12-15 14:55:28.110!MESSAGE 应用程序错误!STACK 1 java.lang.IllegalStateException at sharpen.core.CSharpBuilder.pushExpression(CSharpBuilder.java:3364)at at sharpen.core.CSharpBuilder.visit(CSharpBuilder.java:2171)at org.eclipse.jdt.core.dom.StringLiteral.accept0(StringLiteral.java:136) 在org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)at at org.eclipse.jdt.core.dom.AssertStatement.accept0(AssertStatement.java:167) 在org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)at at org.eclipse.jdt.core.dom.Block.accept0(Block.java:136)at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)at sharpen.core.CSharpBuilder.visitBlock(CSharpBuilder.java:1865)at sharpen.core.CSharpBuilder.processBlock(CSharpBuilder.java:1826)at sharpen.core.CSharpBuilder.visitBodyDeclarationBlock(CSharpBuilder.java:1793) 在sharpen.core.CSharpBuilder.mapMethodParts(CSharpBuilder.java:1540) 在 sharpen.core.CSharpBuilder.processMethodDeclaration(CSharpBuilder.java:1495) 在sharpen.core.CSharpBuilder.visit(CSharpBuilder.java:1346)at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:489) 在org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)at sharpen.core.CSharpBuilder.visit(CSharpBuilder.java:3384)at sharpen.core.CSharpBuilder.mapMembers(CSharpBuilder.java:760)at sharpen.core.CSharpBuilder.processTypeDeclaration(CSharpBuilder.java:373) 在sharpen.core.CSharpBuilder $ 2.run(CSharpBuilder.java:284)at sharpen.core.framework.DynamicVariable.using(DynamicVariable.java:46) 在sharpen.core.CSharpBuilder.visit(CSharpBuilder.java:279)at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:467) 在org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)at at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:219) 在org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)at sharpen.core.CSharpBuilder.run(CSharpBuilder.java:134)at sharpen.core.SharpenConversion $ 2.run(SharpenConversion.java:121)at sharpen.core.framework.DynamicVariable.using(DynamicVariable.java:46) 在sharpen.core.framework.Environments.runWith(Environments.java:23) 在sharpen.core.SharpenConversion.convert(SharpenConversion.java:119) 在sharpen.core.SharpenConversion.run(SharpenConversion.java:105)at sharpen.core.SharpenConversionBatch.convertCompilationUnit(SharpenConversionBatch.java:72) 在 sharpen.core.framework.ConversionBatch.convertPair(ConversionBatch.java:79) 在 sharpen.core.framework.ConversionBatch.run(ConversionBatch.java:71) 在 sharpen.core.SharpenApplication.convertTo(SharpenApplication.java:96) 在 sharpen.core.SharpenApplication.convert(SharpenApplication.java:83) 在 sharpen.core.SharpenApplication.safeRun(SharpenApplication.java:71) 在sharpen.core.SharpenApplication.start(SharpenApplication.java:50) 在 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(Method.java:597)at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)at at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)at at org.eclipse.equinox.launcher.Main.run(Main.java:1438)at org.eclipse.equinox.launcher.Main.main(Main.java:1414)at org.eclipse.core.launcher.Main.main(Main.java:34)
eclipse控制台显示以下信息
构建文件: C:\ adt-bundle-windows \ workspace \ lucenetransform \ run-sharpen.xml clean: 锐化,文档: [copy]将22个文件复制到C:\ adt-bundle-windows \ workspace \ lucenetransform \ sharpen \ sharpened \ src [exec]项目:锐化 [exec]配置类:null [exec]类路径条目:C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ _junit \ _junit-3.8.2.jar [exec]类路径条目:C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ _junit_4 \ _junit-4.5.jar [exec]类路径条目:C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ copylibs \ org-netbeans-modules-java-j2seproject-copylibstask.jar [exec]类路径条目:C:\ adt-bundle-windows \ workspace \ lucenetransform \ lib \ lucene-core-3.3.0.jar [exec]源文件夹:src [exec] Pascal案例模式:NamespaceAndIdentifiers [exec]本机类型系统模式。 [exec]组织使用模式。 [exec]头文件:C:\ adt-bundle-windows \ workspace \ lucenetransform \ header.txt [exec] AbstractPipedTransformer.java [exec] AbstractTransformedIndexOutput.java [exec] /sharpened/src/org/apache/lucene/store/transform/AbstractTransformedIndexOutput.java(227): 尚未解决的cref目标 [exec] ByteIndexInput.java [exec] CompressedIndexDirectory.java [exec] DataDecryptor.java [exec] DataEncryptor.java [exec] DataTransformer.java [exec] DecompressionChunkCache.java [exec] DeflateDataTransformer.java [exec] InflateDataTransformer.java [exec] LRUChunkCache.java [exec] NullTransformer.java [exec] ReadDataTransformer.java [exec] /sharpened/src/org/apache/lucene/store/transform/SequentialTransformedIndexOutput.java(63): 参数' pLevel'未找到。 [exec] /sharpened/src/org/apache/lucene/store/transform/SequentialTransformedIndexOutput.java(64): 参数' deflateCount'未找到。 [exec] ReadPipeTransformer.java [exec] SequentialTransformedIndexOutput.java [exec] SharedBufferCache.java [exec] StoreDataTransformer.java [exec] StorePipeTransformer.java [exec] StreamIndexOutput.java [exec] TransformedDirectory.java [exec] TransformedIndexInput.java [exec]错误:null [exec] java.lang.IllegalStateException [exec]在sharpen.core.CSharpBuilder.pushExpression(CSharpBuilder.java:3364) [exec]在sharpen.core.CSharpBuilder.visit(CSharpBuilder.java:2171) [exec] at or.e.eclipse.jdt.core.dom.StringLiteral.accept0(StringLiteral.java:136) [exec] at or.e.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514) [exec]在org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562) [exec] at or.e.eclipse.jdt.core.dom.AssertStatement.accept0(AssertStatement.java:167) [exec] at or.e.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514) [exec] at or.e.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585) [exec] at or.e.eclipse.jdt.core.dom.Block.accept0(Block.java:136) [exec] at or.e.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514) [exec] at sharpen.core.CSharpBuilder.visitBlock(CSharpBuilder.java:1865) [exec]在sharpen.core.CSharpBuilder.processBlock(CSharpBuilder.java:1826) [exec]在sharpen.core.CSharpBuilder.visitBodyDeclarationBlock(CSharpBuilder.java:1793) [exec]转换完成时间为4468ms。 [exec]在sharpen.core.CSharpBuilder.mapMethodParts(CSharpBuilder.java:1540) [exec]在sharpen.core.CSharpBuilder.processMethodDeclaration(CSharpBuilder.java:1495) [exec]在sharpen.core.CSharpBuilder.visit(CSharpBuilder.java:1346) [exec] at or.e.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:489) [exec] at or.e.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514) [exec]在sharpen.core.CSharpBuilder.visit(CSharpBuilder.java:3384) [exec]在sharpen.core.CSharpBuilder.mapMembers(CSharpBuilder.java:760) [exec]在sharpen.core.CSharpBuilder.processTypeDeclaration(CSharpBuilder.java:373) [exec]在sharpen.core.CSharpBuilder $ 2.run(CSharpBuilder.java:284) [exec]在sharpen.core.framework.DynamicVariable.using(DynamicVariable.java:46) [exec]在sharpen.core.CSharpBuilder.visit(CSharpBuilder.java:279) [exec] at or.e.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:467) [exec] at or.e.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514) [exec] at or.e.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585) [exec] at or.e.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:219) [exec] at or.e.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514) [exec]在sharpen.core.CSharpBuilder.run(CSharpBuilder.java:134) [exec]在sharpen.core.SharpenConversion $ 2.run(SharpenConversion.java:121) [exec]在sharpen.core.framework.DynamicVariable.using(DynamicVariable.java:46) [exec]在sharpen.core.framework.Environments.runWith(Environments.java:23) [exec] at sharpen.core.SharpenConversion.convert(SharpenConversion.java:119) [exec]在sharpen.core.SharpenConversion.run(SharpenConversion.java:105) [exec]在sharpen.core.SharpenConversionBatch.convertCompilationUnit(SharpenConversionBatch.java:72) [exec]在sharpen.core.framework.ConversionBatch.convertPair(ConversionBatch.java:79) [exec]在sharpen.core.framework.ConversionBatch.run(ConversionBatch.java:71) [exec]在sharpen.core.SharpenApplication.convertTo(SharpenApplication.java:96) [exec]在sharpen.core.SharpenApplication.convert(SharpenApplication.java:83) [exec]在sharpen.core.SharpenApplication.safeRun(SharpenApplication.java:71) [exec]在sharpen.core.SharpenApplication.start(SharpenApplication.java:50) [exec] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) [exec]在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) [exec]在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) [exec]在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) [exec]在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [exec] at java.lang.reflect.Method.invoke(Method.java:597) [exec] org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) [exec]在org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) [exec]在org.eclipse.equinox.launcher.Main.run(Main.java:1438) [exec] at org.eclipse.equinox.launcher.Main.main(Main.java:1414) [exec]在org.eclipse.core.launcher.Main.main(Main.java:34) [exec]发生了错误。看日志文件 [exec] C:\ adt-bundle-windows \ workspace \ lucenetransform \ sharpen.metadata.log。
建立失败 C:\ ADT-束窗口\工作空间\ lucenetransform \运行sharpen.xml:59: 执行此行时发生以下错误: C:\ ADT-束窗口\工作空间\ lucenetransform \运行sharpen.xml:20: 执行官返回:13
总时间:10秒
似乎无法从Google找到有关此问题的任何帮助。任何帮助都将受到高度赞赏。