I am using a filereference Object to export an excel file from my flex application. I am using fileReference.save() from Flash player 10. I am getting an error if the file i am trying to save is already open. This error is not getting handled even if i put a try catch block. I have tried adding a listener with IOErrorEvent.IO_ERROR. Still the error is happening. This is the Error message i am getting - "Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error."
Thanks in advance.
Manoj
This is asynchronous error, you can't catch it with try-catch block. Add an event listener for IOErrorEvent event.
Also, we need some details to get the source of the problem.
Related
When I try to get data from dynamoDb I am getting exception Resource Not Found exception. It is not going inside catch block as well so that I can catch the exception. Due to this I am getting runtime error. How to handle this error?
this.getModel()
.query(queryfilter)
.attributes(attr)
.exec();
}
I'm receiving this error every time I copy, delete pages. Not sure what's causing this error. Any tips to find where the error is being thrown?
I working on building a simple connection with MS CRM. I am getting this 'Unconstructed message' error only when I add the Exception handler. I referred to another link Use of unconstructed message - which tells that compiler might not be sure of the message being constructed before it is handled.
But I am creating the message in a map(Transform shape) - does that not guarantees that a message is created?
Do I need to add a message assignment shape before the transform and initialize the Request message?
If you are constructing the message inside of the scope to which you have added the exception shape, then that message will be treated as Unconstructed as the exception may occur before or while the transformation occurs.
So no, the transform shape does not guarantee that the message will be constructed at all times.
Usually in this case you are better of using in your exception block the message that is on the initiating receive of your orchestration, or if you are trying to catch an exception after the transformation add a scope that starts after the transform shape and add an exception block to that.
Entity Framework's DbEntityValidationException renders a message of
Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.
With a stack pointing to where the error occurred. It would be really, really useful if we could dig into the collection of errors, and write out the property and error message. Is there any way in Elmah where we can customize the output for this exception type only?
ELMAH only logs information about an error from the shared stuff on various exception. If the exception message or stacktrace doesnt contain the 'EntityValidationErrors' details, you need to save those yourself.
You can create a filter in ELMAH, implemented to check the type of the exception. If the type is DbEntityValidationException, you can dismiss that exception and raise a new one, containing a ToString of each item in the EntityValidationErrors property as the error detail.
I am getting this error during serialization:
RangeError: Error #2006: The supplied
index is out of bounds.
The error occurs in AbstractMessage.as when it attempts to read input of timestamp.
After that my fault handler gets this error:
faultCode:Server.Acknowledge.Failed
faultString:'Didn't receive an
acknowledge message' faultDetail:'Was
expecting
mx.messaging.messages.AcknowledgeMessage,
but received null'
It appears to be happening as a result of an ArrayCollection coming back from the server.
Is it necessary to create custom classes to handle serialization of ArrayCollections with custom objects as shown here?
I've also followed the serialization recommendations here with no luck.
Thanks for your help!
The solution was correcting a mistake in writeExternal on the Java side. I was being very careful about the order of serialization but was writing an int as an object using writeObject. This will cause errors in completely unrelated code on the client side after it tries to readInt.
I just experienced this error myself, and it turns out it is caused by the Flash Builder Network monitor being enabled!! FB 4.0.1 this is.
I was going nuts for not finding the reason, so sharing it here for your peace of mind.