I am getting OutOfMemoryError using XStream while converting Java to XML and writing to a file. Its happening at xstream.toXMl operation. I am able to write around 200 MB to the file with warnings in console saying that 700 mb heap used etc.. but after that, I get the error and the processing stops.
I am using XStream version 1.4.7 and Java 1.7.
Below is the code:
I tried doing the below to get rid of the error but did not work.
1).I tried adding XPP3 (from org.ogce) 1.1.6 and XMLPULL (from xmlpull) 22.214.171.124a maven dependencies
3). Changed xms and xmx in eclipse.ini to 1024m. Here's what my eclipse.ini looks like
4). Tried to use ObjectStream as you can see in the code above commented
5). Added run time arguments
6). Added run time argument
I am getting the below error talking to a https web service.
I am using spring's WebServiceTemplate and below's my xml configuration for it
I am able to hit the service from soapui but not from the sample java code I wrote. Should we have received some security certificates from the 3'rd party wsdl folks? I tried getting the server's certificate (Following this article - mkyong.com/webservices/jax-ws/…) and adding it to my jdk trust store but I am getting the below error now - org.springframework.ws.client.WebServiceTransportException: Precondition Failed 
Could some one please point me to why this is happening and how I can resolve this?
Ok..I found the class in spring-orm.jar. But have another question now. Looks like the below property is deprecated in hibernate 4's LocalSessionFactoryBean class
Currently I have my disopatcher servlet-xml as below and I am getting the error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/MyServlet-servlet.xml]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError: com.sybase.jdbc2.jdbc.SybDatabaseMetaData.supportsGetGeneratedKeys()Z
I am using Hibernate 4 and Spring 3.2. I am unable to find a jar which would find me org.springframework.orm.hibernate4.LocalSessionFactoryBean. Does anyone know if that class is supported with spring 3 and hibernate 4? If not, is there an alternative to it? Please advice
Thank you.. apparently.. they have decided that they do not want to put the user through the hassle of login (Since its a small application and user will be able to only view the data but not change any of it) but still want to implement security. IP based is the only thing I can think of. Do you guys have any other suggestions?
We want certain department in the company alone to access the application we are building. We are not providing any login functionality and one thing we thought about was by recognizing the IP address. Could you guys advice if this is the right approach or if there are any other approaches?