OutOfMemoryError when trying to compile a sqlj file
I get the following error when compiling a sqlj file:
[Translating]
[Reading file test]
unexpected error occurred...
java.lang.OutOfMemoryError:
at java.util.zip.ZipFile.readCEN(ZipFile.java:189)
at java.util.zip.ZipFile.<init>(ZipFile.java:61)
I was able to compile the sqlj file before, but for some reason now I am getting this error for any sqlj file.
I am using jdk1.1.7B.
Thanks in advance.
Sulochana
Changes are that it's not a memory problem (if it is, you could use -J-mxNNM to set memory size of the JavaVM that runs SQLJ).
Likely one of the following is the case:
(1) You have a classes.zip (from some JDK) or an lclasses11.zip in your CLASSPATH, or some other zip or jar file that is not needed but that confuses your Java environment. Make your CLASSPATH as small as possible - i.e. only containing . (for source), translator.zip (for SQLJ), and classes111.zip (for JDBC). In some cases (notably on NT) you might also have to reduce your PATH to the bare minimum (temporarily - you can use a .bat file to set this up).
(2) You are using JDK 1.2. You'll need SQLJ version 8.1.6 (due out soon) for this.
Similar Messages
-
Lookout 6.1 crashing when trying to compile .lks file
When trying to compile my .lks file in Lookout 6.1, Lookout crashes. From the event viewer I get the following information on the crash:
Event Type: Error
Event Source: Application Error
Event Category: None
Event ID: 1000
Date: 10/16/2007
Time: 1:19:38 PM
User: N/A
Computer: SCADA-PE-1
Description:
Faulting application cbl.exe, version 6.1.0.27, faulting module lkworks.dll, version 6.1.0.27, fault address 0x000e7377.
Data:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 63 62 6c ure cbl
0018: 2e 65 78 65 20 36 2e 31 .exe 6.1
0020: 2e 30 2e 32 37 20 69 6e .0.27 in
0028: 20 6c 6b 77 6f 72 6b 73 lkworks
0030: 2e 64 6c 6c 20 36 2e 31 .dll 6.1
0038: 2e 30 2e 32 37 20 61 74 .0.27 at
0040: 20 6f 66 66 73 65 74 20 offset
0048: 30 30 30 65 37 33 37 37 000e7377
0050: 0d 0a ..
Any assistance on correcting this problem would be GREATLY appreciated, since I will lose a bunch of work I have completed working with the l4p file.
Computer Info: Windows XP SP2 OS, Dell Optiplex GX745, 2.66GHz, 2GB RAM, Dual Core Processor
Thanks!
Jason PhillipsGeoff,
Go into your Lookout folder and look for the file "cbl.err". Open that file in notepad or wordpad and you should see where your errors are that are preventing your file from compiling.
I got so used to Lookout generating the errors when a compile failed and displaying them immediately that I forgot about checking this file.
Good luck!
Jason Phillips -
Trying to compile a .java file from another .java file
Hello,
I'm trying to compile a .java file from another .java file using Runtime.exec...
String c[]=new String[3];
c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
Process p=Runtime.exec(c);
If anyone can help me in atleast getting the command prompt when Runtime.exec("cmd.exe") is executed...that would be great...I tried out notepad.exe, calc, explorer instead of cmd.exe...all the commands display their respective windows..except cmd.exe...the command prompt doesnt appear...
Please help me ASAP....
Thanks for your help in advance...
Regards.
AKhila.try this. ur code will be compliled and will get .class file. but console won't appear. is it a must for u?
public class Exec{
public static void main(String a[]) throws Exception{
String c[]=new String[3];
c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
Process p=Runtime.getRuntime().exec(c);
// or Runtime.getRuntime().exec("javac Hello.java"); -
Error when trying to compile HTML help
I'm using RoboHelp 7.0 on Windows XP. All of the sudden, last
week, I start getting the following error when I try to compile
"Fatal Error: Unexpected error from Microsoft HTML compiler." I've
read the other posts regarding this error and deleted the .CPD file
multiple times and tried to compile again still with no success.
I've uninstalled and reinstalled multiple times and not had any
better results. The other author in my office can check the project
out of RoboSource and compile it fine. I have it on my local drive
when trying to compile.
I'd appreciate any ideas. It doesn't make sense that is
something in the project since my other author can compile it fine.
Thanks,
NitaHi, Nita,
Do you have any other RoboHelp projects that you can try
compiling? This may help to determine whether there's something
slightly askew about this particular project — sounds
unlikely if your colleague can compile without error — or
whether the problem lies in your RoboHelp installation.
I'd also recommend that you run MJ's Help Diagnostics,
available from the address below. This will verify that all the
HTML Help viewer and compiler components are properly installed and
registered on your machine.
http://helpware.net/downloads/index.htm#MJs
Pete -
I get the following error when trying to open a pdf file... '*pdf.part could not be saved, because the source file could not be read". I am able to open pdf files in IE and other programs.
I am encountering the same problem -- though with .qfx files from my bank. This worked fine in Firefox 31 ESR, but since upgrading to Firefox 33.0, I get the "<name>.qfx.part could not be saved, because the source file could not be read" when I attempt to download. (I should add that downloading PDF statements from the same site works fine, and that the qfx downloads work fine in IE and Chrome.)
I tried safe mode, it is still broken. Tried v34 beta, no luck. I reverted to version 31, it works again.
I guess I will stick with the older version until a solution is found...or just use an alternate browser to download my financial data. -
I get error 23132 when trying to open a M4v file
I use to be able to play m4v files on both iTunes and Quick Time 7. Suddenly, after upgrading iTunes, I get error 23132 when trying to open a M4v file. How do I fix it to view the files on QuickTime?
There is software you installed to work with your company's cloud service, update it or talk to the developer.
If it's Apple's software, then run through this list of fixes.
..Step by Step to fix your Mac -
When trying to convert a pdf file into a word doc I only get graphics but no text. What to do?
Hey hamsa142,
I think you are converting a scanned PDF to word.
You might need to run OCR first to make the text recognizable and then convert it to word.
Regards,
Anubha -
i get error:The operation couldn’t be completed. (com.apple.installer.pagecontroller error -1.) when trying to open a .pkg file downloaded from microsoft store. they said it needs to be .dmg file but how?
Student_245,
are you certain that you’ve completely downloaded the .pkg file — that the download didn’t end prematurely? -
Hi. I was trying to open some pdf files and got a message my adobe reader was deinstalled. I installed a new version of Adobe Reader for Mac and when trying to open a PDF file I am getting a message in a foreign language. Any suggestions?
Are you launching Pages from an icon in your Dock? Installing the update does not change the Dock icons & it does not remove the older versions. Go to your Applications folder & launch the new Pages from there.
-
Photoshop CS3 locks up when trying to open an EPS file
Hello everyone. I have a problem with CS3 locking up when trying to open an EPS file. The files were created in Quark 4.0. Not sure if it has anything to do with my new computer, which has Microsoft XP 64 bit. There's another computer in my office which has CS4 that can open these files. Please help..!! Thank you.
Try installing a PostScript printer on your XP64 system. For some reason this often seems to fix issues with EPS handling...
Mylenium -
When Trying to View an .mov File, PSE 8.0 Crashes... Help
When Trying to View an .mov File, PSE 8.0 Crashes... Help I was able to view these .mov files without any problem on ACDSee 2.5, any help will be appreciated to determine why .mov files crashe in the PSE 8.0 viewer....
Best Regards,
LarryThanks for the reply Larry. This is frustrating, and Adobe support is useless. It all works on my vista 64 bit system, but not on the 32 bit system. The odd thing is that I can open .mov files in Editor by going to File-Import from video, select "all file types" and choose a quicktime movie and it will open and run just fine. I can take stills off the movie. But if I try to open the same movie file with File-Open...I get an error message "Cannot open file......wrong file type" In organizer everything just crashes. I suspect there are some security issues in Vista that won't allow PSE to access Quicktime.
Too bad Windows 7 didn't fix the problem. I was starting to head that way. I will let you know if I find a solution.
Ron -
Using firefox browser v.4.0.1, a blank page comes up when trying to download the .torrent file(s). Previously it was working. When the "Download" button was pressed, it used to ask for the location where the .torrent files is to be saved. But now on pressing the "Download" button, a blank page comes up.I do not know when the firefox browser was updated to 4.0.1. (as it is configured to automatically update itself). I tried to see the debugging information in "Java Console", "Error Console", "Web Console", "Page Info" under the Tools option, but I can't make sense out of it. Kindly help.
If you remove the mimeTypes.rdf file then all current download actions should be removed and Firefox should ask what to do.<br />
You can still check if there is an action for such files in Tools > Options > Applications
*http://kb.mozillazine.org/File_types_and_download_actions
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Logic Pro X trouble when trying to 'Prelisten' to REX2 files
I just upgraded from Logic Studio 9 to LPX (v10.0.3) and am having intermittent problems when trying to 'prelisten' to REX2 files in the 'All Files' tab of the Browser. Sometimes the REX2 files will 'prelisten' just fine and then LPX will give me an 'Initializing Core Audio' pop-up and then I can no longer 'prelisten' to any my REX2 files. So far I haven't been able to observe any consistent causes for this issue.
Machine specs: Early 2011 17" MBP, OSX 10.8.5, 8GB Ram, 500GB SSD...and I'm using the headphone jack as the main Output.
Anyone else getting this weird behavior with REX2 files in LPX?Yes. And a good way to test further would be to temporarily empty these two folders:
Macintosh HD/Library/Audio/Plug-Ins/Components
Macintosh HD/Users/YourUserName/Library/Audio/Plug-Ins/Components
Then open the same project and see if it still crashes. And then gradually restore items to those folders. -
RH 11 hangs when trying to compile parallel projects.
I'm using RH11, HTML Help. Help is compiled in automatic build environment using command prompt. RH hangs when trying to compile parallel projects in different sessions.
Hi Peter,
Thanks for the quick response. Here are a few more information:
We are using RH in a build server environment, not the UI, but the RHCL compiler directly. When RH is invoked, each compiler runs in its own process.
I would assume that command prompt compilation in a build server environment is fairly common in SW engineering.
I should also mention that this process worked perfectly fine with RH9. Since we upgraded to RH11 recently, the build generation process hangs directly after issuing the RH command prompt. The strange thing is that the hang-up occurs frequently, but not all the time. There are no error messages whatsoever that could give us a hint about the reason for this error.
We suspect that Adobe has changed their sign-in process because the process stops at such an early stage.
Any ideas?
Thanks! -
Getting error message Cannot Resolve Symbol when trying to compile a class
Hello All -
I am getting an error message cannot resolve symbol while trying to compile a java class that calls another java class in the same package. The called class compiles fine, but the calling class generates
the following error message:
D:\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes\cal>javac
ConnectionPool.java
ConnectionPool.java:158: cannot resolve symbol
symbol : class PooledConnection
location: class cal.ConnectionPool
private void addConnection(PooledConnection value) {
^
ConnectionPool.java:144: cannot resolve symbol
symbol : class PooledConnection
location: class cal.ConnectionPool
PooledConnection pcon = new PooledConnection(con);
^
ConnectionPool.java:144: cannot resolve symbol
symbol : class PooledConnection
location: class cal.ConnectionPool
PooledConnection pcon = new PooledConnection(con);
The code is listed as follows for PooledConnection.java (it compiles fine)
package cal;
import java.sql.*;
public class PooledConnection {
// Real JDBC Connection
private Connection connection = null;
// boolean flag used to determine if connection is in use
private boolean inuse = false;
// Constructor that takes the passed in JDBC Connection
// and stores it in the connection attribute.
public PooledConnection(Connection value) {
if ( value != null ) {
connection = value;
// Returns a reference to the JDBC Connection
public Connection getConnection() {
// get the JDBC Connection
return connection;
// Set the status of the PooledConnection.
public void setInUse(boolean value) {
inuse = value;
// Returns the current status of the PooledConnection.
public boolean inUse() {
return inuse;
// Close the real JDBC Connection
public void close() {
try {
connection.close();
catch (SQLException sqle) {
System.err.println(sqle.getMessage());
Now the code for ConnectionPool.java class that gives the cannot
resolve symbol error
package cal;
import java.sql.*;
import java.util.*;
public class ConnectionPool {
// JDBC Driver Name
private String driver = null;
// URL of database
private String url = null;
// Initial number of connections.
private int size = 0;
// Username
private String username = new String("");
// Password
private String password = new String("");
// Vector of JDBC Connections
private Vector pool = null;
public ConnectionPool() {
// Set the value of the JDBC Driver
public void setDriver(String value) {
if ( value != null ) {
driver = value;
// Get the value of the JDBC Driver
public String getDriver() {
return driver;
// Set the URL Pointing to the Datasource
public void setURL(String value ) {
if ( value != null ) {
url = value;
// Get the URL Pointing to the Datasource
public String getURL() {
return url;
// Set the initial number of connections
public void setSize(int value) {
if ( value > 1 ) {
size = value;
// Get the initial number of connections
public int getSize() {
return size;
// Set the username
public void setUsername(String value) {
if ( value != null ) {
username = value;
// Get the username
public String getUserName() {
return username;
// Set the password
public void setPassword(String value) {
if ( value != null ) {
password = value;
// Get the password
public String getPassword() {
return password;
// Creates and returns a connection
private Connection createConnection() throws Exception {
Connection con = null;
// Create a Connection
con = DriverManager.getConnection(url,
username, password);
return con;
// Initialize the pool
public synchronized void initializePool() throws Exception {
// Check our initial values
if ( driver == null ) {
throw new Exception("No Driver Name Specified!");
if ( url == null ) {
throw new Exception("No URL Specified!");
if ( size < 1 ) {
throw new Exception("Pool size is less than 1!");
// Create the Connections
try {
// Load the Driver class file
Class.forName(driver);
// Create Connections based on the size member
for ( int x = 0; x < size; x++ ) {
Connection con = createConnection();
if ( con != null ) {
// Create a PooledConnection to encapsulate the
// real JDBC Connection
PooledConnection pcon = new PooledConnection(con);
// Add the Connection to the pool.
addConnection(pcon);
catch (Exception e) {
System.err.println(e.getMessage());
throw new Exception(e.getMessage());
// Adds the PooledConnection to the pool
private void addConnection(PooledConnection value) {
// If the pool is null, create a new vector
// with the initial size of "size"
if ( pool == null ) {
pool = new Vector(size);
// Add the PooledConnection Object to the vector
pool.addElement(value);
public synchronized void releaseConnection(Connection con) {
// find the PooledConnection Object
for ( int x = 0; x < pool.size(); x++ ) {
PooledConnection pcon =
(PooledConnection)pool.elementAt(x);
// Check for correct Connection
if ( pcon.getConnection() == con ) {
System.err.println("Releasing Connection " + x);
// Set its inuse attribute to false, which
// releases it for use
pcon.setInUse(false);
break;
// Find an available connection
public synchronized Connection getConnection()
throws Exception {
PooledConnection pcon = null;
// find a connection not in use
for ( int x = 0; x < pool.size(); x++ ) {
pcon = (PooledConnection)pool.elementAt(x);
// Check to see if the Connection is in use
if ( pcon.inUse() == false ) {
// Mark it as in use
pcon.setInUse(true);
// return the JDBC Connection stored in the
// PooledConnection object
return pcon.getConnection();
// Could not find a free connection,
// create and add a new one
try {
// Create a new JDBC Connection
Connection con = createConnection();
// Create a new PooledConnection, passing it the JDBC
// Connection
pcon = new PooledConnection(con);
// Mark the connection as in use
pcon.setInUse(true);
// Add the new PooledConnection object to the pool
pool.addElement(pcon);
catch (Exception e) {
System.err.println(e.getMessage());
throw new Exception(e.getMessage());
// return the new Connection
return pcon.getConnection();
// When shutting down the pool, you need to first empty it.
public synchronized void emptyPool() {
// Iterate over the entire pool closing the
// JDBC Connections.
for ( int x = 0; x < pool.size(); x++ ) {
System.err.println("Closing JDBC Connection " + x);
PooledConnection pcon =
(PooledConnection)pool.elementAt(x);
// If the PooledConnection is not in use, close it
if ( pcon.inUse() == false ) {
pcon.close();
else {
// If it is still in use, sleep for 30 seconds and
// force close.
try {
java.lang.Thread.sleep(30000);
pcon.close();
catch (InterruptedException ie) {
System.err.println(ie.getMessage());
I am using Sun JDK Version 1.3.0_02" and Apache/Tomcat 4.0. Both the calling and the called class are in the same directory.
Any help would be greatly appreciated.
tnx..
addiIs ConnectionPool in this "cal" package as well as PooledConnection? From the directory you are compiling from it appears that it is. If it is, then you are compiling it incorrectly. To compile ConnectionPool (and PooledConnection similarly), you must change the current directory to the one that contains cal and type
javac cal/ConnectionPool.
Maybe you are looking for
-
Creation of Sales Order through EDI
Hi Can anybody explain in detail the configuration steps involved in creating the sales order through EDI. If possible with screen shots. Points will be rewarded. Thanking you chan
-
How to draw line of best fit?
Hey all, I am trying to draw a line of best fit with the scattered points being displayed as well. I have attached my VI below and tried all sorts of methods, but to no avail. I am aware that there is a 'liner fit.vi' which I tried, but it did not gi
-
sometimes , the time capsule is not able to connect and it take a few min. to connect again , even using the airport utilities cannot connect , it shows like is out of the range , when is connect to the line , also cannot use using the new ipad, iph
-
Making iphoto default photo program
iphoto used to work fine, I would log into facebook, myspace, my blog, etc and choose to upload file, and it would bring up my photos in iphoto. NOW, it brings up photobooth. Well, I have no photos in photobooth, and I have no NO clue how to make it
-
Access Connections - Autostart Programs - Always Twice
Hi, I'm using AC for automatically starting programs (Outlook, Firefox) in my work environment. It's done by a cmd file that works great. But: It really often happens (maybe always), that the cmd file is beeing executed twice, so I'm seeing two windo