As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, …
Tag: java
Would writing a server in 64bit Java be stunted by JVM heapsize / memory?
It looks like 32 bit java program can only use between 1-2 gigs of ram? http://publib.boulder.ibm.com/infocenter/javasdk/tools/index.jsp?topic=%2Fcom.ibm.java.doc.igaa%2F_1vg00014884d287-11c3fb28dae-7ff6_1001.html Could I expect a java program running in 64bit OS to not have this limitation? Answer Could I ex…
xjc: Two declarations cause a collision in the ObjectFactory class
Running the following xjc command raises an error : Although I understand the JAXB bindings and what are is conflict in XJC, I don’t understand where is the conflict in the current schema. how should I fix this ? Thanks, Pierre update: here is the context of the errors: Answer I’ll quote from the …
Wicket dynamically add components to form
I’m having trouble adding components to a form dynamically. What I’m trying to do is: Give the user a drop-down list with items they can choose like name, age, … When a user presses add: there comes a (label + inputbox) in 1 component which allows them to put in the value. You might think I …
Reflection generic get field value
I am trying to obtain a field’s value via reflection. The problem is I don’t know the field’s type and have to decide it while getting the value. This code results with this exception: Can not set java.lang.String field com….fieldName to java.lang.String I tried to cast, but I get comp…
Is EclipseLink MOXy suitable for ridiculously huge XML files?
I’ve spent some enjoyable time with EclipseLink MOXy, figuring out the best way to parse XML into POJOs within Spring. I’ve now been given some XML to parse, and the files go up to a quite unbelievably 750MiB in size. Does EclipseLink MOXy use streaming tech underneath, or will it try to hold the …
Java TCP Client/Server
I have a problem which I do not know how to proceed further in Java TCP socket issue. So far as what we can get from the Internet, it’s not hard to get quite a number of working solution for TCP server & client communication in Java. However, most of the example will have their server listen to a po…
How to remove certain items from a Stack [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago. I have a homework pr…
JPA could not locate named parameter
I keep getting the following error: “could not locate named parameter [articleCommentId]” but it doesn’t make sense to me because to me the named parameter is very much in place. Here is an extract of the stack trace with the relevant error: Answer I bet it is due to the extra ; in your quer…
Making a concat operator to add char array to a string. Printing a reference variable of a string object
So far, if I try to use the concat operator I get this error Tester.java:14: cannot find symbol symbol : method concat(MyString) location: class MyString System.out.println(hello.concat(goodbye));…