So i'm trying to get my Apache xmlrpc client/server implementation to play ball. Everything works fine except for one crucial issue:
my handler class (mapped through the properties file org.apache.xmlrpc.webserver.XmlRpcServlet.properties) reacts as it should but it's constructor is called at every method invocation. It would seem that ...
I am working on a web application (using Grails) which will generate a gift certificate. I'm thinking of a workflow like this:
The user will pick a template which will be stored as an image.
Then the text (name, date, amount etc) will be overlaid on the image to make the final certificate. There is a set of co-ordinates associated ...
Why is most of the agent research and work done in Java? Is there a reason that the developers seem to have completely steered clear of .net framework or is it that it just doesn't get talked about among researchers as the .net is more commercial than Java?
...
I'm writing a JSP/Servlet and I'm trying to get the the anchor part of the URI e.g:
blabla.rdf#mark
How do I get my mark from my request? Obviously request.getParameter() doesn't work?
Any help would be welcome.
...
Hi all,
I'm trying to pass a java variable from a custom jsp tag(Im using struts2 here to get the variable from the java class). Here is the error I'm getting.
javax.servlet.ServletException: /pages/editBidForm.jsp(51,8) According to TLD or attribute directive in tag file, attribute parentId does not accept any expressions
org.apa...
Can anyone point me to an example on how to use CURRENT_DATE in a JPA query?
CURRENT_DATE is specified in JPA but I haven't been able to make it work. I always get the unexpected token [CURRENT_DATE] exception. Since is specified in JPA all providers should comply with it right?
I'm using EclipseLink 2.0 BTW.
...
I have a Java project connecting to an Ingres database and using the Spring Framework. This issue is related to the error codes list configuration.
According to Spring Framework API:
Class SQLErrorCodes: JavaBean for
holding JDBC error codes for a
particular database. Instances of this
class are normally loaded through a
bea...
One possible solution could be simple HTTP get or post request, but that wouldn't be secure.
...
I am getting problem to read pdf files using iText in java. I can read only one page but when I go to second page it gives exception.I want to read all the pages of any pdf file.
PdfTextExtractor parser =new PdfTextExtractor(new PdfReader("C:/Text.pdf"));
parser.getTextFromPage(3);
I am using these lines and at second line gives exce...
Update: I checked the JBoss log and found the following errors:
2009-10-28 10:21:34,472 ERROR [org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] (main) JBossWS_ejb.uhandler.pds.hsc.xyzis.com_8603663089732759450.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'ns1:Mes...
I have tried " " to display two spaces in a standard output Java String. Trying System.out.println("__"); <---- (two spaces, but, obviously, it trims it down to one space, hence the underscore)
I imagine there is a way to escape the , but I can not figure it out nor find help online. Searching for it is ironic becau...
I'm in the situation where I'm writing custom error pages for a webapp (primarily to reduce information disclosure from the servlet container's default error pages). Since I need an error page for each error status code, I'm going to have to have a sensible response for each code. As far as I can tell, these error pages don't have to b...
Pros/Cons of using either ? They both provide roughly the same functionality. Which should I choose to develop my high performance TCP server ?
...
INSERT INTO UPLOAD_FILE_RECORD_FIELDS_DATA
select ?,?,?,?
union all
select ?,?,?,?
union all
select ?,?,?,?
I have to insert multiple records into one table.So i am using query as below.and setting parameter values. But i am getting error code 77.What is cause?
No of records to be inserted are approx 70000.So i am inserting 100 ...
I'm currently writing an Eclipse APT plug-in to check if my annotations are correct.
But it appears that enabling APT causes my compile process to slow down.
Even saving a tiny, unreferenced class takes a few seconds and eats a lot of memory.
I think the reason is that the APT framework checks a full tree of objects (large project), ev...
I'm using iBATIS to create select statements. Now I would like to implement the following SQL statement with iBATIS:
SELECT * FROM table WHERE col1 IN ('value1', 'value2');
With the following approach, the statement is not prepared correctly and no result returns:
SELECT * FROM table WHERE col1 IN #listOfValues#;
iBATIS seems to re...
I have a property in a Struts DynaValidatorActionForm that is an array of Integers:
<form-property name="ids" type="java.lang.Integer[]"/>
I'd like to perform a validation on each of these Integers. For example, let's say I want to validate that none of them is equal to the number 1:
<field property="ids" depends="vali...
My application needs to know the path to a directory where it can store its data. I tried to set a Java system property and use that variable as a placeholder in my Spring XML.
In Eclipse I added that property to the environment of my run configuration and it works just fine. Spring resolves ${dataDir} to the correct path.
But when I t...
Has anybody used Eclipse memory manager to detect memory leak in java codes? Can anybody recommend a good place to look for information regarding using memory manager? I read something online, it suggests that i need to let the program run until it crashes (out of memory error occurs), which will generates a crash report. Then use the me...
I need a Regex I think to see if a string is only a double but it can be of any length, any suggestions?
...