[JBossWS] - Re: wstools Duplicate operation with name ...
by wpower
I am getting the following error while trying to generate JbossWS artifacts from a .wsdl file. The .wsdl file is from an existing Axis based application, and I am trying to migrate it to JBoss.
Does anyone know if the problem is with the .wsdl or wstools or the settings passed to wstools.
Thanks.
Running JBossWS wstools for [PSXAPI_r06_03]
directory: C:\jboss-4.0.5.GA\bin
command: cmd.exe /C wstools.bat -config C:\DOCUME~1\POWER~1.WIL\LOCALS~1\Temp\wstools-config18085.xml -dest C:\jide\Test\src
========================================================================="
.
WSTools Environment
.
JBOSS_HOME: C:\jboss-4.0.5.GA\bin\\..
.
JAVA: C:\Program Files\Java\jdk1.5.0_09\\bin\java
.
JAVA_OPTS:
.
========================================================================="
.
Exception in thread "main" java.lang.IllegalArgumentException: Duplicate operation with name=delete, found in portType '{http://www.testnet.com/test/intf}PSXAPI/r06_03SoapBinding'.
at com.ibm.wsdl.BindingImpl.getBindingOperation(BindingImpl.java:224)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.messagePartToElementName(WSDL11Reader.java:652)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processOperationInput(WSDL11Reader.java:487)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortTypeOperations(WSDL11Reader.java:460)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:446)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:728)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1071)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1054)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1027)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:119)
at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145)
at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:120)
at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:324)
at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005416#4005416
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005416
19 years, 3 months
[Messaging, JMS & JBossMQ] - Txconnectionmanager error occured
by minixman
All when i try and send an abject messages from my MDB to my EJB and then the EJB trys to publish that to a topic, i get this errror
| 17:26:03,212 INFO [AutobahnMonitorMDB] Message sent
| 17:26:03,243 WARN [TxConnectionManager] Connection error occured: org.jboss.resource.connectionmana
| ger.TxConnectionManager$TxConnectionEventListener@8a137c[state=NORMAL mc=org.apache.activemq.ra.Acti
| veMQManagedConnection@1dae27f handles=0 lastUse=1169573159743 permit=true trackByTx=true mcp=org.jbo
| ss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@9830bc context=org.jboss.resource.c
| onnectionmanager.InternalManagedConnectionPool@1a79447 xaResource=org.apache.activemq.ra.ActiveMQMan
| agedConnection$1@14c4066 txSync=null]
| javax.jms.JMSException: java.lang.NullPointerException
| at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:46)
| at org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1447)
| at org.apache.activemq.ActiveMQConnection$2.run(ActiveMQConnection.java:1420)
| at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPo
| olExecutor.java:650)
| at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolEx
| ecutor.java:675)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NullPointerException
| at org.apache.activemq.broker.AbstractConnection.processBeginTransaction(AbstractConnection.
| java:313)
| at org.apache.activemq.command.TransactionInfo.visit(TransactionInfo.java:93)
| at org.apache.activemq.broker.AbstractConnection.service(AbstractConnection.java:237)
| at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:61)
| at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:92)
| at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
| at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:12
| 4)
| at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:123)
| at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:88)
| at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137)
| ... 1 more
| 17:26:03,306 ERROR [TxConnectionManager] There is something wrong with the pooling?
| java.lang.IllegalStateException: afterCompletion called with wrong tx! Expected: TxSync18350021{tx=T
| ransactionImpl:XidImpl[FormatId=257, GlobalId=dblonws19800/34, BranchQual=, localId=34] wasTrackByTx
| =true enlisted=true}, actual: null
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005414#4005414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005414
19 years, 3 months
[EJB 3.0] - Up-/Downcasting from objects with partial db-update
by hamtho2
Hi,
I´ve got two objects, that are extended from each other. For example they look like this:
| @Entity
| @Table(name = "users")
| @Name("user")
| @Scope(ScopeType.SESSION)
| public class User implements Serializable {
|
| @Column(name = "create_date", nullable = false)
| @Temporal(TemporalType.TIMESTAMP)
| private Date createDate;
|
| @Length(min=6)
| @Column(name = "password", nullable = false)
| private String password;
|
| @Column(name = "name", nullable = false)
| private String name;
|
| ....
| }
|
| @Entity
| @Table(name = "extendedUser")
| @Name("publisher")
| @Scope(ScopeType.SESSION)
| public class ExtendedUser extends User implements Serializable {
|
| @Column(name = "upgrade_date", nullable = false)
| @Temporal(TemporalType.TIMESTAMP)
| private Date upgradeDate;
|
| ....
| }
|
I´ve also got 2 tables. One holds all the attributes for the user and the other one holds only the additional attributes of the extendedUser all with the same primaryKey. What I would like to do now is to upcast my User to an ExtendedUser, so that it keeps all the values in the user-table and creates an entry in my extended-users table with all additional values of the extended object.
When I simply upcast my object and try to persist it with an em.merge(extendedUser) I get an Exception because it tries to persist a completely new extendedUser, which is absolutely correct, because it should only add the additional values and not create a new entry.
Is there a way to do an upcast/downcast and adding/deleting only the additional attributes of the inherited objects?
Thanks for your help
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005398#4005398
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005398
19 years, 3 months