When opening a large heap file, the following error occurs.
java.lang.OutOfMemoryError: Java Heap space
at com.ibm.jinwoo.heap.HeapInfo.readHAX(HeapInfo.java: 8319)
...
Solution
It would be resolved by increasing the memory for the Heap Analyzer by the following command.
java -Xmx1024m - jar ha454.jar
if it is not enough, you can try to adjust to -Xmx2048m or -Xmx4096m
Showing posts with label Resolved. Show all posts
Showing posts with label Resolved. Show all posts
Friday, March 21, 2014
Saturday, June 29, 2013
Java compiler level does not match the version of the installed Java project facet.
Created a dynamic web project and set GlassFish 4.0 as the testing server. The following error occured:
Java compiler level does not match the version of the installed Java project facet.
Solution:
1. Right click and choose Quick Fix
2. Change Java compiler level to 1.7
3. Done!
Java compiler level does not match the version of the installed Java project facet.
Solution:
1. Right click and choose Quick Fix
2. Change Java compiler level to 1.7
3. Done!
[RESOLVED] java.lang.ClassNotFoundException org.springframework.web.servlet.DispatcherServlet Spring MVC3 Maven Eclipse
The following error occurs when deploying app to the testing machine, using Eclipse + Spring MVC 3 + Maven.
java.lang.ClassNotFoundException org.springframework.web.servlet.DispatcherServlet
Solution:
1. Right Click the project -> Properties
2. Go to Deployment Assembly
3. Click Add
4. Select Java Build Path Entries
5. Click "Maven Dependencies"
6. Click OK
7. Done and deploy again without error.
java.lang.ClassNotFoundException org.springframework.web.servlet.DispatcherServlet
Solution:
1. Right Click the project -> Properties
2. Go to Deployment Assembly
3. Click Add
4. Select Java Build Path Entries
5. Click "Maven Dependencies"
6. Click OK
7. Done and deploy again without error.
Sunday, June 16, 2013
[RESOLVED] org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
Tried to run some jsp pages in eclipse with Glassfish 4 server. The following error occurs:
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
Solution:
You have to choose jdk when you are configure the server runtime.
HTTP Status 500 - Internal Server Error
GlassFish Server Open Source Edition 4.0
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
Solution:
You have to choose jdk when you are configure the server runtime.
HTTP Status 500 - Internal Server Error
GlassFish Server Open Source Edition 4.0
Tuesday, July 24, 2012
Resolved: Cannot Google Calendar API
When calling the Google Calendar API via Java, the following error may occured.
錯誤:redirect_uri_mismatch
The redirect URI in the request: http://localhost:54973/Callback did not match a registered redirect URI
Resolution:
Go to the following link:https://code.google.com/apis/console/
For Windows application, Create another client ID -> Installed Application -> Other
Thursday, July 12, 2012
[RESOLVED] MySQL Workbench installation
No response after clicking the MySQL Workbench program.
Resolve:
Make sure the following components are installed in your machine.
1. Microsoft .NET Framework 4 Client Profile (Web Installer)
http://www.microsoft.com/en-us/download/details.aspx?id=17113
2. Microsoft Visual C++ 2010 Redistributable Package (x86)
http://www.microsoft.com/en-us/download/details.aspx?id=5555

3. In some cases, Windows Imaging Component is required
http://www.microsoft.com/en-us/download/details.aspx?id=32
Reference:
Download the MySQL workbench
http://dev.mysql.com/downloads/workbench/
Keywords:
Resolve:
Make sure the following components are installed in your machine.
1. Microsoft .NET Framework 4 Client Profile (Web Installer)
http://www.microsoft.com/en-us/download/details.aspx?id=17113
2. Microsoft Visual C++ 2010 Redistributable Package (x86)
http://www.microsoft.com/en-us/download/details.aspx?id=5555

