[JBossWS] - Wierd problem with result always being empty
by p0six
I've been trying to get by this all day. I have a web server defined to return an Object of type Arrivalbooking. The Arrivalbooking class is generated using xjc from a predefined DTD. Whenever I execute the web service the method executes perfectly and returns a valid Arrivalbooking with data in it. However ,the result is always empty.
Anyone have any ideas?
Here's the basic source for the web service
@WebService
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
@ServiceMode(value=Service.Mode.PAYLOAD)
//(a)SOAPBinding(style=SOAPBinding.Style.RPC)
public class RecordGridJSE implements RecordGrid
{
@WebMethod
@WebResult(name="arrivalsboard", partName="arrivalsboard")
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
public Arrivalsboard getDefaultRecordGrid()
throws RemoteException
{
return getRecordGrid(null, null, (SimpleDateFormat) null);
}
@WebMethod
@WebResult(name="arrivalsboard", partName="arrivalsboard")
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
public Arrivalsboard getRecordGrid(@WebParam(name="start") Date start, @WebParam(name="end") Date end, @WebParam(name="dateFormat") String dateFormat)
throws RemoteException
{
Arrivalbooking arrivalbooking = new Arrivalbooking();
.
.
.
return arrivalbooking;
}
}
The source for Arrivalbooking, Event was also generated with xjc
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"event"
})
@XmlRootElement(name = "arrivalsboard")
public class Arrivalsboard {
protected List event;
/**
* Gets the value of the event property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set method for the event property.
*
*
* For example, to add a new item, do as follows:
*
* getEvent().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Event }
*
*
*/
public List getEvent() {
if (event == null) {
event = new ArrayList();
}
return this.event;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075014#4075014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075014
18Â years, 11Â months
[JBossCache] - Problem with concurent put/remove operation.
by jacek187
There is a problem with concurent put/remove operation in latest 1.4.1SP4 Cayenne version. When one thread is only removing and second only putting values into this same cache region, sometime put operation fails with exception:
org.jboss.cache.NodeNotExistsException: node /a/b/c/d not found (gtx=GlobalTransaction::2, caller=Thread[Thread-0,5,main])
at org.jboss.cache.TreeCache._put(TreeCache.java:4618)
at org.jboss.cache.TreeCache._put(TreeCache.java:4579)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:330)
at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:52)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:89)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
(...)
Thread 1 is calling:
| cache.remove("/a/b/c/d");
| cache.remove("/a");
|
and Thread 2 is calling:
| cache.putObject("/a/b/c/d", "text" + x);
|
This same operations sequence fails too on latest 2.0.0.GA Habanero version but with another message:
org.jboss.cache.pojo.PojoCacheException: detach /a/b/c/d failed
at org.jboss.cache.pojo.impl.PojoCacheImpl.detach(PojoCacheImpl.java:158)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObjectII(PojoCacheDelegate.java:143)
at org.jboss.cache.pojo.impl.PojoCacheImpl.putObject(PojoCacheImpl.java:136)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:101)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)
at org.jboss.cache.aop.ConcurentOperationTest$WorkThread.run(ConcurentOperationTest.java:80)
Caused by: org.jboss.cache.lock.UpgradeException: failure upgrading lock: fqn=/__JBossInternal__/a/b/c/d/_ID_/5c4o02w-youoh8-f5frdt5j-1-f5frdt5j-2, caller=GlobalTransaction:<192.168.0.104:4850>:6, lock=read owners=[GlobalTransaction:<192.168.0.104:4850>:5, GlobalTransaction:<192.168.0.104:4850>:6] (activeReaders=1, activeWriter=null, waitingReaders=0, waitingWriters=1, waitingUpgrader=1)
at org.jboss.cache.lock.IdentityLock.acquire(IdentityLock.java:508)
at org.jboss.cache.interceptors.PessimisticLockInterceptor$LockManager.acquire(PessimisticLockInterceptor.java:579)
(...)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075006#4075006
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075006
18Â years, 11Â months