• Can't get a Writer while an OutputStream is already in use

    By John Q Parker 1 decade ago

     

    So now I get no compiler errors, but when I try to run code that was working perfectly, I suddenly started to get this:

    [0BE8:000A-1018] 01/22/2013 11:50:37 AM  HTTP JVM: java.lang.NoClassDefFoundError: org/openntf/javacharts/Common
    
    [0BE8:000A-1018] 01/22/2013 11:50:37 AM  HTTP JVM: com.ibm.xsp.webapp.FacesServlet$ExtendedServletException: java.lang.IllegalStateException: Can't get a Writer while an OutputStream is already in use
    
    [0BE8:000A-1018] 01/22/2013 11:50:37 AM  HTTP JVM: CLFAD0134E: Exception processing XPage request. For more detailed information, please consult error-log-0.xml located in C:/Domino/data/domino/workspace/logs
    

    Any suggestions? I will look in the logs but I find there is seldom any useful info there.

    Thanks

    • This may be because of Java design element

      By Naveen Maurya 1 decade ago

      The error "java.lang.NoClassDefFoundError: org/openntf/javacharts/Common" indicates that it cannot find the class "org.openntf.javacharts.Common". Just check whether it is there in your database.

       

      Also I feel that this is an issue of the new Java design element (from 8.5.3) which I used in Java Charts v1.3. In previous versions I used to put the java files in "WEB-INF/src" but incorporating these files in your database was a bit cumbersome. Searching on Google I got this link (http://dontpanic82.blogspot.com/2011/12/classnotfoundexception-with-new-java.html) where the developer is having similar issues.

       

      You can put the Java files in "WEB-INF/src" and check if it resolves your problem.

       

      Regards,

      Naveen

    • Did the suggestion work?

      By Naveen Maurya 1 decade ago

      Did you try to put the files in Code/Java section inside "WEB-INF/src" folder? Did it work?

      Regards,

      Naveen