请问,我发布一个bpel应用的时候,总是报错Latch error是怎么回事啊?谢谢。

luoxiang2000 2008-06-28 05:52:03
Latch error, was releasing for state 1 but actually in -1
我的Test.bpel文件代码如下:
# <?xml version="1.0" encoding="UTF-8"?>
# <bpws:process exitOnStandardFault="yes" name="Test"
# suppressJoinFailure="yes"
# targetNamespace="http://sample.bpel.org/bpel/Test"
# xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
# xmlns:ns="http://sample.bpel.org/bpel/TestArtifacts"
# xmlns:ns0="http://test.com" xmlns:tns="http://sample.bpel.org/bpel/Test">
# <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
# location="Test.wsdl" namespace="http://sample.bpel.org/bpel/Test"/>
# <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
# location="AddService.wsdl" namespace="http://test.com"/>
# <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
# location="TestArtifacts.wsdl" namespace="http://sample.bpel.org/bpel/TestArtifacts"/>
# <bpws:partnerLinks>
# <bpws:partnerLink myRole="TestProvider" name="client" partnerLinkType="tns:Test"/>
# <bpws:partnerLink name="PartnerLink"
# partnerLinkType="ns:addServicePLT" partnerRole="partnerRole"/>
# </bpws:partnerLinks>
# <bpws:variables>
# <bpws:variable messageType="tns:TestRequestMessage" name="input"/>
# <bpws:variable messageType="tns:TestResponseMessage" name="output"/>
# </bpws:variables>
# <bpws:sequence name="main">
# <bpws:receive createInstance="yes" name="receiveInput"
# operation="process" partnerLink="client" portType="tns:Test" variable="input"/>
# <bpws:reply name="replyOutput" operation="process"
# partnerLink="client" portType="tns:Test" variable="output"/>
# </bpws:sequence>
# </bpws:process>

partnerLinkType声明如下:
1. <plnk:partnerLinkType name="addServicePLT">
2. <plnk:role name="partnerRole" portType="wsdl:AddService"/>
3. </plnk:partnerLinkType>
4. <import location="AddService.wsdl" namespace="http://test.com"/>
...全文
205 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
caigang0618 2008-11-07
  • 打赏
  • 举报
回复
deploy.xml要如何配啊
luoxiang2000 2008-07-04
  • 打赏
  • 举报
回复
用的是免费的apache的ode引擎。
luoxiang2000 2008-07-04
  • 打赏
  • 举报
回复
谢谢。
我的AddServicePL不是一个bpel,只是一个普通的webservice。我该怎么捆绑。
我的deploy.xml如下:
<?xml version="1.0" encoding="UTF-8"?>
<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"
xmlns:pns="http://sample.bpel.org/bpel/Test"
xmlns:wns="http://sample.bpel.org/bpel/Test">
<process name="pns:Test">
<active>true</active>
<provide partnerLink="client">
<service name="wns:TestService" port="TestPort" />
</provide>
</process>
</deploy>
另外我的外部的wsdl文件为什么只能拷贝到本地来才能import,直接uri不行?
如:<bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="http://192.168.0.1:8080/service/AddService.wsdl" namespace="http://test.com"/>
谢谢。
luoxiang2000 2008-07-04
  • 打赏
  • 举报
回复
可以了。谢谢。
另外我的外部的wsdl文件为什么只能拷贝到本地来才能import,直接uri不行?
如: <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="http://192.168.0.1:8080/service/AddService.wsdl" namespace="http://test.com"/>
老紫竹 2008-07-04
  • 打赏
  • 举报
回复
Caused by: java.lang.IllegalArgumentException: AddServicePL must be bound to an endpoint in deploy.xml


AddServicePL 必须在deploy.xml里面捆绑
yegoo 2008-07-04
  • 打赏
  • 举报
回复
不懂
  • 打赏
  • 举报
回复
log信息
luoxiang2000 2008-07-03
  • 打赏
  • 举报