3. In some cases, Windows Imaging Component is required
http://www.microsoft.com/en-us/download/details.aspx?id=32
Reference:
Download the MySQL workbench
http://dev.mysql.com/downloads/workbench/
Keywords:
MSSQL Studio, toad
Wednesday, July 4, 2012
java.lang.UnsupportedClassVersionError: Bad version number in .class file
This is due to the incorrect Java Version for the complication & execution.
Resolution:
Download the correct Java Version for the complication.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Bad version number in .class file org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.UnsupportedClassVersionError: Bad version number in .class file java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1325) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1573) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Wednesday, June 27, 2012
[Resolved] WARNING: getRGBImage returned NULL PDFToImage: Rendered Blank Image
Problem:
System returns the following message when converting a PDF file to Image using PDFBox,
Jun 27, 2012 3:45:07 PM org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap getRGBImage
SEVERE: Something went wrong ... the pixelmap doesn't contain any data.
Writing: output1.jpg
Jun 27, 2012 3:45:07 PM org.apache.pdfbox.util.operator.pagedrawer.Invoke process
WARNING: getRGBImage returned NULL
result: true
A blanked image will be generated in this case.
Resolution
1. You may try to add Java Advanced Image library I/O Tools to your project for the fix.
http://www.oracle.com/technetwork/java/current-142188.html
2. Include the JAR jai_imageio.jar to your project and execute the project again.
3. Though there is still an WARNING message of EOC marker not found. Codestream is corrupted. shown in the output console, the image is generated successfully.
The usage of PDFBox can be found in the following URL:
http://yp-javadev.blogspot.hk/2012/06/useful-api-converting-pdf-to-image.html
System returns the following message when converting a PDF file to Image using PDFBox,
Jun 27, 2012 3:45:07 PM org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap getRGBImage
SEVERE: Something went wrong ... the pixelmap doesn't contain any data.
Writing: output1.jpg
Jun 27, 2012 3:45:07 PM org.apache.pdfbox.util.operator.pagedrawer.Invoke process
WARNING: getRGBImage returned NULL
result: true
A blanked image will be generated in this case.
Resolution
1. You may try to add Java Advanced Image library I/O Tools to your project for the fix.
http://www.oracle.com/technetwork/java/current-142188.html
3. Though there is still an WARNING message of EOC marker not found. Codestream is corrupted. shown in the output console, the image is generated successfully.
The usage of PDFBox can be found in the following URL:
http://yp-javadev.blogspot.hk/2012/06/useful-api-converting-pdf-to-image.html
Monday, June 18, 2012
[RESOLVED] A Java Runtime Environment (JRE) or Java Development Toolkit (JDK) must be available in order to run Eclipse
A Java Runtime Environment (JRE) or Java Development Toolkit (JDK) must be available in order to run Eclipse.
Solution:
Java must be installed in your Windows in order to run eclipse.
http://java.com/en/download/index.jsp
After installed Java, set the JAVA PATH in System Variable.
Solution:
Java must be installed in your Windows in order to run eclipse.
http://java.com/en/download/index.jsp
After installed Java, set the JAVA PATH in System Variable.
Thursday, April 12, 2012
[Resolved] Download CSV with UTF-8 handling
System generates garbage characters or question marks ??? when exporting a CSV file with Chinese character, Japanese Character..
It is okay to view the Chinese / Japanese character in notepad, but cannot be shown correctly in Excel.
It is because Excel does not handle the unicode well.
Solution
It can be solved by adding addition header (BOM, Byte order Mask) to the downloaded CSV file.
response.setContentType("application/vnd.ms-excel:UTF-8");
response.setHeader("Content-Disposition", "attachment; filename=myOutputFile.csv");
// Excel does not recongize the UTF-8, add additional header (BOM) for excel
OutputStream outputStream = response.getOutputStream();
outputStream.write(0xEF);
outputStream.write(0xBB);
outputStream.write(0xBF);
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
// Your method that generate the CSV content
writeSth(writer);
writer.flush();
writer.close();
It is okay to view the Chinese / Japanese character in notepad, but cannot be shown correctly in Excel.
It is because Excel does not handle the unicode well.
Solution
It can be solved by adding addition header (BOM, Byte order Mask) to the downloaded CSV file.
response.setContentType("application/vnd.ms-excel:UTF-8");
response.setHeader("Content-Disposition", "attachment; filename=myOutputFile.csv");
// Excel does not recongize the UTF-8, add additional header (BOM) for excel
OutputStream outputStream = response.getOutputStream();
outputStream.write(0xEF);
outputStream.write(0xBB);
outputStream.write(0xBF);
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
// Your method that generate the CSV content
writeSth(writer);
writer.flush();
writer.close();
Thursday, February 16, 2012
The project was not built due to "Could not delete 'XXXXXX'". Fix the problem, then try refreshing this project and building it since it may be inconsistent.
The project was not built due to
"Could not delete 'XXXXXX'". Fix the problem, then try refreshing this project and building it since it may be inconsistent.
This problem is due to the cache of the old class file in eclipse, to clean the cache..
1. Project -> Clean
2. Clean all projects
3. The error is gone.
This problem is due to the cache of the old class file in eclipse, to clean the cache..
1. Project -> Clean
2. Clean all projects
3. The error is gone.
Subscribe to:
Posts (Atom)




























