@MTOM with @SchemaValidation causes IllegalStateException when streaming

We are using Weblogic-10.3.3 and streaming documents from Documentum to web service clients via MTOM (using the @MTOM annotation).
Our service was working fine when our EJB web service class only had the @MTOM annotation on it.
However, adding @SchemaValidation annotation causes a "java.lang.IllegalStateException: closed" exception (AdminServer.log stack trace is below) when the web service response is being returned (to the client).
In soapUI, the document's content type comes through, but the file size is 0.
Somehow, @SchemaValidation logic is interfering with the MTOM streaming.
Has anyone else encountered there and/or know the reason why this occurring? Is the schema validation reading the response stream first (to do its validation) and then, when the client tries to read the same response stream for the document content, there is no data in the stream (since it was read already by the schema validation)?
Again, there is no problem when the @SchemaValidation annotation is not present.
Thank you.
java.lang.IllegalStateException: closed
     at com.documentum.fc.client.content.impl.BlockPuller.verifyOpen(BlockPuller.java:64)
     at com.documentum.fc.client.content.impl.BlockPuller.close(BlockPuller.java:69)
     at com.documentum.fc.client.content.impl.PullerInputStream.close(PullerInputStream.java:110)
     at com.documentum.fc.impl.util.io.InputStreamHandle.close(InputStreamHandle.java:45)
     at java.io.FilterInputStream.close(FilterInputStream.java:156)
     at javax.activation.DataHandler.writeTo(DataHandler.java:297)
     at com.sun.xml.ws.encoding.MtomCodec$ByteArrayBuffer.write(MtomCodec.java:206)
     at com.sun.xml.ws.encoding.MtomCodec.encode(MtomCodec.java:173)
     at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
     at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:368)
     at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:102)
     at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:534)
     at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:255)
     at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:141)
     at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:210)
     at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:311)
     at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:223)
     at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:124)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:79)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3686)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Hi,
Have you found a resolution to this issue? If you havent, I know why you are getting those issues. Let me know if you are still resolving this.
regards,
Johnny

