2

http://wiki.hl7.org/index.php?title=FHIR_Build_Processの指示に従うと、FHIR ビルドが失敗します。正しい JDK を使用するように publish.bat を変更しました。JDK 1.6(JDK 1.7も試しました)を搭載したWindows 7 64ビットマシンで実行すると、両方とも同じエラーで失敗します。

どこかのサクソン JAR 地獄のように見えます。何か案は?

 ...validate v2-tables                                                     441sec  755MB
 ...validate v3-codesystems                                                443sec  889MB
Reference Platform Validation.                                             447sec 1067MB
 ...test adversereaction-example                                           447sec 1067MB
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.saxon.Configuration.newConfiguration()Lnet/sf/saxon/Configuration
;
        at net.sf.saxon.xpath.XPathFactoryImpl.<init>(XPathFactoryImpl.java:33)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at javax.xml.xpath.XPathFactoryFinder.loadFromService(XPathFactoryFinder.java:401)
        at javax.xml.xpath.XPathFactoryFinder._newFactory(XPathFactoryFinder.java:222)
        at javax.xml.xpath.XPathFactoryFinder.newFactory(XPathFactoryFinder.java:143)
        at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:185)
        at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:99)
        at org.hl7.fhir.tools.publisher.Publisher.testSearchParameters(Publisher.java:2796)
        at org.hl7.fhir.tools.publisher.Publisher.testSearchParameters(Publisher.java:2785)
        at org.hl7.fhir.tools.publisher.Publisher.validateRoundTrip(Publisher.java:2759)
        at org.hl7.fhir.tools.publisher.Publisher.validateXml(Publisher.java:2656)
        at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:378)
        at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:281)
4

2 に答える 2

0

回避策... ソースからパブリッシャー ツール jar を新しくビルドします。

build/buildhowto.txt の指示に従って、Eclipse 内でツール jar をビルドし、Eclipse 内から Publisher を正常に実行してから、SVN からプルしたツール jar を上書きする新しいツール jar としてエクスポートすることができました。新しくビルドされたものは、コマンドラインから完了まで実行されました。

現時点でSVNにあるtools jarのバージョンに問題があるだけかもしれません。

記録のために、私はバージョン 0.12-1953 を使用しています。

于 2013-11-21T22:10:37.617 に答える
0

クラスパスに 2 つのクラス net.sf.saxon.Configuration があります。メソッド newConfiguration() を含むものと含まないもの。

メソッドはおそらく Saxon-HE 9.x から呼び出され、クラス net.sf.saxon.Configuration は saxon 8.x で見つかりますが、クラスは Saxon-HE 9.x 内で見つかるはずでした。 、そしてこのメ​​ソッドを持っています。

したがって、依存関係を確認して saxon 8.x が呼び出されているかどうかを確認し、それを Saxon-HE 9.x に置き換えてみてください。そうすれば問題は解決します。

于 2014-05-21T08:37:03.490 に答える