I'm using the Java Cryptography API with AES to encrypt short strings of text for use in user identifying cookies.
It's my understanding that some encryption algorithms are not secure when used with small amounts of text when compared to the size of the key. What do I need to know in order to make sure that I am not leaving my data inse...
Applications on Google App Engine must have web requests that return response data within 30 seconds. When this time is exceeded, a DeadlineExceededException exception is thrown:
/time.jsp
java.lang.ClassCastException: com.google.apphosting.api.DeadlineExceededException cannot be cast to javax.servlet.ServletException
at org.apache....
in asp there's request.form and request.queryString attributes, but in java it seems like we have only one collection, which can be accessed via request.getParamaterMap, getParametersNames, getParameterValues, etc...
is there some way to tell which values have been posted nd which ones have been specified in the url?
--
ps:
what I'm...
Hello!
I wonder, how are systems for fulltext search implemented, to be able to query
millions of entries very fast?
Please note: I'm not talking about systems which tokenize the content by separating it at whitespaces, but about system which are able
to query even parts from the middle of tokens (which is a real challange).
Background...
I am using Spring to manage my DAO & Services. And JSF for UI. I want to use dependency injection in my JSF backing-bean. There is an article that explained how I can do that.
But I have two separate projects: one for Service and one for UI. The Spring configuration file is located in Service project.
How can I connect both project...
Is there an easy way to rearrange imports in all *.java files in a project?
so for example:
import java.util.Calendar;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
would become
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import j...
Here's the encryption portion of my code. It compiles fine but fails with that exception at runtime:
import java.util.Random;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;
...
byte[] salt = new byte[8];
Ra...
Hi,
I'm looking for a RTSP Java library, but I didn't find anything.
Can someone advice me a Java library to handle RTSP?
Thanks
...
Hi,
I have an application that calls a web service (axis based) to get a response in the following format:
<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<axis2ns394:ServiceLevelDetailsResponse xmlns:axis2ns394="urn:myco:com:mapping:service:3.0">
<ns1:e...
I had assumed the maximum was 9 but after some experimentation I know it is not. The javadocs for Pattern and Matcher to not list a maximum.
...
I want to create a webservice that allows users to enter the longitude and latitude for a particular building. Buildings will belong to a broader category called a Region. If a specific building does not exist in a region the user could add the longitude and latitude data through the webservice. Similarly if a user finds data to be in...
I'm really disappointed with just about everything I find online that tries to teach the Spring Framework. This is by far the best tutorial I have found yet, because it clearly teaches how to build a simple Web application with Spring:
http://maestric.com/en/doc/java/spring
I need a few more like this to get started, but most of the an...
Alright, so here is a breakdown of my situation.
I just finished my first year of 'computer science' in Highschool, learning the fabulous language, Vb.net (get your laughter out now)
I am going into AP computer science next year. We will be working with Java.
I have tons of free time this summer and I would like to improve my programmi...
I'm trying to build a JBoss service that should be started automatically, each time the server is initiated.
I've got the following class structure for my service:
public interface CumbiaXPMServiceMBean extends org.jboss.system.ServiceMBean
public class CumbiaXPMService extends org.jboss.system.ServiceMBeanSupport implements CumbiaXPMS...
Has anyone seen JavaMail not sending proper MimeMessages to an SMTP server, depending on how the JVM in started? At the end of the day, I can't send JavaMail SMTP messages with Subject: or From: fields, and it appears other headers are missing, only when running the app as a war.
The web project is built with Maven and I'm testing send...
The layout of the components in the project I'm working on didn't look correct, I suspect there's a bug in Swing. Basically, what appears to be happening is that the weightx and weighty proportions aren't being adhered to when the cells being laid out have varying minimum sizes and/or preferred sizes. I created a sample program to demo...
You can see in the following posts
http://forums.sun.com/thread.jspa?threadID=603815
http://forums.devshed.com/ldap-programming-76/active-directory-services-using-java-api-89586.html
an example of accessing LDAP using the InitialLdapContext class in Java. This requires a login and a password to be passed in. (Even though the service ac...
Hello.
I would like to know if anyone can recommend a good library to generate java webservices stubs as clients.
Currently I'm using a product which has embedded a generator which only needs the WSDL and then creates the needed classes and methods.
My problems is it throws warnings and doesn't create any method for some webservic...
I have a Java program that is calling C code through JNI that I'm attempting to run on Linux. The external code consists of two .so files: one for the JNI bindings (built with swig) and the other with the actual functions. I have the two libraries in the same directory and LD_LIBRARY_PATH is set correctly. ldd reports no problems when...
hi....i have added keyboard events....with robot class' object to write the key values on the notepad.....but as i press "a" it will interpret it as "1" and as so on...for all the keys...
when i m displaying the asci values for all the keys it will print accurate values like a-97,b-98 and so on....
why this happened please give some s...