I´m binding a fileupload control to a managed bean. The property within the managed bean is of type "UploadedFile". When I save the Bean I get the following client side javascript error:
dojo/parser::parse() error SyntaxError: Unexpected token )(…)
This occurs only with managed beans. When the control is bound to a domino document there is no such error.
Here is some code for you: I use the very basic version of the control and instantly get the javascript error:
<xp:fileUpload id="fileUpload1"
value="#{registration.User.attachment}">
</xp:fileUpload>
Does anyone have experience with this or is there any property which I forgot to set?
Related
I'm using the tRESTClient object in Talend Open Studio for ESB - Version: 8.0.1.
This REST is doing a POST (I'm trying to write data into an API). The link I'm using is an https link that I've tested using Postman. There is also a header api-key, in Talend, I have that x-api-key setup as a query parameter.
When I run the job, I get the error: IllegalArgumentException: URI is not absolute
I tried adding a tSetProxy object, but it didn't fix the error (I used the https defaults on the set proxy object). How can I resolve this error?
I wanted to retrieve conneg by using following line of code.
Configuration.Services.GetContentNegotiator
It gives me an error "Cannot resolve symbol Services". I am building ASP.NET Web API using ASP.NET MVC 4. Services is a public property of System.Web.Http.HttpConfiguration but I can't get a reference of that object.
I am using Axis2 v1.6.1 and Resty as a rest client. If I purposely send a malformed request that Axis2 cannot parse, for example, sending "p=0.0" where p is an Integer, then Axis2 will generate 500 HTTP Response and log an error in it's log saying something to the effect of:
[ERROR] Exception occurred while trying to invoke service method createUpdateOrganization
org.apache.axis2.AxisFault: Invalid value "0.0" for element poStart
...
This is great but I need to be able to capture this exception information in order to act upon it as part of our exception management framework.
It seems to be throwing an AxisFault exception but this is before it reaches my service so I'm not sure what I need to configure in order to get this information.
Any ideas?
I found the following article:
http://www.packtpub.com/article/handler-and-phase-in-apache-axis
Which explains exactly what I need to do. The answer is to create a custom handler for the InFaultFlow phase. :) I hope this helps somebody else!
I've got a WCF Service, which calls a webservice, running on my development IIS server (IIS 7). I've added it as a service reference to a C# Website Project and it adds fine.
However, when I try to call any of the service contracts, I get the following error:
The content type text/html
of the response message does not match
the content type of the binding
(text/xml; charset=utf-8). If using a
custom encoder, be sure that the
IsContentTypeSupported method is
implemented properly. The first 1024
bytes of the response were:
'Blocked Web
Page
thanks in advance
BB
The error message says it clearly: you're getting back an HTML page instead of your service response. Looking at the fragment of that page listed in the error message, you're probably not authroized to use that service.
Try to connect to the service URL in a browser - you should probably see a page explaining that you're not allowed to access the page. Most likely, this is a permissions issue.
You need to configure WCF Tracing and find out what's happening on the server side.
I am trying to consume WCF based Sharepoint 2010 claim-based. I am getting the following error message: Thank you for any advice.
System.ServiceModel.CommunicationException
"The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 b..."
Whenever you get HTML from a web service, it means you're getting an error message. Look at the network traffic using Fiddler or something to see what the service is trying to tell you.