回复
DEBUG - GeronimoLog.debug(66) | Loading properties
WARN - GeronimoLog.warn(92) | Config file C:\Program Files\tomcat6.0.14\webapps\ode\WEB-INF\conf\ode-axis2.properties not found, default values will be used.
DEBUG - GeronimoLog.debug(66) | Initializing transaction manager
DEBUG - GeronimoLog.debug(66) | Initializing transaction manager using org.apache.ode.il.EmbeddedGeronimoFactory
DEBUG - GeronimoLog.debug(66) | Creating data source.
DEBUG - GeronimoLog.debug(66) | Starting DAO.
INFO - GeronimoLog.info(79) | Using DAO Connection Factory class org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl.
DEBUG - GeronimoLog.debug(66) | DAO started.
DEBUG - GeronimoLog.debug(66) | Initializing BPEL process store.
DEBUG - GeronimoLog.debug(66) | Initializing BPEL server.
DEBUG - GeronimoLog.debug(66) | ODE initializing
DEBUG - GeronimoLog.debug(66) | BPEL SERVER initializing
DEBUG - GeronimoLog.debug(66) | BPEL SERVER starting.
INFO - GeronimoLog.info(79) | BPEL Server Started.
DEBUG - GeronimoLog.debug(66) | Initializing JCA adapter.
INFO - GeronimoLog.info(79) | Poller started.
INFO - GeronimoLog.info(79) | Process deployment polling started on path C:\Program Files\tomcat6.0.14\webapps\ode\WEB-INF\processes.
INFO - GeronimoLog.info(79) | ODE Service Engine has been started.
DEBUG - GeronimoLog.debug(66) | Process store event: {ProcessStoreEvent#DEPLOYED:{http://sample.bpel.org/bpel/Test}Test-4}
DEBUG - GeronimoLog.debug(66) | Ignoring store event: {ProcessStoreEvent#DEPLOYED:{http://sample.bpel.org/bpel/Test}Test-4}
DEBUG - GeronimoLog.debug(66) | Process store event: {ProcessStoreEvent#ACTVIATED:{http://sample.bpel.org/bpel/Test}Test-4}
DEBUG - GeronimoLog.debug(66) | register: {http://sample.bpel.org/bpel/Test}Test-4
DEBUG - GeronimoLog.debug(66) | Registering process {http://sample.bpel.org/bpel/Test}Test-4 with server.
DEBUG - GeronimoLog.debug(66) | Register process: serviceId={http://sample.bpel.org/bpel/Test}TestService:TestPort, process=BpelProcess[{http://sample.bpel.org/bpel/Test}Test-4]
DEBUG - GeronimoLog.debug(66) | Activating {http://sample.bpel.org/bpel/Test}Test-4
DEBUG - GeronimoLog.debug(66) | Destroying service {http://sample.bpel.org/bpel/Test}TestService port TestPort
DEBUG - GeronimoLog.debug(66) | Couldn't find service {http://sample.bpel.org/bpel/Test}TestService port TestPort to destroy.
DEBUG - GeronimoLog.debug(66) | Create AxisService: service={http://sample.bpel.org/bpel/Test}TestService port=TestPort WSDL=Test.wsdl BPEL=Test.bpel
DEBUG - GeronimoLog.debug(66) | Looking for Axis2 service configuration file: file:/C:/Program%20Files/tomcat6.0.14/webapps/ode/WEB-INF/processes/Test/TestService.axis2
DEBUG - GeronimoLog.debug(66) | Axis2 service configuration not found: file:/C:/Program%20Files/tomcat6.0.14/webapps/ode/WEB-INF/processes/Test/TestService.axis2
DEBUG - GeronimoLog.debug(66) | Setting service with empty namespace replication
DEBUG - GeronimoLog.debug(66) | Created Axis2 service {http://sample.bpel.org/bpel/Test}TestService
DEBUG - GeronimoLog.debug(66) | Activated {http://sample.bpel.org/bpel/Test}Test-4 myrole client: EPR is org.apache.ode.bpel.epr.WSAEndpoint@ced1a8
DEBUG - GeronimoLog.debug(66) | Activated {http://sample.bpel.org/bpel/Test}Test-4
DEBUG - GeronimoLog.debug(66) | Rehydrating process {http://sample.bpel.org/bpel/Test}Test-4
ERROR - GeronimoLog.error(104) | Latch error, was releasing for state 1 but actually in -1
WARN - GeronimoLog.warn(92) | Deployment failed within the engine, store undeploying process.
DEBUG - GeronimoLog.debug(66) | Process store event: {ProcessStoreEvent#UNDEPLOYED:{http://sample.bpel.org/bpel/Test}Test-4}
DEBUG - GeronimoLog.debug(66) | Deactivating process {http://sample.bpel.org/bpel/Test}Test-4
DEBUG - GeronimoLog.debug(66) | Destroying service {http://sample.bpel.org/bpel/Test}TestService port TestPort
INFO - GeronimoLog.info(79) | Unregistered process {http://sample.bpel.org/bpel/Test}Test-4.
ERROR - GeronimoLog.error(108) | Deployment of Test failed, aborting for now.
org.apache.ode.bpel.iapi.ContextException: Deployment failed within the engine.
at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:291)
at org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:144)
at org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:55)
at org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:188)
Caused by: java.lang.IllegalArgumentException: AddServicePL must be bound to an endpoint in deploy.xml
at org.apache.ode.bpel.engine.BpelProcess.setRoles(BpelProcess.java:450)
at org.apache.ode.bpel.engine.BpelProcess.access$1000(BpelProcess.java:75)
at org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.doHydrate(BpelProcess.java:757)
at org.apache.ode.bpel.engine.BpelProcess$HydrationLatch.access$100(BpelProcess.java:704)
at org.apache.ode.bpel.engine.BpelProcess$HydrationLatch$2.run(BpelProcess.java:716)
at org.apache.ode.bpel.engine.NStateLatch.latch(NStateLatch.java:89)
at org.apache.ode.bpel.engine.BpelProcess.hydrate(BpelProcess.java:597)
at org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:284)
at org.apache.ode.axis2.ODEServer.handleEvent(ODEServer.java:543)
at org.apache.ode.axis2.ODEServer.access$100(ODEServer.java:73)
at org.apache.ode.axis2.ODEServer$ProcessStoreListenerImpl.onProcessStoreEvent(ODEServer.java:529)
at org.apache.ode.store.ProcessStoreImpl.fireEvent(ProcessStoreImpl.java:501)
at org.apache.ode.store.ProcessStoreImpl.fireStateChange(ProcessStoreImpl.java:507)
at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:284)
... 3 more
DEBUG - GeronimoLog.debug(66) | shutting down poller
DEBUG - GeronimoLog.debug(66) | shutting down ODE server.
DEBUG - GeronimoLog.debug(66) | BPEL SERVER STOPPING
INFO - GeronimoLog.info(79) | BPEL Server Stopped.
DEBUG - GeronimoLog.debug(66) | shutting down quartz scheduler.
DEBUG - GeronimoLog.debug(66) | shutting down transaction manager.
DEBUG - GeronimoLog.debug(66) | cleaning up temporary files.
INFO - GeronimoLog.info(79) | Shutdown completed.
cl55 2008-07-02
  • 打赏
  • 举报
回复
用的什么engine? 具体的log信息呢?
在Windows 10或Windows 11操作系统中,用户经常会遇到共享打印机时出现的一系列错误代码,这些错误代码可能会阻碍打印机共享功能的正常使用。常见的错误代码包括0x00000057、0x00000709和0x0000011b,这些代码通常指出了不同的问题,比如权限不足、服务未运行或配置错误等。除此之外,还有一些故障提示如“连接失败”或“内存不足”,这些都可能影响到打印机共享的稳定性。 要解决这些故障,首先要确保打印机已经正确地连接到网络,并且在需要共享的电脑上进行了设置。确保打印机驱动程序是最新的,并且在共享设置中没有错误配置。对于权限问题,需要检查网络上的用户账户是否具有足够的权限来访问共享打印机。同时,也要确保打印机服务正在运行,特别是“Print Spooler”服务,因为这是打印机共享服务的核心组件。 在某些情况下,问题可能与操作系统的更新有关,如升级到最新版的Windows 10或Windows 11后可能出现的兼容性问题。这时,可能需要查看微软的官方支持文档来获取特定的解决方案或更新。 对于错误代码0x00000057,这通常是由于没有足够的权限来访问网络打印机或其共享资源,解决方法是确保网络打印机的权限设置正确,包括在组策略中设置相应的访问权限。而0x00000709错误可能是由于打印机驱动问题或打印机端口配置错误,可以尝试重新安装或更新打印机驱动来解决。至于0x0000011b错误,这往往是因为打印机队列服务的问题,检查并重启“Print Spooler”服务通常是解决这类问题的常见手段。 至于“连接失败”或“内存不足”这类故障,通常与客户端和打印机之间的网络连接以及打印机本地资源的使用情况有关。检查网络连接,确保打印机所在的网络段没有故障或中断。同时,如果打印机的打印队列长时间得不到处理,可能会导致内存不足的情况,这时可能需要清理打印队列或增加打印机的内存配置。 为了帮助用户更快速地解决这些问题,市面上出现了各种打印机共享错误修复工具。这些工具往往通过预设的修复程序来自动检测和修正打印机共享中常见的问题。它们可以快速检查打印机驱动、网络连接以及共享设置,并且能够提供一键修复功能,大幅减少了用户自行排查和解决问题的难度。 然而,在使用这些修复工具之前,用户应确保这些工具的来源是安全可靠的,避免因使用不当的修复工具而引发其他系统安全或隐私问题。用户可以到官方平台或者信誉良好的软件提供商处下载这些工具。通过细心检查打印机的共享设置,及时更新驱动程序和服务,以及合理使用修复工具,大多数共享打印机的问题都可以得到有效的解决。

67,549

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