Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server WSO2 ESB-HL7控制台-使用MS SQL和PersistenceCapable转换的JPAStore配置失败_Sql Server_Jpa_Wso2esb - Fatal编程技术网

Sql server WSO2 ESB-HL7控制台-使用MS SQL和PersistenceCapable转换的JPAStore配置失败

Sql server WSO2 ESB-HL7控制台-使用MS SQL和PersistenceCapable转换的JPAStore配置失败,sql-server,jpa,wso2esb,Sql Server,Jpa,Wso2esb,我正在尝试按照以下步骤为HL7配置messageStore (使用WSO2 ESB 5.0.0和EI 6.0.0)在我的例子中,区别在于使用MS SQL而不是MySql。 我的目标是存储hl7消息并使用hl7控制台进行审核 我的问题是WSO2无法在messageStore中保存消息,出现以下错误: TID: [-1234] [] [2017-04-06 09:34:04,189] ERROR {org.wso2.carbon.business.messaging.hl7.store.jpa.JP

我正在尝试按照以下步骤为HL7配置messageStore (使用WSO2 ESB 5.0.0和EI 6.0.0)在我的例子中,区别在于使用MS SQL而不是MySql。 我的目标是存储hl7消息并使用hl7控制台进行审核

我的问题是WSO2无法在messageStore中保存消息,出现以下错误:

TID: [-1234] [] [2017-04-06 09:34:04,189] ERROR {org.wso2.carbon.business.messaging.hl7.store.jpa.JPAProducer} -  Could not store HL7 message. Attempt to cast instance "org.wso2.carbon.business.messaging.hl7.store.entity.PersistentHL7Message@7ddb9a02" to PersistenceCapable failed. The object implemented org.apache.openjpa.enhance.PersistenceCapable, but the instance of that interface was loaded by two different ClassLoaders: "org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@3f9e5e46[openjpa-all:2.2.2.wso2v1(id=131)]" and "org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@45563386[tomee:1.7.2.wso2v2(id=634)]". {org.wso2.carbon.business.messaging.hl7.store.jpa.JPAProducer}
TID: [-1234] [] [2017-04-06 09:34:04,192] ERROR {org.apache.synapse.mediators.store.MessageStoreMediator} -  Failed to store message [urn:uuid:E27D55866515A24A371491464043938] in store [HL7StoreJPA]. {org.apache.synapse.mediators.store.MessageStoreMediator}
这是messageStore

<messageStore class="org.wso2.carbon.business.messaging.hl7.store.jpa.JPAStore" name="HL7StoreJPA" xmlns="http://ws.apache.org/ns/synapse">
    <parameter name="openjpa.ConnectionDriverName">org.apache.commons.dbcp.BasicDataSource</parameter>
    <parameter name="openjpa.ConnectionProperties">DriverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver, Url=jdbc:sqlserver://127.0.0.1\SQLEXPRESS, DatabaseName=HL7StoreJPA,  MaxActive=100,  MaxWait=10000,  TestOnBorrow=true,  Username=hl7Store,  Password=hl7Store</parameter>
    <parameter name="openjpa.jdbc.DBDictionary">sqlserver(blobTypeName=varbinary)</parameter>
</messageStore>

org.apache.commons.dbcp.BasicDataSource
DriverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver,Url=jdbc:sqlserver://127.0.0.1\SQLEXPRESS,DatabaseName=HL7StoreJPA,MaxActive=100,MaxWait=10000,TestOnBorrow=true,Username=hl7Store,Password=hl7Store
sqlserver(blobTypeName=varbinary)
这是代理:

<proxy name="Hl7OnlyStoreProxy" startOnLoad="true" transports="hl7" xmlns="http://ws.apache.org/ns/synapse">
    <target>
        <inSequence>
            <property name="HL7_RESULT_MODE" value="ACK" scope="axis2"/>
            <log level="full"/>
            <property name="messageType" value="application/edi-hl7" scope="axis2"/>
            <property name="OUT_ONLY" scope="default" type="STRING" value="true"/>
            <store messageStore="HL7StoreJPA"/>
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </target>
    <parameter name="transport.hl7.AutoAck">false</parameter>
    <parameter name="transport.hl7.Port">9296</parameter>
    <parameter name="transport.hl7.ValidateMessage">false</parameter>
</proxy>

假的
9296
假的
HL7控制台


非常感谢您的帮助

我已将MS SQL替换为Oracle数据库XE 11.2,在手动创建表persistentl7store后,HL7控制台与WSO2 EI 6.1.0配合良好!