[JBoss-user] [JBossWS] - Re: jboss 4.0.2 and SOAP attachments

2005-05-19 Thread marcotombesi
Working with big attachments axis makes a temporary file in the server tmp dir.

It seems that in server/default/deploy/tmp directory there are no temporary 
files written using version 4.0.2, instead there are using jboss 4.0.1sp1.

Is there a configuration for that?





View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878334#3878334

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878334


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: jboss 4.0.2 and SOAP attachments

2005-05-18 Thread marcotombesi
the code throwing the exception is:

  | MessageContext msgctxt = MessageContext.getCurrentContext();
  | Message msg = msgctxt.getRequestMessage();
  | Iterator attachs = msg.getAttachments();
  | while (attachs != null && attachs.hasNext())
  | {
  |   AttachmentPart ap = (AttachmentPart) attachs.next();
  |   DataHandler dh = ap.getDataHandler();
  |   if (dh != null)
  |   {
  |   InputStream is = dh.getInputStream();//<-exception HERE
  | ...
  |}
  | }

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878155#3878155

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878155


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: jboss 4.0.2 and SOAP attachments

2005-05-18 Thread marcotombesi
this is the full stack trace:


2005-05-18 10:23:14,861 ERROR 
[it.grupposistematica.gespool.ws.impl.GespoolWsBean] 
java.lang.IllegalStateException: No cache available
java.lang.IllegalStateException: No cache available
at 
org.jboss.axis.attachments.ManagedMemoryDataSource.getInputStream(ManagedMemoryDataSource.java:104)
at javax.activation.DataHandler.getInputStream(DataHandler.java:220)
at it.grupposistematica.gespool.Attachment.load(Attachment.java:43)
at it.grupposistematica.gespool.Attachment.(Attachment.java:33)
at 
it.grupposistematica.gespool.ws.impl.GespoolWsBean.getAttachments(GespoolWsBean.java:229)
at 
it.grupposistematica.gespool.ws.impl.GespoolWsBean.startWorkflow(GespoolWsBean.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at 
org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:106)
at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at 
org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:153)
at 
org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 
org.jboss.webservice.server.InvokerProviderEJB.invokeServiceEndpoint(InvokerProviderEJB.java:131)
at 
org.jboss.webservice.server.InvokerProvider.invokeMethod(InvokerProvider.java:238)
at 
org.jboss.axis.providers.java.RPCProvider.invokeTarget(RPCProvider.java:176)
at 
org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)
at 
org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
at 
org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)
at 
org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.java:200)
at org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:89)
at 
org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:905)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.S

[JBoss-user] [JBossWS] - SOAP Attachment do not works in jboss4.0.2 final

2005-05-13 Thread marcotombesi
I've a stateless session bean implementing a web-service.

The following code works only in jboss 4.0.1sp1 and correctly return an 
InputStream of 17MB but returns an exception in jboss4.0.2final: "No cache" 

Message msg = MessageContext.getCurrentContext().getRequestMessage();
Iterator attachs = msg.getAttachments();
while (attachs != null && attachs.hasNext())
{
AttachmentPart ap = (AttachmentPart) attachs.next();
int sz = ap.getSize();

DataHandler dh = api.getDataHandler();
InputStream is = dh.getInputStream();
 }

NOTE:
- the code works for small attachments in both versions but only in 
jboss4.0.1sp1 if the attachment is bigger (17MB) 
- the size is corectly returned (17MB) in both versions.
- I've had noticed that in the server/deply/tmp directory

What happens? Is there a bug in the final release?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877623#3877623

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877623


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user