Similar Messages

  • Why does mirroring with airplay always stop when streaming videos?

    When streaming video from my iPad2 to AppleYV using mirroring, the video is always stopping to buffer. How can I fix that?

    When streaming video from my iPad2 to AppleYV using mirroring, the video is always stopping to buffer. How can I fix that?

  • MacBook Pro with retina display freezes when streaming from Vudu

    I don't know if anyone has experienced this before. I have been trying to watch Non-Stop on Vudu tonight with a lot of issues. After streaming for a while, perhaps some 15-20 minutes or so, the video starts buffering non-stop (ha!). The problem is that once that happens, I cannot click on anything. The buffering doesn't stop, but even if I try to quit Safari, the thing freezes Safari and freezes the entire computer. I have been working with Apple for the past 2 hours and nothing that has been done seems to fix the problem. I even ran a diagnostic and it said that I had no issues.
    This is the first time I have streamed from Vudu. I never had issues streaming from anywhere else. I am running a Netflix video in the background to see if it will freeze. Since it's not a full screen, I don't know if it will do the same. Nothing else seems to cause a problem, but what is bizarre is that it freezes the entire computer. In the case that the website was messing everything up, I don't know why it has to freeze the entire computer.
    Has anyone else experienced this, and if so did you get to a solution and how?
    Thanks!

    I had this exact problem when watching streams on my Macbook pro retina 15". For the sake of testing, I tried opening the same stream i was testing in chrome, using 120 % of cpu, in safari, where it uses roughly 3-10 %. dont't know if this will solve your problem, but I advice trying it.

  • Macbook pro with retina display , noisy when streaming

    Yesterday I bought macbook pro with retina display 2.4GHz, 8Gb RAM, 256Gb flash storage ( 2088 SG$ ) from Challenger , Singapore.
    If I watch online steaming ( e.g youtube.,etc ) , my macbook pro's fan start noisy and increase body temperature because of load .
    I checked in activity monitor, CPU usage increased. So How should I do now ?

    I had this exact problem when watching streams on my Macbook pro retina 15". For the sake of testing, I tried opening the same stream i was testing in chrome, using 120 % of cpu, in safari, where it uses roughly 3-10 %. dont't know if this will solve your problem, but I advice trying it.

  • Can you help with why my Ipad, when streaming with Airplay, drops off my wifi extender?

    Hi, I use a wifi extender to get better coverage down the back of my house. When close to my router, I use airplay  from my ipad on my regular network, streaming to my marantz sr5007. It works perfectly. When I'm in the backroom, I choose the extender network for my ipad (network.ext) to stream music using airplay. After a few minutes (normally 3 but it's been up to 20minutes), the music stops and the ipad shows it's back on it's own speaker. No music is playing. I can then choose the marantz again, the music will start. Two minutes later the same thing happens.
    This only happens when on the SSID of the extender. Strangely, when I use itunes on my pc to stream music, and place it on the extender SSID, it's stable and keeps the connection to the marantz.
    Any help would be greatly appreciated.

    Thanks very much. I'm going to contact Netgear when I get home to see if they've got any ideas.
    I'll also try to use a static IP for the marantz. That seems to have helped a couple of people.
    Thanks again.

  • When streaming video on my iPhone 4s with OS 7.1

    When streaming video on my iPhone 4s with OS 7.1 the sound is fine but the video is like watching a slide show.  What's causing this?

    Thank you but I got that figured out. The issues is in that the text from incoming Emails are so small  it is difficult to read. If you increase the font size using what you suggested, incoming is easier to read but when you compose a new email it is like getting far fewer words on the screen because the text is so large.
    Something changed in the new version of the operating system!

  • When streaming a movie with the new Apple TV, and using a DSL Internet connection, all audio sound works, e.g., the music track, but the audio track with the actor's voices, does not work. What can I do?

    When streaming a movie with the new Apple TV, and using a DSL Internet connection, all audio sound works, e.g., the music track, but the audio track with the actor's voices, does not work. What can I do?

    Hi Brian,
    Thanks restoring and restarting didn't fix my problem - i have started it fresh and still it doesn't work. Basically I press ONCE on the remote, after the machine has not had any commands for 10 minutes, and the cursor skips from one end of the menu to the other - so I can't choose network or update software etc - I sometimes manage to stop it randomly in the middle of the menu if I press on a command in the middle of the cursor skipping all the menu steps...not sure what the problem is but I have basically not used my brand new apple tv since I bought it for that reason! I should call Apple support I suppose! grrrr hate wasting time with stuff like this!
    Thanks for your help though!
    Pernille

  • Problem when streaming with the CLI flash media encoder 2.5

    I have a problem when streaming with Flash Media Encoder 2.5. When I run the GUI, everything works, but when I use the commandline with the same profile I have created using the GUI, it says it can't connect to the server.
    I have to use this version of the encoder, because the other is not working with the server, and I have to create a program to remotely control the flash media encoder, so I have to use the CLI. What can i do to go over this problem?
    Any help would be really appreciated. Thankyou.

    First of all, thankyou.
    There is no authentication needed. I can't use Flash Live Media Encoder 3 because it is not supported by the people which manages the server i have to connect to.
    In fact, I don't know why they dont support it, but that is the way it is.
    Through the GUI, i connect directly and without problems, without user/pass.
    Thankyou again.

  • Ive got this problem with itouch 4th gen when im trying to upgrade my ios to ios 6.1.3 when it is verifying it suddenly shutdown and it keeos on blinking with the logo and i cannot open it...what is the main cause of thst..tnx

    ive got this problem with itouch 4th gen when im trying to upgrade my ios to ios 6.1.3 when it is verifying it suddenly shutdown and it keeos on blinking with the logo and i cannot open it...what is the main cause of thst..tnx

    - Reboot the computer
    - Try DFU mode and then restore/update
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Delete the update file so that new one has to be download.
    IPSW file location for Mac and Windows
    - Try on another computer to help determine if you have an iPod or computer problem.

  • Error with @SchemaValidation

    Hi,
    I’m creating a proxy for webservices with wsimport and JAXWS.
    Everything seems to work fine but when I add @SchemaValidation to the webservice class, deployment on Glassfish and Weblogic goes wrong with the error message:
    cos-st-restricts.1.1: The type 'DateContentType' is atomic, so its {base type definition}, 'xs:anySimpleType', must be an atomic simple type definition or a built-in primitive datatype
    Does anybody know what this means?
    Is this a problem with the XSD’s or with SchemaValidation?
    Does anyone know a fix or workaround? The XSD’s are given so I can’t change them.
    Thank you,
    Best regards,
    Erik
    Complete stacktrace:
    [#|2012-06-25T17:08:46.390+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=19;_ThreadName=Thread-2;|Exception while invoking class com.sun.enterprise.web.WebApplication start method
    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: javax.servlet.ServletException: com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: org.xml.sax.SAXParseException: cos-st-restricts.1.1: The type 'DateContentType' is atomic, so its {base type definition}, 'xs:anySimpleType', must be an atomic simple type definition or a built-in primitive datatype.
         at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
         at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
         at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
         at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
         at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
         at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
         at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)
         at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)
         at sun.reflect.GeneratedMethodAccessor762.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
         at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
         at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
         at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
         at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
         at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
         at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
         at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
         at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
         at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
         at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
         at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
         at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
         at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
         at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:148)
         at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
         at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
         at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
         at java.lang.Thread.run(Thread.java:662)
    Edited by: Erik on 28-jun-2012 4:43

    Apparently wsimport used XMLGregorianCalender java attributes which caused the SchemaValidation problem.
    I solved it using a jaxb binding file so Calender java objects are used instead.
    binding file "bindings.xml":
    <?xml version="1.0" encoding="UTF-8" ?>
    <jaxb:bindings
    version="2.0"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <jaxb:globalBindings>
    <jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
    parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime"
    printMethod="javax.xml.bind.DatatypeConverter.printDateTime"/>
    <jaxb:javaType name="java.util.Calendar" xmlType="xs:time"
    parseMethod="javax.xml.bind.DatatypeConverter.parseTime"
    printMethod="javax.xml.bind.DatatypeConverter.printTime"/>
    <jaxb:javaType name="java.util.Calendar" xmlType="xs:date"
    parseMethod="javax.xml.bind.DatatypeConverter.parseDate"
    printMethod="javax.xml.bind.DatatypeConverter.printDate"/>
    <jaxb:serializable uid="1"/>
    </jaxb:globalBindings>
    </jaxb:bindings>
    and added "-b bindings.xml" to the wsimport command:
    wsimport -keep -Xnocompile -b bindings.xml some.wsdl
    Extra adapter.java files are generated for the conversion, don't forget to use them in your java project.
    Hope someone else will find this useful as well!

  • Reproducable Kernel Panic when streaming via Mplayer X or VLC (27" iMac, ATI5750)

    Since Lion (and yes, I did install 10.7.1) I have an odd behavior:
    When streaming von my Dreambox to VLC or Mplayer X I get a Kernel Panic after 5-15 Minutes. Everytime. Always.
    I have a iMac 27" 2.8 i5, 8GB Memory, and an ATI 5750 (1024MB). And right now - I hate my Mac. I whish I NEVER updated to that bugged beta software you call OS X Lion. Don't get me wrong - I use macs since the G3 processor and loved the machines .. until Lion.

    Updating this to know that I have determined that the kernel panic is being caused by a Kernel extension. I found it in System/Library/Extensions/. I deleted the Instant On entry and everything is all file. I hope this helps someone else out with a kernel extension kernel panic issue for their mac!

  • Using intel iMac OS 10.6.8 when streaming progress stops and will not continue

    When streaming a video there is progress bar that is gray and moves to the right in advance of the small vertical bar that shows the position of the program at that moment. Sometimes the grey bar stops moving then when the vertical bar reaches the end of the grey bar the streaming stops. And I can't make the gray bar advance.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Wlan router restarts when streaming music to Airport express

    Hi guys,
    Yesterday I received my brand new Airport express which I plan to use for streaming music from iTunes to my Stereo. Unpacking and installing the lovely looking AE was like x-mas eve and birthday all in one .
    After the installation where I set up the AE to join my wireless network. My wlan is a WEP 64 bit encrypted one, I had some problems adding it to the network with the wizard of the AE tool, but this worked just fine after using the manual set-up procedure instead where I chose WEP 40 bit in the AE tool. I also upgraded AE firmware as a part of this process.
    So, the AE pops up nicely in iTunes, and I started streaming music to them, and it worked perfectly... for 10 seconds. Then the music stopped, the play-bar in iTunes stopped, and I also noticed that my laptop (Acer laptop running Windows Vista) lost the internet connection.
    After some investigations where I switched off volume adjustment on remote speakers in iTunes and reseting and re-installing the AE, I noticed that the reasons for the problems seems to my wlan router re-booted whenever I started streaming music to the AE. My wlan router is a Zyxel Prestige 660, and it has worked flawlessly for the last two years. The AE is connected to the network, it gets an IP address, and it shows up just fine in the IP list on the router, that is before it restarts... And once the router re-starts the logs are gone, so it's not possible to see what's happening in that end.
    Has anyone ever experienced the same? What can the root cause be? Changing the wlan encryption is unfortunately not an option since the router is pre-programmed from my ISP. I'm considering changing my modem, but I'm reluctant to spending 150 bucks on a new modem if this may not resolve the issue.
    Any comments or suggestions would be highly appreciated.

    Part 2: The mystic restart of the router was solved through changing to a Thompson Speedtouch 780 (luckily my ISP sent me a new wlan router and I didn't even have to pay).
    However, the problem with the music breaking up when streaming from iTunes to the AE remains; The stream is broken after just a few seconds, and it also seems to mess up other internet traffic on my laptop . I've tried with the AE in a number of different locations, even 1 meter away from my laptop - nothing works.
    As it is now, the AE is useless. What a disappointment .

  • Java.lang.IllegalStateException : output stream already retrived Error

    Hi All
    I am trying to integrate crystal reports 10g with oracle 10g AS.My application works fine on TOMCAT 4.1.31,but when I depoly in oracle 10G AS,it shows the following exception
    Java.lang.IllegalStateException : output stream already retrived.
    Any suggestions?
    Regards
    Mohan

    Hello,
    Awaiting help.
    Thanks and Regards
    Mohan

  • Java.lang.IllegalStateException : output stream already retrived.

    Hi All
    I am trying to integrate crystal reports 10g with oracle 10g AS.My application works fine on TOMCAT 4.1.31,but when I depoly in oracle 10G AS,it shows the following exception
    Java.lang.IllegalStateException : output stream already retrived.
    Any suggestions?
    Regards
    Mohan

    Hello,
    Awaiting help.
    Thanks and Regards
    Mohan

Maybe you are looking for