Breaking News
Home / Java / Java Issues (page 2)

Java Issues

java.lang.OutOfMemoryError: nativeGetNewTLA

Exception 2011-11-22 13:07:43,988[IncomingMailProcessor]ERROR IncomingMailProcessor -Error while processing mailjavax.ejb.EJBException: EJB Exception: : java.lang.OutOfMemoryError: nativeGetNewTLA        at sun.reflect.UTF8.encode(UTF8.java:18)        at sun.reflect.ClassFileAssembler.emitConstantPoolUTF8(ClassFileAssembler.java:85)        at sun.reflect.AccessorGenerator.emitBoxingContantPoolEntries(AccessorGenerator.java:326)        at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:337)        at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)        at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:301)        at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1191)        at java.io.ObjectStreamClass.access$1300(ObjectStreamClass.java:47)        at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:347)        at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)        at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:253)        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1015)        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1337)        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1309)        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1252)        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1057)        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)<!

Read More »

Warning – sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release

Issue I am using Base64 Decoder from JDK 1.6.x, the program runs fine but when I compile my the application it gives the following warnings: Compiling 35 source files to /home/infuze/service/projects/infuze/build/classes    [javac] /home/local/service/projects/infuze/src/java/com/test/service/subscription/workflow/SubscriptionUploadWorkflow.java:11: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release    [javac] import sun.misc.BASE64Decoder;    …

Read More »

JDBC – link failure CommunicationsException

Exception Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.      at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)     at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:344)     at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2333)     at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2370)     at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2154)     at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)     at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)     <!

Read More »

java.sql.SQLException: Parameter index out of range

Issue Caused by: java.sql.SQLException: Parameter index out of range (0 < 1 ).     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)<!

Read More »
Advertisment ad adsense adlogger