java.lang.NoSuchMethodError: java.io.StringWriter.append(Ljava/lang/CharSequence Ljava/io/StringWriter;

Coderanch | anish reddy | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    facing problem while executing java program

    Coderanch | 8 years ago | anish reddy
    java.lang.NoSuchMethodError: java.io.StringWriter.append(Ljava/lang/CharSequence Ljava/io/StringWriter;
  2. 0

    facing problem while trying to access db

    Coderanch | 8 years ago | anish reddy
    java.lang.NoSuchMethodError: java.io.StringWriter.append(Ljava/lang/CharSequence;)Ljava/io/StringWriter;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      java.io.StringWriter.append(Ljava/lang/CharSequence Ljava/io/StringWriter;

      at javax.persistence.Persistence.createErrorMessage()
    2. JavaEE 7
      Persistence.createEntityManagerFactory
      1. javax.persistence.Persistence.createErrorMessage(Persistence.java:258)
      2. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:120)
      3. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
      3 frames
    3. org.an
      StudentInst.main
      1. org.an.StudentInst.main(StudentInst.java:14)
      1 frame