i am getting adding some of parameter in query string.value of these param can be "a%%","%" etc.on java code side .while parsing query parameter i m getting char conversionexception
as shown below in exception log.
13:14:39,555 ERROR [STDERR] java.io.CharConversionException: EOF
13:14:39,555 ERROR [STDERR] at org.apache.tom...
Hi,
I have an MDI application which uses JInternalFrames. Each internal frame does a different operation, however, some of the other frames display messages using JOptionPane, which of course, pauses the entire application.
Is there anyway to (whenever a JOptionPane dialog or any other dialog box for that matter) be modal to its OWN i...
After running through the CXF samples I had a simple web service up and running fine. However I would like to integrate it with a Spring web application inside a servlet container. After updating the servlet.xml config file:
<jaxws:endpoint id="HelloWorldService"
implementor="path.to.webservice.HelloWorldImpl"
endpointName="e:HelloEndp...
I have CSV data (in fact the values are separated by a tab character, but I can use ; as the separator). The data are stored in a String object.
Is there simple way to create a JTable with this data (without doing it manually by reading and parsing the String object) ?
(note: my project is using Java 1.4, but if you have a solution tha...
Is it possible to configure Hibernate to store a component class in a separate table?
Take the following example:
<class name="test.ClassA">
<property name="propA"/>
<component name="componentProp" class="test.ClassB">
<property name="propB"/>
</component>
</class>
This maps to a table called MyClass with two columns p...
I am trying to build a JVMTI agent using the g++ command on Snow Leopard and I get the following error:
$ g++ -o agent.so -I `/usr/libexec/java_home`/include agent.cpp
Undefined symbols: "_main", referenced from: start in crt1.10.6.o ld:
symbol(s) not found collect2: ld returned 1 exit status
I am a total novice when it comes to gcc...
I'm looking to integrate OpenID into my website, but I need a tutorial to help me get going.
You can assume I have a good programming knowledge when making a recommendation :)
...
I'm working with JasperReports 3.2. I have a report that I export to PDF and Excel. The report uses custom styles introduced by the user. I parse the styles in Java as it's explained here. so a sample text from the report before being interpreted is
Test<style isBold="true" pdfFontName="verdanab.ttf">Test Bold</style> Some text <style i...
Hi,
i want to execute a setup.exe installer which installes a software on vista with java 1.6.
The user is not an administrator. When i try to start the process i get the error message:
CreateProcess error=740
which indicates, that the user has not enough rights for starting the process.
Can i submit a flag or an option to indicat...
What happens to class that extends TimerTask after it's run method has been executed? Is value for myTask null or what after execution?
MyTask myTask = new MyTask();
...
Consider the following Java exception classes:
public class FooException extends RuntimeException {
// [...]
}
public class FooException extends BarException {
private static final long serialVersionUID = -5322002268075295537L;
// [...]
}
If I wish to update the inheritance hierarchy to remove BarException, such that Foo...
class Foo {
final String s;
final int x = s.length();
Foo(String s) {
this.s = s;
}
}
The above code will not compile, because the assignment to x happens before the assignment to s. I could place the assignment to x inside the constructor, but for readability in a real case with 100 fields, I'd rather not.
...
I want to execute a batch file from a java program.
I am using the following command.
Runtime.getRuntime().exec("server.bat");
But the problem is I want to give a reative path instead of absolute path so that I can deploy that java project on any comp.
The dir structure of the project is like as follows:
com
|
project
|
...
Hi all,
I'm making a swing application with maven and I try to keep the pom.xml under tight reins (this file tends to become a pile of junk after pasting there whatever we find in google).
My pom is with jar and I use the maven-assembly-plugin with "jar-with-dependencies" descriptor.
So I need to define twice the part of my project (...
I'm trying to enter some value in external application using Java.
Java application looks like this:
Runtime runtime = Runtime.getRuntime();
// ... str build ...
proc = runtime.exec(str);
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(proc.getOutputStream()));
bw.write(value);
bw.flush();
bw.close();
if (proc.waitFor() ...
I googled all day and I cant find one good example how to map this kind of objects:
class Parent{
private Integer parentId;
private String parentName;
private List<Child> childs;
// ....... getters and setters ............
}
class Child{
private Integer childId;
private String childName;
private Parent par...
I have a class named Person with multiple properties, for example:
public class Person {
private int id;
private String name, address;
// Many more properties.
}
A lot of Person-objects are stored in an ArrayList<Person>. I want to sort this list by multiple sort parameters, and different from time to time. For instance I ...
I work for a government contractor that is really picky about what software gets installed on their machines (US government laws). As part of a reverse engineering effort, I need to figure out what a certain set of .class files do. A decompiler would be really helpful, but I can't seem to find one that meets the standards set here. Basic...
i parsed a text (CAL code) with BufferedReader and BufferedWriter in Java, unfortunately, lines which i red and wrote with outStream.write(line); have changed, please look at Screenshots:
http://uploadz.eu/images/4qz8mtkm2d9zx3x5ms3n.png
h**p://uploadz.eu/images/c03hgkrgrmit2ij2mug.png
as you see, some special character did changed the...
I was recently looking for a way to implement a doubly buffered thread-safe cache for regular objects.
The need arose because we had some cached data structures that were being hit numerous times for each request and needed to be reloaded from cache from a very large document (1s+ unmarshalling time) and we couldn't afford to let all r...