I have a very strange problemen when connecting to an https url:
[Security:090548]The certificate chain received from services.rdc.nl - 217.115.224.68 contained a V3 CA certificate which was missing the basic constraints extension
There is almost no information availible about this error code. When testing the url with OpenSSL, all c...
I statically recompiled a Java lib which used generics a lot, like Collection<?>, but the emitted .NET dll only uses Collection, not with type parameters. How come?
...
I have an RMI server and a desktop RMI client. When I restart the server, I get errors in the client. Is it possible to restart the RMI connection without restarting the client?
[EDIT] Here is the stacktrace:
java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is:
java.net.ConnectException: Con...
I am working on an Eclipse RCP application which should display an internal hierarchical structure as a graph. The nodes of the graph should be positioned on different points of a background image but should offer drag support. The graph should be zoom-able possibly without resizing the nodes on the maps (layout zoom) while the backgroun...
Hello,
I have a software that allow to write add-on in javascript files (.js) that allow to use Java function (I don't know if this is common, I never saw java call in javascript file before)
I need to download a binary file from a webserver and write it to the hard drive. I tried the following code:
baseencoder = new org.apache.commo...
Relevant Code
-- Note Instructions is merely a class with several methods which will operate on the data. A new thread is created operate on the data read.
READ THREAD:
while(true) {
System.out.println(".");
if(selector.select(500) == 0)
continue;
System.out.println("processing read");
for(SelectionKey s...
What is the correct method to get the content of an URL in multiple threads using HttpClient in java?
For example loading a List with items, loading each item in a different thread at the same time and getting the information from the same URL with different parameters.
In a application I am creating it gives me no element found except...
I have an object, let's say FOO, with a variable, percent...
I need to create an Action percentChanged, which will be triggered when the variable percent is changed, which will handled by an ActionListener in another object ...
How to do it in java ?
...
I use CXF(2.2.3) to compile the Amazon Web Service WSDL (http://s3.amazonaws.com/ec2-downloads/2009-07-15.ec2.wsdl)
But got error as below.
Parameter: snapshotSet already exists
for method describeSnapshots but of
type
com.amazonaws.ec2.doc._2009_07_15.DescribeSnapshotsSetType
instead of
com.amazonaws.ec2.doc._2009_07_15.D...
Hi guys,
I tried out beta1 of Hibernate, and annotations were supposed to be included, yet when I use the JAR file I cannot find org.hibernate.annotations.ForeignKey nor any ForeignKey annotation class inside the jar. Has this been deprecated or renamed?
Cheers
Nik
...
If I register a bunch of data structures with an IoC container, I'd like to say (C# syntax):
var lookup = container.Create<IDictionary<Name,ISequence<EMail>>>() ;
The container should magically find the registered types that implement IDictionary and ISequence, and construct the type I need. Basically, I want to create types based on ...
Hi,
I'm using Spring's FileSystemXmlApplicationContext in Osgi activator. Unfortunately, it doesn't load any bean from the provided XML files.
I'm sure that it finds the xml configuration files, because I was testing with incorrect name of my xml configuration file, and it threw an FileNotFoundException.
Here is a snippet from my cod...
I'm trying to locate where my memory has gone for a java process running in linux. Someone suggested I use pmap -x to see exactly what the memory is doing.
The output is really long but basically a good portion of it is a repeat of this:
00007fbf75f6a000 1016 - - - rwx-- [ anon ]
00007fbf76068000 12 ...
Hello!
I have a design decision to make. I need your advice.
Requirements:
A server and a client. client is typically a mobile phone.
Connected through the Internet.
Server and client want to talk to each other.
Exchange of text, multimedia between the client and the server.
Text would be some standard format. that is predecided.
Rea...
Say I do something like:
Reader r = new BufferedReader(new FileReader(file));
... read ...
r.close()
Does this close the underlying FileReader (and release the open file handle)?
-Dave
...
I am new to JAXB. All I want to do is, given an existing xml string marshal it, and return it in an ejb. The problem is the following code only seems to work for the root node, and not the children. I would like it to work for the whole thing. If it is any help, I have not altered any of the code generated by feeding in the scheme. Any p...
Hi, I'm programming a game in j2me in the client side, that connects to a server written in java. This game is going to have a chat feature, but as a secondary feature.
For every midlet that connects to the server, a server-game thread is spawned. These threads talk between them, so that they can synchronize and write in turns to a ser...
Hi,
the title really says it all. I have a properties file that has lots of different properties in it for different things:
ui.datasource.st.name=MyTest
ui.datasource.st.port=111
ui.datasource.st.ip=1.1.1.1
ui.outputtype.snapshot=Snapshot
ui.outputtype.spreadsheet=Spreadsheet - xls
The file is a lot bigger than this an I want to j...
Hi,
Im using sun.jdbc.odbc.JdbcOdbcDriver to connect to an oracle database.I know I would be probably be better off using the thin driver but I want the app to work without specifying the db server name and port no.My connection string is like jdbc:odbc:DSN.
The queries that I execute in my application may return millons of rows.All th...
When writing a Java program, do I have influence on how the CPU will utilize its cache to store my data? For example, if I have an array that is accessed a lot, does it help if it's small enough to fit in one cache line (typically 128 byte on a 64-bit machine)? What if I keep a much used object within that limit, can I expect the memory ...