You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Claus Ibsen (Created) (JIRA)" <ji...@apache.org> on 2011/11/14 09:08:51 UTC
[jira] [Created] (SMX4-965) HAPI osgi bundle is flawed
HAPI osgi bundle is flawed
--------------------------
Key: SMX4-965
URL: https://issues.apache.org/jira/browse/SMX4-965
Project: ServiceMix 4
Issue Type: Task
Components: Bundles
Reporter: Claus Ibsen
The HAPI bundle at
http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
Is flawed. For example it imports many of the packages it exports, which it should not do.
Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI and it fails.
http://svn.apache.org/viewvc?rev=1201623&view=rev
You get exceptions like this
{code}
Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
at org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SMX4-965) HAPI osgi bundle is flawed
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SMX4-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149509#comment-13149509 ]
Claus Ibsen commented on SMX4-965:
----------------------------------
Great the unit tests works now.
> HAPI osgi bundle is flawed
> --------------------------
>
> Key: SMX4-965
> URL: https://issues.apache.org/jira/browse/SMX4-965
> Project: ServiceMix 4
> Issue Type: Task
> Components: Bundles
> Reporter: Claus Ibsen
>
> The HAPI bundle at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
> Is flawed. For example it imports many of the packages it exports, which it should not do.
> Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI and it fails.
> http://svn.apache.org/viewvc?rev=1201623&view=rev
> You get exceptions like this
> {code}
> Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
> at org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
> at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SMX4-965) HAPI osgi bundle is flawed
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SMX4-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149499#comment-13149499 ]
Claus Ibsen commented on SMX4-965:
----------------------------------
Yeah HAPI 1.2 is in central repo. Let me try that
http://search.maven.org/#artifactdetails%7Cca.uhn.hapi%7Chapi-osgi-base%7C1.2%7Cbundle
> HAPI osgi bundle is flawed
> --------------------------
>
> Key: SMX4-965
> URL: https://issues.apache.org/jira/browse/SMX4-965
> Project: ServiceMix 4
> Issue Type: Task
> Components: Bundles
> Reporter: Claus Ibsen
>
> The HAPI bundle at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
> Is flawed. For example it imports many of the packages it exports, which it should not do.
> Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI and it fails.
> http://svn.apache.org/viewvc?rev=1201623&view=rev
> You get exceptions like this
> {code}
> Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
> at org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
> at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SMX4-965) HAPI osgi bundle is flawed
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SMX4-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149495#comment-13149495 ]
Claus Ibsen commented on SMX4-965:
----------------------------------
Hmm seems like we can't specify and download those JARs
test(org.apache.camel.itest.karaf.CamelHl7Test): org.ops4j.pax.runner.platform.PlatformException: [http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v21/1.0.1] could not be downloaded
And in the features.xml file we define:
{code}
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-osgi-base/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v21/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v22/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v23/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v231/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v24/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v25/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v251/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v26/${hapi-version}</bundle>
{code}
> HAPI osgi bundle is flawed
> --------------------------
>
> Key: SMX4-965
> URL: https://issues.apache.org/jira/browse/SMX4-965
> Project: ServiceMix 4
> Issue Type: Task
> Components: Bundles
> Reporter: Claus Ibsen
>
> The HAPI bundle at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
> Is flawed. For example it imports many of the packages it exports, which it should not do.
> Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI and it fails.
> http://svn.apache.org/viewvc?rev=1201623&view=rev
> You get exceptions like this
> {code}
> Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
> at org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
> at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (SMX4-965) HAPI osgi bundle is flawed
Posted by "Claus Ibsen (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SMX4-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149495#comment-13149495 ]
Claus Ibsen edited comment on SMX4-965 at 11/14/11 8:41 AM:
------------------------------------------------------------
Hmm seems like we can't specify and download those JARs
Tests in error:
test(org.apache.camel.itest.karaf.CamelHl7Test): org.ops4j.pax.runner.platform.PlatformException: [http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-osgi-base/1.0.1] could not be downloaded
test(org.apache.camel.itest.karaf.CamelHl7Test): org.ops4j.pax.runner.platform.PlatformException: [http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v21/1.0.1] could not be downloaded
And in the features.xml file we define:
{code}
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-osgi-base/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v21/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v22/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v23/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v231/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v24/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v25/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v251/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v26/${hapi-version}</bundle>
{code}
was (Author: davsclaus):
Hmm seems like we can't specify and download those JARs
test(org.apache.camel.itest.karaf.CamelHl7Test): org.ops4j.pax.runner.platform.PlatformException: [http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v21/1.0.1] could not be downloaded
And in the features.xml file we define:
{code}
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-osgi-base/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v21/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v22/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v23/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v231/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v24/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v25/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v251/${hapi-version}</bundle>
<bundle dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v26/${hapi-version}</bundle>
{code}
> HAPI osgi bundle is flawed
> --------------------------
>
> Key: SMX4-965
> URL: https://issues.apache.org/jira/browse/SMX4-965
> Project: ServiceMix 4
> Issue Type: Task
> Components: Bundles
> Reporter: Claus Ibsen
>
> The HAPI bundle at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
> Is flawed. For example it imports many of the packages it exports, which it should not do.
> Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI and it fails.
> http://svn.apache.org/viewvc?rev=1201623&view=rev
> You get exceptions like this
> {code}
> Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
> at org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
> at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SMX4-965) HAPI osgi bundle is flawed
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SMX4-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149491#comment-13149491 ]
Claus Ibsen commented on SMX4-965:
----------------------------------
Ah there seems to be OSGi support in HAPI 1.0.1. I will look into whether that can be used
> HAPI osgi bundle is flawed
> --------------------------
>
> Key: SMX4-965
> URL: https://issues.apache.org/jira/browse/SMX4-965
> Project: ServiceMix 4
> Issue Type: Task
> Components: Bundles
> Reporter: Claus Ibsen
>
> The HAPI bundle at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
> Is flawed. For example it imports many of the packages it exports, which it should not do.
> Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI and it fails.
> http://svn.apache.org/viewvc?rev=1201623&view=rev
> You get exceptions like this
> {code}
> Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
> at org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
> at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (SMX4-965) HAPI osgi bundle is flawed
Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SMX4-965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved SMX4-965.
------------------------------
Resolution: Not A Problem
We can use the HAPI 1.2 osgi bundles from central repo
> HAPI osgi bundle is flawed
> --------------------------
>
> Key: SMX4-965
> URL: https://issues.apache.org/jira/browse/SMX4-965
> Project: ServiceMix 4
> Issue Type: Task
> Components: Bundles
> Reporter: Claus Ibsen
>
> The HAPI bundle at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
> Is flawed. For example it imports many of the packages it exports, which it should not do.
> Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI and it fails.
> http://svn.apache.org/viewvc?rev=1201623&view=rev
> You get exceptions like this
> {code}
> Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
> at org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
> at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (SMX4-965) HAPI osgi bundle is flawed
Posted by "Andreas Pieber (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SMX4-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149500#comment-13149500 ]
Andreas Pieber commented on SMX4-965:
-------------------------------------
this bundle works quite fine for me; good luck with it!
> HAPI osgi bundle is flawed
> --------------------------
>
> Key: SMX4-965
> URL: https://issues.apache.org/jira/browse/SMX4-965
> Project: ServiceMix 4
> Issue Type: Task
> Components: Bundles
> Reporter: Claus Ibsen
>
> The HAPI bundle at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
> Is flawed. For example it imports many of the packages it exports, which it should not do.
> Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI and it fails.
> http://svn.apache.org/viewvc?rev=1201623&view=rev
> You get exceptions like this
> {code}
> Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
> at org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
> at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira