java

Problems with class loading during deserialization of type from another assembly

There are two assemblies: 1) Assembly containing serializer. This is a place from where serialization and deserialization starts. 2) Assembly containing serialized types. This is a place which is calling serializer from 1st assembly. The idea of serializer in assembly1 is simple. It has two methods which are used for conversions of objec...

JAX-WS client in websphere with custom ssl socket factory

I have JAX-WS generate client proxys that need to connect using HTTPS. The certificate handling needs to be custom since we store the certs in a database instead. I have a working version for the SUN JAXWS implementation, but now I need to have the same client code working in WebSphere 7.0. Unfortunately the JAX-WS standard is a little...

Can I create server-side Java classes, OR mapping, and client-side AS classes from a single model description?

I have a Java server application and a Flex client application. For my data model, I have typical objects, like User etc., that are basically the same in the database, the server-side Java code and the client-side AS code. I. e., the public fields of my AS and Java classes are named identically, and have the same types and values as the ...

Formula in a database row - Java

Either this requirement is weird or i should be confusing myself too much I have a rule table with 30 columns. Every row from a feed file is compared against some or all conditions based on the type of feed. The domain is banking and the application is for loan reporting (say, reporting the amount of total secured loans and unsecured loa...

Java: De-deprecated-ing Tools

Once a method is marked as deprecated, are there any tools which replace these methods with non-deprecated workarounds ? ...

java project

I'm currently working on a java project which uses Tibco rendezvous control. I have the tibrvj.jar file on my build path. But I'm not able to see the classes which are there in the package "com.tibco.tibrv". This package is in the jar which is on my build path. When I try to open the class in that package , the message displayed on clas...

Reliable File.renameTo() alternative on Windows?

Java's File.renameTo() is problematic, especially on Windows, it seems. As the API documentation says, Many aspects of the behavior of this method are inherently platform-dependent: The rename operation might not be able to move a file from one filesystem to another, it might not be atomic, and it might not succeed if a f...

Java Heap Space (CMS with huge files)

EDIT: Got the directory to live. Now there's another issue in sight: The files in the storage are stored with their DB id as a prefix to their file names. Of course I don't want the users to see those. Is there a way to combine the response.redirect and the header setting für filename and size? best, A Hi again, new approach...

Java Reflection isArray() always false

Hey anyone, I got a question about Java Reflections: I have to checkout, if a certain field of a class is an array. But my problem is: If i run isArray() on the attribute of the class directly, it works. But if I use it in the way below, it won"t work. I guess because the "real" array is in this Field class? Any idea how i get it to work...

How to decrypt a data using rsa privatekey

I am using JAVA My friend uses SYMBIAN I and my friend have same rsa modulus. If I encrypt the data using public key then my friend is able to decrypt the same. But if my friend encrypt the data with public key then I am not able to decrypt the data. I got an error as "Data must start with zero " public static byte[] encrypt(byte[] enc...

setting classpath for java classes(jar file) in XUL, to access via javascript.

I am implementing firefox extension using XUL. I have set of java classes that is zipped as jar which needs to be accessed through javascript. If I copy my jar into jre's lib/ext then javascript will be able to invoke my java classes. If I remove from ext and package this jar in xpi, Javascript is unable to find the classpath for my ...

Web site login in Java + Google App Engine

Hi, I am new to web programming, coming from a video game development background (c++), and am really starting to feel information overload. There are so many competing libraries which all pick something they don't like in some other library, and build an entirely new way of doing the same thing! I am sure there there are good reasons...

Axis2 always receives null parameters even if SOAP request is sent correctly?

UPDATE: I HAVE SOLVED THIS PROBLEM NOW - PLEASE SCROLL TO BOTTOM FOR INFORMATION ABOUT FIX Hi guys, I have a web-service written in Java, hosted on an Axis2 / Tomcat / Apache server. My client software is written in C#. I have had a few irritating problems with the way java2wsdl generates the wsdl file, which did cause me a few headac...

What is the easiest way to call a Windows kernel function from Java?

While searching for how to do this, I found some vague discussion about different options, like JNI vs JNA, but not much in the way of concrete examples. Context: if Java's File.renameTo() cannot do it's job (for whatever reason; it is a little problematic), I'd like to fall back to directly using this native Windows function, which is ...

jsp link does not display

i am working on RAD and have created a jsp page....i want to navigayte to this jsp page from a previously created page....so...i added a link to the previous page..but the link does not get displayed ...

Best practice for computing operation on consecutive records of a database: SQL or Java ?

For instance, I would like to compute the time elapsed between 2 events from the following table: CREATE TABLE Events (_ID INTEGER PRIMARY KEY, type INTEGER, time INTEGER) My question is should I compute this difference with SQL or with java code ? Actually, this does not seem to be easy in SQL while traversing the table in java and p...

Best cross-language analyzer to use with lucene index

Hello, I'm looking for feedback on which analyzer to use with an index that has documents from multiple languages. Currently I am using the simpleanalyzer, as it seems to handle the broadest amount of languages. Most of the documents to be indexed will be english, but there will be the occasional double-byte language indexed as well. A...

Getting started with Spring + BlazeDS integration. Hello World wanted.

I'm trying to get my hands a small Spring + BlazeDS integration "Hello World"-ish type of sample/tutorial to see the basic, minimum configuration required for using the Spring & BlazeDS integration available from http://www.springsource.org/spring-flex The download I got came with all these test drive samples, but I can't make freakin' ...

When using Spring Web Flow 1, how do I add an object to a list in a bean?

I have a a web flow where I need to capture data on one of the screens. This data is stored in an object which will be held in a list in the bean. On submitting the page I want to be able to create an object, and add it to the list in the bean. Is this possible? Thanks ...

Using JSTL within JSP Pages in Struts based web app

I have a Struts 1.2 based Web App which uses lot of scriptlet code in the JSP page, I wish to clean up the code by using JSTL.The Servlet Specification Level: 2.3 and JSP Specification Level: 1.2. I am using WSAD 5.1. I tried using <c:if></c:if> tag, but I get the following error on building the project. "JSP Translate: unable to load i...