Aleatory One factory fails for the operation "encode"-JPEG

I've a very strange problem with JAI.write using JPEG, but is happening aleatory. Some times it works, some times I get the exception and some other times don't. What I've seen is that when I got first this error, then all the rest of the images throws it. I mean, I'm working OK and then I got the exception, from there, all the images, no matter that they were not trowing exceptions before, now they do, so I don't know what is happening. I'll post some code snippets and the full stack trace of the exception. Hope you can help me:
First, I have a class that is a JSP-Tag:
RenderedOp outputImage = JAI.create("fileload", imgFile.getAbsolutePath());
int widthSize = outputImage.getWidth();
int heightSize = outputImage.getHeight();
try{
    outputImage.dispose();                         
}catch(Exception e){}
outputImage = null;That's the first thing, now, the second, this is a Servlet that writes the image to the browser (GetImageServlet its name, which appears in the stack trace):
FileSeekableStream fss = new FileSeekableStream(file);
RenderedOp outputImage = JAI.create("stream", fss);
int widthSize = outputImage.getWidth();
int heightSize = outputImage.getHeight();
if ((outputImage.getWidth() > 0) && (outputImage.getHeight() > 0)) {
                    if ((isThumbnail) && ((outputImage.getWidth() > 60) || (outputImage.getHeight() > 60))) {
                         outputImage = ImageManagerJAI.thumbnail(outputImage, 60);
                    } else if (outputRotate != 0) {
                         outputImage = ImageManagerJAI.rotate(outputImage, outputRotate);
                    OutputStream os = resp.getOutputStream();
resp.setContentType("image/jpeg");
     ImageManagerJAI.writeResult(os, outputImage, "JPEG");
                    outputImage.dispose();
                    os.flush();
                    os.close();
outputImage = null;
imgFile = null;The code of ImageManagerJAI.writeResult, which is a method I use above:
public static void writeResult(OutputStream os, RenderedOp image, String type) throws IOException {
          if ("GIF".equals(type)) {
               GifEncoder encoder = new GifEncoder(image.getAsBufferedImage(), os);
               encoder.encode();
          } else {
               JAI.create("encode", image, os, type, null);
     }And the full exception trace is:
Error: One factory fails for the operation "encode"
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
     at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
     at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
     at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
     at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
     at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
     at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
     at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
     at javax.media.jai.JAI.createNS(JAI.java:1099)
     at javax.media.jai.JAI.create(JAI.java:973)
     at javax.media.jai.JAI.create(JAI.java:1668)
     at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
     at GetImageServlet.doGet(GetImageServlet.java:214)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
     at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.media.jai.codecimpl.util.ImagingException
     at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
     at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
     at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
     ... 31 more
Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
     ... 33 more
Caused by: java.io.IOException: reading encoded JPEG Stream
     at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
     at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
     at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
     at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
     ... 32 more
javax.media.jai.util.ImagingException: All factories fail for the operation "encode"
     at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1687)
     at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
     at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
     at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
     at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
     at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
     at javax.media.jai.JAI.createNS(JAI.java:1099)
     at javax.media.jai.JAI.create(JAI.java:973)
     at javax.media.jai.JAI.create(JAI.java:1668)
     at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
     at GetImageServlet.doGet(GetImageServlet.java:214)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
     at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
     at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
     at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
     ... 26 more
Caused by: com.sun.media.jai.codecimpl.util.ImagingException
     at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
     at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
     at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
     ... 31 more
Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
     ... 33 more
Caused by: java.io.IOException: reading encoded JPEG Stream
     at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
     at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
     at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
     at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
     ... 32 more
Caused by:
java.lang.reflect.InvocationTargetException
     at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
     at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
     at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
     at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
     at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
     at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
     at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
     at javax.media.jai.JAI.createNS(JAI.java:1099)
     at javax.media.jai.JAI.create(JAI.java:973)
     at javax.media.jai.JAI.create(JAI.java:1668)
     at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
     at GetImageServlet.doGet(GetImageServlet.java:214)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
     at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.media.jai.codecimpl.util.ImagingException
     at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
     at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
     at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
     ... 31 more
Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
     ... 33 more
Caused by: java.io.IOException: reading encoded JPEG Stream
     at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
     at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
     at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
     at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
     ... 32 moreI'm using JDK 1.6, Tomcat 5.5, Windows XP, and JAI 1.1.2_01 (the jars are in the WEB-INF/lib of the project AND in the jdk 6/jre/lib/ext, while the dlls are only on jdk 6/jre/bin)
Please help, I don't know what to do, I've weeks with this problem. Dukes available pleaseeee!

Hi
you can check if you get in the error logs an message like 'Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode.' may be the problem of JAI native accelerator

Similar Messages

  • Error: One factory fails for the operation "encode"

    Dear all,
    This is my first attempt to use JAI. I am getting the following error message. Any ideas why this could happen?
    Thanks
    Error: One factory fails for the operation "encode"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException
         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:494)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at com.sun.media.jai.opimage.FileStoreRIF.create(FileStoreRIF.java:138)
         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:494)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at RectifyIt.actionPerformed(RectifyIt.java:715)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1834)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2152)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5463)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3052)
         at java.awt.Component.processEvent(Component.java:5228)
         at java.awt.Container.processEvent(Container.java:1961)
         at java.awt.Component.dispatchEventImpl(Component.java:3931)
         at java.awt.Container.dispatchEventImpl(Container.java:2019)
         at java.awt.Component.dispatchEvent(Component.java:3779)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4203)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3883)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3813)
         at java.awt.Container.dispatchEventImpl(Container.java:2005)
         at java.awt.Window.dispatchEventImpl(Window.java:1757)
         at java.awt.Component.dispatchEvent(Component.java:3779)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    Error: One factory fails for the operation "filestore"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException

    I'm not an expert in JAI either, but I noticed you have an OutOfMemoryError at the bottom of your stacktrace. I'd focus on that.
    Are you dealing with a large image? Maybe try holding as little of the image in memory as possible. Do you have a small Java heap size? Maybe try increasing the footprint. etc...
    CowKing

  • Can Not Calibrate the display. The factory profile for the display...

    I have an apple cinema display 20" and a mac powerbook g4 (1.25 GHx PowerPC g4, 1.25 GB DDR SDRAM) with os 10.4.9. All of my software is up to is date.
    I used to be able to calibrate my colorsync profiles. My computer's hard drive recently failed and I had it replaced and the system re-installed (If any of you live in NYC, I took it to tek Serve, and they know what they are doing).
    Now when I try to calinbrate my monitor I get the error "Can Not Calibrate the display. The factory profile for the display could not be found." Like I said I have updated to 10.4.9 but this hasnt solved my problem. I have restarted my computer, and this has also not solved my problem.
    Any help!?! Please! This is important to me as I do color work for print and I need to see colors accurately When I use my computer.

    I fixed it already. There was indeed a problem in the preferences. In my case I removed the whole preferences folrder to the desktop (which forces the computer to rebuild it fresh) and it worked fine! Then one at a time 'as it was needed, I put back the preferences for other applications (mail, itunes etc). Turns out no preferences was better than whatever corrupted preference was in there causing the problem. You know what I mean. If no preferences are there the applications start over building it new automatically. So it was like a preferences restart. sorta.
    Unfortunately, since I dont have applecare I had to spend 50 bucks on the phone with apple to figure this out. It's amazing how long it took them to actually pinpoint the problem. Hopefully if anyone gets that error in the future they'll find this post on google and save some bucks.

  • ServiceRequestException : The request failed. The operation has timed out

    I wrote simple client using EWS Managed API. And let it run for one night. It was working fine. But when I checked it back in the morning, I found my application stopped. I checked logs I got following exception:
    2014-01-08 01:49:05.3649 | Error | Exception while fetching mails : The request failed. The operation has timed out | MyNamespace.MyClass.myMethod
    Immediate Stack Trace
    ===================================================================================
    Microsoft.Exchange.WebServices.Data.ServiceRequestException : The request failed. The operation has timed out
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
    at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecute()
    at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
    at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalLoadPropertiesForItems(IEnumerable`1 items, PropertySet propertySet, ServiceErrorHandling errorHandling)
    at Microsoft.Exchange.WebServices.Data.ExchangeService.LoadPropertiesForItems(IEnumerable`1 items, PropertySet propertySet)
    at MyNamespace.MyClass.myMethod() in c:\MyProject\MyClass.cs:line 190
    Inner Exception 1 : Stack Trace
    The operation has timed out
    at System.Net.HttpWebRequest.GetResponse()
    at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse()
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
    Since the Exception message did not contain error code that Exchange server usually returns like (401) Unauthorized or (403) Forbidden, I am unable to pinpoint any reason for this to occur, since the functionality worked perfectly several times before
    this exception occurred as I can check in my logs. Also my diagnostic class which runs on the occurrences of any exception immediately tried to ping exchange server and re-initialize ExchangeService object. When I checked diagnostics logs after this exception
    time for the result of diagnostics, then it was able to ping the exchange server and the ExchageServer object also initialized successfully. So I am out of any reason now. 
    The exception occurred on the last line of the following code:
    ItemView itemView = new ItemView(100, 0);
    FindItemsResults<Item> itemResults = null;
    PropertySet psPropSet = new PropertySet(BasePropertySet.IdOnly);
    itemView.PropertySet = psPropSet;
    PropertySet itItemPropSet = new PropertySet(BasePropertySet.IdOnly)
    ItemSchema.Attachments,
    ItemSchema.Subject,
    ItemSchema.Importance,
    ItemSchema.DateTimeReceived,
    ItemSchema.DateTimeSent,
    ItemSchema.ItemClass,
    ItemSchema.Size,
    ItemSchema.Sensitivity,
    EmailMessageSchema.From,
    EmailMessageSchema.CcRecipients,
    EmailMessageSchema.ToRecipients,
    ItemSchema.MimeContent
    itemResults = service.FindItems(WellKnownFolderName.Inbox, itemView);
    if (itemResults.Items.Count != 0)
    service.LoadPropertiesForItems(itemResults.Items, itItemPropSet);
    Any guesses why this could have happened? Or just some random network congestion? Am I forgetting to log some more information. Should I also log Exception.Data or something else?

    The timeout is occurring on the client so it not a particular error that's being returned by the server.
    The default timeout with the EWS Managed API is 90 seconds and is set on the ExchangeService Object. You can set this to a higher value eg to set it to 5 minutes
    server.timeout = 300000;
    Why it fails ? if its overnight then Backups can be the cause eg if they are snapshotting the server or some other backup mechanism could mean the server is very busy for a time. Or any other number of specific environmental factors. This is really
    a job for your Network admin to determine with server and network monitoring. I would suggest you check the EWS.Log on the Exchange server to see what happened at that time.
    What you should do at a code level is handle the exception, I would suggest wait for 60 seconds after the exception (this will cater for most throttling issues) and then try the same request again. If it fails again after a pause then
    you generally have a larger problem.
    Cheers
    Glen

  • The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) Logon failure: unknown user name or bad

    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    Logon failure: unknown user name or bad password 
    am using Windows integrated security,version of my sql server 2008R2
    I have go throgh the different articuls, they have given different answers,
    So any one give me the  exact soluction for this problem,
    Using service account then i will get the soluction or what?
    pls help me out it is urgent based.
    Regards
    Thanks!

    Hi Ychinnari,
    I have tested on my local environment and can reproduce the issue, as
    Vaishu00547 mentioned that the issue can be caused by the Execution Account you have configured in the Reporting Services Configuration Manager is not correct, Please update the Username and Password and restart the reporting services.
    Please also find more details information about when to use the execution account, if possible,please also not specify this account:
    This account is used under special circumstances when other sources of credentials are not available:
    When the report server connects to a data source that does not require credentials. Examples of data sources that might not require credentials include XML documents and some client-side database applications.
    When the report server connects to another server to retrieve external image files or other resources that are referenced in a report.
    Execution Account (SSRS Native Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Getting " Not enough memory for the operation error " in BOE

    Hi,
    We are using BOE 11.0.
    we try to schedule a new report with multiple database logins for testing in BOE. When we run the report we are getting error like "Not enough memory for the operation error"
    The same report has been executed successfully when we run using Crystal reports developer. The report is fectching less than 10K records from all the databases together.
    Please let me know which is causing the issue and also let me know is there any limit in the number of databases connecting for a single report.
    many thanks in advance for all your help.
    Cheers,
    Suri ;-)

    Hi Sarthan,
    Sorry. I'm new to BOE. We know only scheduling the reports creating folders etc. :-)
    I've seen one parameter "Maximum Cache Size Allowed (KBytes)" and the value for this parameter is 5000.
    If we change it to a big number whether we can solve the issue ? Please suggest.
    Cheers,
    Suri ;-)

  • Passing values to subreport in SSRS throwing an error - Data Retrieval failed for the report, please check the log for more details.

    Hi,
    I have the subreport calling from the main report. The subreport is based on MDX query agianst the SSAS cube. some dimensions in cube has values 0 and 1.
    when I try to pass '0' to the sub report as the parameter value, it gives an error "Data Retrieval failed for the report, please check the log for more details".
    Actually I am using table for storing these parameter values. In the main report I am calling this table (dataset) and passing these values to subreport.
    so I have given like [0],[1] and this works fine. when I give only either [0] or [1] then it is throwing an error.
    Could you please advise on this.
    Appreciate all and any help.
    Thanks,
    Divya

    Hi Divya,
    Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
    To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
    values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) The user name or password is incorrect

    I am able to run the report fine in BIDS in the preview window, and it deployes fine.  When it goes to view the report in the browser, I get the following error.  There is no domain, I am using a standalone computer with SQL Server and SSRS on
    this one machine.
    Can anyone point to where I might configure the permission it is looking for?  thanks!  Steven
    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    The user name or password is incorrect
    Steven DeSalvo

    Hi StevenDE2012,
    Based on the error message "The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)", it seems that the Unattended Execution Account settings in Reporting Services
    Configuration is not correct.
    Reporting Services provides a special account that is used for unattended report processing and for sending connection requests across the network. Unattended report processing refers to any report execution process that is triggered by an event rather than
    a user request. The report server uses the unattended report processing account to log on to the computer that hosts the external data source. This account is necessary because the credentials of the Report Server service account are never used to connect
    to other computers. To configure the account, please refer to the following steps:
    Start the Reporting Services Configuration tool and connect to the report server instance you want to configure.
    On the Execution Account page, select Specify an execution account.
    Type the account and password, retype the password, and then click Apply.
    In addition, please verify you have access to the Report Server database by following steps:
    Go to SQL Server Reporting Services Configuration Manager, make sure the configuration is correct.
    Go to Database, Verify that you can connect to the database.
    Make sure you are granted public and RSExecRole roles.
    Reference:
    Configure the Unattended Execution Account
    Configure a Report Server Database Connection
    If the problem is unresolved, i would appreciate it if you could give us detailed error log, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu

  • Upgrade OM 2012 to SP1 Beta - Version of SQL Server for the Operational Database and the Data Warehouse

    Hello,
    When I try to verify the prerequisites to upgrade my SCOM 2012 UR2 Platform to SP1 Beta, I have these errors :
    The installed version of SQL Server is not supported for the operational database.
    The installed version of SQL Server is not supported for the data warehouse.
    But when I execute this query Select @@version on my MSSQL Instance, the result is :
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: ) (Hypervisor) 
    But
    here, we can see that :
    Microsoft SQL Server: SQL Server SQL 2008 R2 SP1, SQL Server 2008 R2 SP2, SQL Server 2012, SQL Server 2012 SP1, are supported.
    Do I need to pach my MSSQL Server with a specific cumulative update package ?
    Thanks.

    These are the requirements for your SQL:
    SQL Server 2008 and SQL Server 2012 are available in both Standard and Enterprise editions. Operations Manager will function with both editions.
    Operations Manager does not support hosting its databases or SQL Server Reporting Services on a 32-bit edition of SQL Server.
    Using a different version of SQL Server for different Operations Manager features is not supported. The same version should be used for all features.
    SQL Server collation settings for all databases must be one of the following: SQL_Latin1_General_CP1_CI_AS, French_CI_AS, Cyrillic_General_CI_AS, Chinese_PRC_CI_AS, Japanese_CI_AS, Traditional_Spanish_CI_AS, or Latin1_General_CI_AS.  No other collation
    settings are supported.
    The SQL Server Agent service must be started, and the startup type must be set to automatic.
    Side-by-side installation of System Center Operations Manager 2007 R2 reporting and System Center 2012 Service Pack 1 (SP1), Operations Manager reporting on the same server is not supported.
    The db_owner role for the operational database must be a domain account. If you set the SQL Server Authentication to Mixed mode, and then try to add a local SQL Server login on the operational database, the Data Access service will not be able to start.
    For information about how to resolve the issue, see
    System Center Data Access Service Start Up Failure Due to SQL Configuration Change
    If you plan to use the Network Monitoring features of System Center 2012 – Operations Manager, you should move the tempdb database to a separate disk that has multiple spindles. For more information, see
    tempdb Database.
    http://technet.microsoft.com/en-us/library/jj656654.aspx#BKMK_RBF_OperationsDatabase
    Check the SQL server agent service and see whether it is set to automatic AND started. This got me confused at my first SP1 install as well. This is not done by default...
    It's doing common things uncommonly well that brings succes.

  • SP1 to R2 Upgrade - The installed Version of SQL Server is not supported for the operational database

    Hello, 
    Am trying to upgrade a SCOM SP1 environment to SCOM R2( 3 MGT servers, 1 GW and 2 Web console boxes )
    The prerequisites are failing and it is stating the following ; 
    Operational Database SQL Version Check - The installed Version of SQL Server is not supported for the operational database
    Data Warehouse  SQL Version Check - The installed Version of SQL Server is not supported for the data warehouse
    The SQL servers are running SQL 2012 SP1 64 Enterprise, which is compatible.
    All other pre-upgrade tasks have been done. 
    Help appreciated! 

    I'm having the exact same issue, I believe. I think that Tubble has problem with SCOM 2012. Not 2007.
    I've checked the compatibility list for both SCOM 2012 SP1 and R2. All newer Windows Server and SQL versions are supported. We're running the SQL 2012 SP1 x64 Standard edition on a Windows Server 2012 Standard.
    I even tried to move the database from SQL 2012 to an older SQL 2008 R2, but that's not supported either. Only upgrading. Not downgrading.
    So, I started checking the opsMgrSetupWizard.log file for clues. And the error message was there as well. But the reason why it says not supported is that it can't get the info about the OS version, so I guess it assumes the OS version is to low. The RPC
    service can not be reached.
    [10:29:11]: Error: :GetRemoteOSVersion(): Threw Exception.Type: System.Runtime.InteropServices.COMException, Exception Error Code: 0x800706BA, Exception.Message: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
    [10:29:11]: Error: :StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at Microsoft.EnterpriseManagement.OperationsManager.Setup.Common.SetupValidationHelpers.GetRemoteOSVersion(String remoteComputer)
    [10:29:11]: Debug: :IsSQLOnAValidComputer: remote OS version string was null or empty.
    [10:29:11]: Error: :Error:IsValidSQLVersionCheck: SqlServer OS version is too low.
    [10:29:11]: Debug: :**************************************************
    [10:29:11]: Error: :<![CDATA[CheckPrerequisites: Logic Type:and IsValidOMDBSQLVersionCheck: 2]]>
    [10:29:11]: Error: :
    [10:29:11]: Error: :CheckPrerequisites: OMDBSqlVersionCheckTitle: Failed
    [10:29:11]: Error: :
    [10:29:11]: Debug: :**************************************************
    [10:29:33]: Error: :GetRemoteOSVersion(): Threw Exception.Type: System.Runtime.InteropServices.COMException, Exception Error Code: 0x800706BA, Exception.Message: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
    [10:29:33]: Error: :StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at Microsoft.EnterpriseManagement.OperationsManager.Setup.Common.SetupValidationHelpers.GetRemoteOSVersion(String remoteComputer)
    [10:29:33]: Debug: :IsSQLOnAValidComputer: remote OS version string was null or empty.
    [10:29:33]: Error: :Error:IsValidSQLVersionCheck: SqlServer OS version is too low.
    [10:29:33]: Debug: :**************************************************
    So, in our case this was just a FW that was blocking some high ports between management server and SQL. I believe TCP port 135 also needs to be open.
    Let's hope this fixes your issue as well, Tubble.
    Have a great day!

  • Inspection RR should be allowed for the operation confirmed qty only

    Hi  Friends
    I have one requirement , Inspection results recording should be allowed for the operation confirmed qty only
    i.e
        1. Release Production Order for 100 qty
        2. Inspection Lot created for 100 qty
        3. Production Confirmation done for 1st operation for 50 qty
        4. Next operation is testing or Quality inspection
        5. Used 03 insp type(WIP inspection)
        6. Result Recording should be allowed only for 50 Qty
        7. If i go for 51, system should give message(i.e confirmation not done for 51)
        8. Usage decision saved for 50 qty, Remaining 50 qty,we have to do separate RR & UD once confirmation done
    Please let me know the settings,
    Thanks & Regards
    Gajendranath

    Hello Gajendra
    Please find my inputs
    1) PLease activate in OPK4 for the production order type these 3 setting
    a) Operation sequence :  Error when operation sequence is not followed
    b) Overdelivery : Error when overdelivery tolerance is exceeded
    c) Results Rec. (QM) : Error message if no insp. result exists
    by doing this a) you make the sequence of operation mandatory. no body can confirm operation no 30 without confirming 10 & 20
    b) if you have confirmed 50 in the first operation, you cannot confirm more than 50 in second operation
    c) it will not allow you to confirm through C011n if the result recording is not done
    2) Kindly understand for 03 inspection the lot quantity will be of 100 (PO quantity as in your case). so it is impossible to give UD for 50 quantity and then do the UD for the rest of the quantity.
    UD is for the lot and not for the confirmed quantity. And please note for 03 inspection confirmation holds the importance rather than the UD
    So use 03 for intend of its use
    Regards
    Gajesh

  • I get an error when trying to sync my music. It says I do not have enough access privileges for the operation.

    I get an error when trying to sync my music. It says I do not have enough access privileges for the operation.

    Follow this instruction exactly to the last line.  It worked on mine.
    Jolly Giant wrote:
    daduser wrote:
    "copying files failed, because you don't have permission to change your ITUNES media folder or a folder within it."
     check if you have read & write permissions for your iTunes music (or media) folder. in finder, right-click on it and +get info+. unlock the little padlock (you may have to enter your admin password) and change the permission settings. if permissions settings check out, click on the little gear-shaped icon and +apply to enclosed items+ like so 
     now try consolidating again.

  • Validation failed for the field - Bill To Contact, Ship To Contact

    Hi,
    When I am trying to Import / enter order for a specific customer, i am getting the error.
    VALIDATION FAILED FOR THE FIELD - BILL TO CONTACT
    VALIDATION FAILED FOR THE FIELD - SHIP TO CONTACT
    Has anyone got this error earlier? If you know the resolution, please update me on this.

    Hi,
    I am getting following error when I an adding one customer address to another customer through Order Import Program. By populating 3 table values
    1. OE_CUSTOMER_INFO_IFACE_ALL
    2. OE_HEADERS_IFACE_ALL
    3. OE_LINES_IFACE_ALL
    Error Message:
    Duplicate SHIP_TO ADDRESS found for IC_804810. Please correct the data.
    Duplicate BILL_TO ADDRESS found for IC_804810. Please correct the data.
    But its working fine when I am giving New address for existing customer.
    Please help me on this....
    Thanks,
    Oracle Support.

  • The factory profile for the display could not be found.

    Whenever I try to color calibrate my Mid 2010 iMac I get the error message "The factory profile for the display could not be found". When you look at the profile settings for the display a color sync profile is set, but the setting for the factory profile is blank. I know where the color sync profiles are stored but it seems to me that the display has lost the setting to the factory profile. Can anyone tell me what the default factory profile setting should be? and how do you restore the setting? (note: I seem to have all the ICC files, it's the default factory setting itself that is missing)

    There seems to be a lot of posts about this issue dotted around the net with no-one able to come up with a solution. So I found a solution myself! =P
    1) Download a copy of Plistedit Pro. It's shareware, so donate!
    2) Edit /Library/Preferences/.GlobalPreferences.plist (you will need to create a copy of the file, edit the copy and then copy back)
    Using the plist editor find the coloursync entry for your device and simply edit the factory default entry to point to a valid colorsync profile file (.icc).
    I can now colour calibrate my iMac again. Phew!!!

  • How to handle "Validation failed for the field - Tax code" issue?

    We had mass uplaod the order that create on Mar with tax code effective date on Apr. Now we would like return on this order  and getting error of "Validation failed for the field - Tax code". How to handle this issue?

    Hi
    You will have to check if the Tax_Code of RMA being received is the same as the one in the related sales order.
    If not you will need to use the same tax_code.
    Refer below document : Doc ID 1584338.1

Maybe you are looking for

  • I cannot get flash player 13 to work on my pc running windows 7 32 bit and internet explorer.

    My pc running internet explorer and windows 7 32 bit will not run flash player 13.  It will work for a few second and then crash

  • My new Ipod touch died

    I got an ipod touch last week, and everything was fine, today suddenly a black screen with the apple logo appear and since that moment I can't listen to any music and my computer can't find my ipod with my usb cable, I waited to the battery get low,a

  • Is the iMac really capable of high power use?

    My 3 month old iMac is in the shop because of random shutdowns - mostly when I use Adobe Photoshop CS3 (but also when I am just reading email or browsing the internet). The "Apple Tech" informs me that perhaps the software I am using is too much for

  • Why doesn't speedial work after I downloaded it?

    Some how I lost my original speedial and lost all it's content. I have tried to download speedial addon twice, it said it would automatically start after firefox was restarted. It never shows. I also have several toolbars showing that I don't know wh

  • Automatic startup not working

    Hi ! I have a problem I never encountered before. At a customers site they have installed an Oracle8i (8.1.7) on a W2K/SP2 server machine. The services startup automatically, but the instance ist not started. Maybe they messed something up during ins