Date(mysql) - date(oracle 8i), java.lang.OutOfMemory
PLATFORM AND O/S VERSION: RedHat Linux 7.2, Kernel 2.4.9-21smp, Oracle 8.1.7.4
MIGRATION WORKBENCH VERSION: 9.2.0.1.2 (Windows 2000, ServicePack 2)
THIRD-PARTY DATABASE AND VERSION BEING MIGRATED: MySQL 3.23.41
Hi there,
I urgently need to migrate a mysql (3.23.41) database (7.1 GB) into Oracle 8i (8-1-7-4),
but faced a lot of problems during migration.(capturing went well):
1. ORA-01843: not a valid month
2. java.lang.OutOfMemoryError
For error no. 1:
Here comes a description of a suspicious source table(mysql), which has a 'datetime' (column: 'created')
in it:
mysql> desc analysisprocess;
-----------------------------------------------------------------------------------+
| Field | Type | Null | Key | Default | Extra |
-----------------------------------------------------------------------------------+
| analysisId | int(10) unsigned | | PRI | NULL | auto_increment |
| created | datetime | | | 0000-00-00 00:00:00 | |
| logic_name | varchar(40) | | | | |
| db | varchar(120) | YES | MUL | NULL | |
| db_version | varchar(40) | YES | | NULL | |
| db_file | varchar(120) | YES | | NULL | |
| program | varchar(80) | YES | | NULL | |
| program_version | varchar(40) | YES | | NULL | |
| program_file | varchar(80) | YES | | NULL | |
| parameters | varchar(80) | YES | | NULL | |
| module | varchar(80) | YES | | NULL | |
| module_version | varchar(40) | YES | | NULL | |
| gff_source | varchar(40) | YES | MUL | NULL | |
| gff_feature | varchar(40) | YES | MUL | NULL | |
-----------------------------------------------------------------------------------+
14 rows in set (0.00 sec)
I tried to map the 'date' datatype from mysql into the date datatype in oracle, but always
got the ora-01843 error.- How can I EXACTLY set 'NLS_DATE_FORMAT'/'NLS_DATE_LANGUAGE' to fit?
Or is there any other solution? (NLS_LANGUAGE is being initialized as 'AMERICAN')
For error no. 2:
I tried using Java 1.3.1 (which comes with omwb) and java 1.4.0_02.
RAM(on notebook running OMWB ): 256 MB; javaw -mx1024m.
Virtual Memory on machine running OMWB: 1024 MB.
Unfortunately, there was now success. What else can I do?
Is there any possibility to have a look at the generated sql (inserts etc.)
during migration?
Your help is highly appreciated. Thanks for your effort in advance.
Best Regards,
Dan
P.S.: I also tried to use Oracle 9i with 'date' to 'timestamp' mapping, but also got 'ora-01843'
error and additionaly:
'Failed to create default for Table :HOMO_SAPIENS_CORE_8_30.ANALYSISPROCESS; ORA-00907: missing right parenthesis'
Hi Dan,
For Error 1:
This is unusual behaviour. I will raise a bug against the product to have it investigated further but I have not encountered this before. To workaround
the problem, you can firstly migrate the database schema (without the data) by choosing the 'No' radio button in 'Step 3 of 4: Migrate Table data' in the
Migration Wizard. When the schema has successfully been migrated you can create SQL*Loader scripts for the table(s) you want to
migrate data for by select the table name in the Oracle Model UI in the Migration Workbench and choosing Object-Generate SQL*Loader Scripts from
the menu bar. To find out more about the offline data loading facility in the Migration Workbench please refer to the MySQL plugin reference guide.Note that
in the 'sql_load_script.bat' (which is one of the files generated by the Object-Generate SQL*Loader Scripts menu command, you can set your specific
requirements for NLS_DATE_FORMAT, NLS_TIMESTAMP, NLS_LANGUAGE etc.I think this will get you over the problem you are encountering at the
moment.
For Error 2:
Could you provide me with the error.log file that exists in your OMWB\Log directory please ? This may contain extra information about the cause of this
problem. Your virtual memory size etc. should be more than adequate. Also, is this problem happening at a particular point in the migration that you can
identify - e.g. on a particular table ? If so, perhaps you could provide me with the datails of the column types of this table, the number of rows of data
it contains etc. In the meantime, the solution to error 1 may actually be a workaround fot this problem too.
If you need any additional information on the above points, please don't hesitate to contact me.
Tom.
Similar Messages
-
Java.lang.OutOfMemory error while retrieving data from a large table
Hi,
i am trying to fetch data using "executeQuery()" into a ResultSet from the database. But since the data in that table is large. i am recieving "java.lang.OutOfMemory" Error. So, to resolve that, i have used "setMaxRows()" for my statement object. This resolved the error but i don't recieve the entire data. If i call "executeQuery()" again, i recieve the same data. I don't even know a filtering criterion where by i can filter the data for each "executeQuery()"..
How can i resolve this problem
Thanx in advance
--ChaitanyaEither use some criteria you develop related to one of the keys on the table or use some sort of record limiting method.
Note the method of limiting will vary related to the database you are using. You will have to look at the documentation.
For example I am told this will work in MySQL to get 200 records starting at record 100.
SELECT * FROM myTable ORDER BY whatever ASC LIMIT 100,200
Because you are running out of memroy I assume the table is large,
I am not sure what the impact of the above will have on performance because if in the above if the order by is not based on an index at the server level all the records will be selected and sorted before the records are limited.
I would make sure you have an appropriate index.
If you use the advanced search over the user forums using "resultset paging" and possibility the database you are using you should be able to get some ideas.
I hope this makes sense to you.
rykk -
Cannot start OC4J instance - after java.lang.OutOfMemory errors
Hi, I have successfully deployed an application (using Oracle Web Services, J2EE - EJB, TopLink ) to a new OC4J instance that we created. We use the OEM web site to manage the start/stop and deploy operations.
Then we tried to run simultaneously 10 clients....against the server app... ran ok for a while and after approx. 5 to 10 min... java.lang.OutOfMemory errors were being thrown at the client.
After a set of OutOfMemory errors, other clients received errors like the ones show below:
Errors from the top link log
2003.09.24 09:39:59.630--ClientSession(1337286)--Thread[ApplicationServerThread-6,5,main]--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.3 (Build 430)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Bigger type length than Maximum
INTERNAL EXCEPTION: java.sql.SQLException: Bigger type length than Maximum
ERROR CODE: 17412LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.3 (Build 430)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Bigger type length than Maximum
INTERNAL EXCEPTION: java.sql.SQLException: Bigger type length than Maximum
ERROR CODE: 17412
at oracle.toplink.exceptions.DatabaseException.sqlException(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
at oracle.toplink.threetier.ServerSession.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.selectOneRow(Unknown Source)
at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRowFromTable(Unknown Source)
at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRow(Unknown Source)
2003.09.24 09:40:02.365--ClientSession(1337286)--Thread[ApplicationServerThread-6,5,main]--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.3 (Build 430)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Refcursor value is invalid
INTERNAL EXCEPTION: java.sql.SQLException: Refcursor value is invalid
ERROR CODE: 17442LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.3 (Build 430)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Refcursor value is invalid
INTERNAL EXCEPTION: java.sql.SQLException: Refcursor value is invalid
ERROR CODE: 17442
at oracle.toplink.exceptions.DatabaseException.sqlException(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
at oracle.toplink.threetier.ServerSession.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.selectOneRow(Unknown Source)
at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRowFromTable(Unknown Source)
at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRow(Unknown Source)
at oracle.toplink.queryframework.ReadObjectQuery.execute(Unknown Source)
at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)
2003.09.24 09:40:03.553--ClientSession(6073931)--Thread[ApplicationServerThread-23,5,main]--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.3 (Build 430)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Protocol violation
INTERNAL EXCEPTION: java.sql.SQLException: Protocol violation
ERROR CODE: 17401LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.3 (Build 430)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Protocol violation
INTERNAL EXCEPTION: java.sql.SQLException: Protocol violation
ERROR CODE: 17401
at oracle.toplink.exceptions.DatabaseException.sqlException(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
at oracle.toplink.threetier.ServerSession.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
2003.09.24 09:41:15.173--ServerSession(3066938)--Thread[ApplicationServerThread-19,5,main]--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.3 (Build 430)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: ORA-01403: no data found
INTERNAL EXCEPTION: java.sql.SQLException: ORA-01403: no data found
ERROR CODE: 1403LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.3 (Build 430)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: ORA-01403: no data found
INTERNAL EXCEPTION: java.sql.SQLException: ORA-01403: no data found
ERROR CODE: 1403
at oracle.toplink.exceptions.DatabaseException.sqlException(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
at oracle.toplink.threetier.ServerSession.executeCall(Unknown Source)
Im not sure if this is due to a memory leak or something in my app ? Or does Oracle IAS / Toplink have any such issues for which any possible patches are available ?
Could anyone please direct me in the possible right direction !
Thanks,
KrishnaHi,
We have had this problem too, it only started after we deployed to production and got some load on our application server. We are using JRun as our application server.
We found that Macromedia (JRun) already addressed the issue in general - that if you get java.lang.OutOfMemory errors, then you need to increase the heap size.
Previously we had been using our own caching mechanism and never ran into this problem. Since we decided to go with TopLink (which has caching) we no longer use our own caching mechanism... but now we have this problem.
We have chosen to use FullIdentityMap for caching, but didn't think we would run out of memory in the JVM. Is there a suggested or minimum JVM memory requirement to run TopLink?
Thanks,
Aaron -
Weblogic 8.1 SP4 getting Java.lang.outofMemory exception
Dear experts,
We are running WL8.1 SP4 on our Solaris 5.9 Server.
We want to do MQ implementatin on this server and for the same some kernel parameters were changed.
now our system has below parameters in /etc/system:
set semsys:seminfo_semmsl=1000
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmseg=2048
set shmsys:shminfo_shmmni=2048
set semsys:seminfo_semmni=1024
set semsys:seminfo_semaem=16384
set semsys:seminfo_semmap=1026
set semsys:seminfo_semmns=16384
set semsys:seminfo_semopm=100
set semsys:seminfo_semmnu=16384
set semsys:seminfo_semume=256
set msgsys:msginfo_msgmni=50
set msgsys:msginfo_msgmap=1026
set msgsys:msginfo_msgmax=4096
set msgsys:msginfo_msgmnb=65535
set msgsys:msginfo_msgtql=4096
set msgsys:msginfo_msgssz=16
set msgsys:msginfo_msgseg=8192
set rlim_fd_cur=10000
set rlim_fd_max=10000
and below in /etc/profile:
ulimit -s unlimited
ulimit -d unlimited
but as soon as server was rebooted and we tried to start the weblogic we got java.lang.outofmemory exception.
details as below:
admin_trace:
java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:72)
at weblogic.servlet.internal.WebAppHelper.makeImplicitMapFromJars(WebAppHelper.java:479)
at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:5436)
at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:5253)
at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:545)
at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:496)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:637)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:619)
at weblogic.j2ee.J2EEApplicationContainer.prepareWebModule(J2EEApplicationContainer.java:3191)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1581)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
--------------- nested within: ------------------
weblogic.management.ManagementException: [Deployer:149233]An unexpected error was encountered during the deployment process. - with nested exception:
[java.lang.OutOfMemoryError]
at weblogic.management.deploy.slave.SlaveDeployer.convertThrowable(SlaveDeployer.java:1017)
at weblogic.management.deploy.slave.SlaveDeployer.access$500(SlaveDeployer.java:124)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2395)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
managed2_trace:
[java.lang.OutOfMemoryError].
java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:72)
at weblogic.servlet.internal.WebAppHelper.makeImplicitMapFromJars(WebAppHelper.java:479)
at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:5436)
at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:5253)
at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:545)
at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:496)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:637)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:619)
at weblogic.j2ee.J2EEApplicationContainer.prepareWebModule(J2EEApplicationContainer.java:3191)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1581)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:823)
at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDeployer.java:3029)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(SlaveDeployer.java:967)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:349)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------
weblogic.management.ManagementException: [Deployer:149233]An unexpected error was encountered during the deployment process. - with nested exception:
[java.lang.OutOfMemoryError]
at weblogic.management.deploy.slave.SlaveDeployer.convertThrowable(SlaveDeployer.java:1017)
at weblogic.management.deploy.slave.SlaveDeployer.access$500(SlaveDeployer.java:124)
at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDeployer.java:3034)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(SlaveDeployer.java:967)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:349)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
>
need help to identify what exactly went wrong and where.
ThanksHi,
As you are using WLS8.1 It means your JDK will be JDK1.4 and there is a Bug already available with JDK1.4 for the Same issue ... Please find the below link:
http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4705373 (For Sun JDK1.4)
AND
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6373059 (For Sun JDK 1.5.0_05)
Please try to switch to JRockit JDK.
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic (WebLogic Wonders Are Here) -
Unable to read big files into string object and java.lang.OutOfMemory Prob
Hi All,
I have an application that uses applet and servlet communication. On the client side I am reading an large xml file of 12MB size (using JFileChooser) and converting the file to an string object using below code. But I am getting java.lang.OutOfMemory on the client side . But the same below code works fine for small xml files which are less than 4MB sizes:
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF8"), 1024*12);
String s, s2 = new String();
while((s = in.readLine())!= null)
s2 += s + "\n";
I even tried below code but still java.lang.OutOfMemory is coming:
while (true)
int i = in.read();
if (i == -1)
break;
sb.append(i);
Please let me know what am I doing wrong here ...
Thanks & Regards,
Sony.Using a String is bad for the following reason:
When you initially create the String, it has a certain memory size (allocated length if you will). As you keep appending to this String, then memory reallocation will occur over and over, slowing your program down dramatically (ive seen with a 16k x 8 Char file taking 30 secs to read into memory using Strings in this way)
A Better way would be if you knew the number of characters in the XML file (Using some File size method for example) Then you can use a StringBuffer, which will pre allocate enough space (or try to, it may just be that you cannot create a string as large as you need). You can use toString() method to get the resultant in a String Object (the extra allocated space at the end of the Buffer will be removed)
StringBuffer strBuf = new StringBuffer(xxxx);
Where xx is the length (int). Assuming that you are only allowed to enter an int to the constructor then (platform depedant) an int is 2^31 at maximum (or whatever) which allows 2.14e9 characters, therefore an xml file being totally filed would allow a size of ~2048 MB to be read in.
Try it and see. -
Unable to read big files into string object & java.lang.OutOfMemory Problem
Hi All,
I have an application that uses applet and servlet communication. On the client side I am reading an large xml file of 12MB size (using JFileChooser) and converting the file to an string object using below code. But I am getting java.lang.OutOfMemory on the client side . But the same below code works fine for small xml files which are less than 4MB sizes:
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF8"), 1024*12);
String s, s2 = new String();
while((s = in.readLine())!= null)
s2 += s + "\n";
I even tried the below code but still java.lang.OutOfMemory is coming:
while (true)
int i = in.read();
if (i == -1)
break;
sb.append(i);
Please let me know what am I doing wrong here ...Hi,
I could avoid the java.lang.OutOfMemory error using below code. But using below code I could read small files of sizes less than 4MB
but with large files of 12 MB the below code just simply hangs and I am unable to print the string object namely 's'.
My purpose is to construct an String or StringBuffer object out the user uploaded xml file at the client side and pass that object to server for processing. So how can I construct such object avoid memory problem and increasing the performance of such operations.
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
byte[] b = new byte[in.available()];
in.read(b, 0, b.length);
String s = new String(b, 0, b.length);
in.close();
Thanks & Regards,
Sony. -
Why do I get a java.lang.OutOfMemory exception
Thanks, in advance, for you help.
I just wrote a fairly large program. Every time I run it, I get a java.lang.OutOfMemory exception. I have no idea how to debug my code. Why would I get such an exception and how would I debug it?put more debug statements
and see which line its giving that exception and see whether some where u have any line which is kind of looping or memory allocation .
As i havent seen ur code thats vague idea iam giving
java.lang.OutOfMemory exception is Thrown when the JVM cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.
hope this might help -
Sun identity manager - java.lang.OutOfMemory
Hi, I have one very interesting issue regarding JVM memory. I have one sun idm (version 7) application deployed in sun java web application server. I am facing JVM error - java.lang.OutOfMemory very frequently now days in production server. I am sharing you the details regarding configuration :
Their are 4 app servers - IDMAPP01 IDMAPP02 IDMAPP03 IDMAPP04
current total memory on each of the 4 app server 8 GB
memory allocated to JVM on each server 5 GB
os - solaris
admin task recon are performed only on instance - IDMAPP04
JVM setting is - -Xmx5g -Xms5g -Xmn1500m -XX:MaxPermSize=512m
Log file locations:
/var/opt/SUNWappserver/domain1/logs/vm.log
/var/opt/SUNWappserver/domain1/logs/gc.log
/opt/SUNWappserver/appserver/config/asadminenv.conf
/opt/SUNWappserver/appserver/config/asenv.conf
idm app deployment path:
/var/opt/SUNWappserver/domain1/applications/j2ee-modules/idm
logpath
/var/opt/SUNWappserver/domain1/logs/
Whenever I am getting this issue, we are restarting all the 4 server instances which is impacting business as this is prod server.
Can anyone suggest how can I solve this issue. (please suggest good performance tuning tips without increasing physical memory).
Regards,
Jimmy886672 wrote:
Hi, I have one very interesting issue regarding JVM memory. I have one sun idm (version 7) application deployed in sun java web application server. I am facing JVM error - java.lang.OutOfMemory very frequently now days in production server. I am sharing you the details regarding configuration :
Their are 4 app servers - IDMAPP01 IDMAPP02 IDMAPP03 IDMAPP04
current total memory on each of the 4 app server 8 GB
memory allocated to JVM on each server 5 GB
what else is running on those servers and how much memory are those applications consuming?
os - solaris
admin task recon are performed only on instance - IDMAPP04
JVM setting is - -Xmx5g -Xms5g -Xmn1500m -XX:MaxPermSize=512mIf IDMAPP04 is doing different things from the other servers, then they should be configured differently. What garbage collector are you using?
>
Log file locations:
/var/opt/SUNWappserver/domain1/logs/vm.log
/var/opt/SUNWappserver/domain1/logs/gc.log
/opt/SUNWappserver/appserver/config/asadminenv.conf
/opt/SUNWappserver/appserver/config/asenv.confYou may want to have a loog at the gc.log file provided you have actually enabled gc logging which you should at least until you have resolved your memory problems.
>
idm app deployment path:
/var/opt/SUNWappserver/domain1/applications/j2ee-modules/idm
logpath
/var/opt/SUNWappserver/domain1/logs/
Whenever I am getting this issue, we are restarting all the 4 server instances which is impacting business as this is prod server.Why? The whole idea behind running recon on a separate server is that you can restart that one without affecting the others.
Can anyone suggest how can I solve this issue. (please suggest good performance tuning tips without increasing physical memory).
Enable gc logging and use a profiler to capture the behaviour of the jvm. You need to understand what it is doing and find where the problem area is before you can recommend what to tune.
Regards,
Jimmy -
Java.lang outofmemory exception in IR
Hi
We are on XI 3.0 SP13 and involved in creating a message mapping. We have a big XCBL PO structure as the target - and while we do the mapping effort, every now and then, we get a java.lang outofmemory exception ( display error ) when we save the mapping.
I notice that my CPU util is 100% and is taken up by javaw.exe. I have a 1.6 G RAM desktop - but still face this problem. Any suggestions as to how to overcome this memory problem ? Am I missing any setting in my desktop ?? Or do we have to live with this problem since the target structure is a generic/big structure ??
Thank you in advance for your time.Hi
actually, this problem has nothing to do with the server at all. Also paging size and your desktop ram do not really matter. By default IB starts with the parameter -Xmx512M, what means that Java gets maximum 512M of RAM. You can change it saving JNLP file to your local file system and changing there this argument to -Xmx 800M or -Xmx 1024M.
The second way is to reduce schema sizes. Usually there are a lot of "annotation" and "documentation" tags. They can be easily removed withoud damaging the mapping(the only problem that in design time you'll not see a documentation for fields). If you want to go this way, you can tell me and I'll find out how it can be done by some tool. Because we had this problem with other customers and as I remember there were some tool made for this purpose.
Although it might help to install the latest SP, because there were made a number of changes to reduce a memory consumption for Message Mapping tool
Best regards
Dmitry -
Migration from Mysql 5 to Oracle fails- java.lang.OutOfMemoryError
Hello Folks,
I m trying to migrate my DB from mysql 5 to Oracle 10g .
I m meeting with some issues.
1) My table data are missing.
2) My foreign key indexing is missed.
Any idea why so?
This is a portion of Error log:
** Started : Wed Dec 20 13:06:56 GMT+05:30 2006
** Workbench Repository : Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Repository Connection URL: jdbc:oracle:thin:@192.168.0.2:1521:tpss10g
** The following plugins are installed:
** MySQL 3.22/3.23 Plugin, Production Release 10.1.0.4.1
** MySQL 4.X Plugin, Production Release 10.1.0.4.1
** MySQL 5.X Plugin, Beta Release for 10.1.0.4.0
** Active Plugin : MySQL5
EXCEPTION : MySQLSourceModelMap._mapforeignKeys(): nios.root.order_rejection_notice_ibfk_1; Referenced schema not found.
EXCEPTION : MySQLSourceModelMap._mapforeignKeys(): nios.root.trading_partner_2_sm_link_ibfk_2; Referenced schema not found.
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 12173
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 12173
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 12173
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11823
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11823
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11823
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 12152
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 12152
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 12152
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11572
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11572
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11572
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11693
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11693
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11693
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **Hello Folks,
I m trying to migrate my DB from mysql 5 to Oracle 10g .
I m meeting with some issues.
1) My table data are missing.
2) My foreign key indexing is missed.
Any idea why so?
This is a portion of Error log:
** Started : Wed Dec 20 13:06:56 GMT+05:30 2006
** Workbench Repository : Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Repository Connection URL: jdbc:oracle:thin:@192.168.0.2:1521:tpss10g
** The following plugins are installed:
** MySQL 3.22/3.23 Plugin, Production Release 10.1.0.4.1
** MySQL 4.X Plugin, Production Release 10.1.0.4.1
** MySQL 5.X Plugin, Beta Release for 10.1.0.4.0
** Active Plugin : MySQL5
EXCEPTION : MySQLSourceModelMap._mapforeignKeys(): nios.root.order_rejection_notice_ibfk_1; Referenced schema not found.
EXCEPTION : MySQLSourceModelMap._mapforeignKeys(): nios.root.trading_partner_2_sm_link_ibfk_2; Referenced schema not found.
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 12173
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 12173
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 12173
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11823
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11823
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11823
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 12152
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 12152
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 12152
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11572
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11572
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11572
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11693
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11693
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11693
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION **
at com.mysql.jdbc.Connection.execSQL(Connection.java:2312)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
java.sql.SQLException: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 11569
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 11569
STACKTRACE:
java.lang.ArrayIndexOutOfBoundsException: 11569
at com.mysql.jdbc.Buffer.readFieldLength(Buffer.java:246)
at com.mysql.jdbc.Buffer.fastSkipLenString(Buffer.java:107)
at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:472)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
** END NESTED EXCEPTION ** -
Essbase Studio Data Load error java.lang.NullPointerException
Guys I am getting a termination with errors on data load using Studio (Essbase Studio 11.2.1.00 / Analytic Services java.lang.NullPointerException. I have done some research but getting dead-ends. I faced this error before and managed to resolve it by truncating some member names that were too long. Any ideas what is causing it?
Hi Dr. Tas,
Can you update the Essbase Studio server and Essbase Server log when the load fails.
KosuruS -
Java.lang.OutOfMemory
Dear all,
$more /oracle/formserv/opmn/logs/OC4J~OC4J_BI_Forms~default_island~1
12/02/27 06:47:34 java.lang.OutOfMemoryError
12/02/27 07:07:34 java.lang.OutOfMemoryError
12/02/27 07:17:35 java.lang.OutOfMemoryError
12/02/27 07:27:28 java.lang.OutOfMemoryError
12/02/27 07:47:34 java.lang.OutOfMemoryError
12/02/27 08:17:35 java.lang.OutOfMemoryError
12/02/27 08:27:34 java.lang.OutOfMemoryError
12/02/27 08:47:34 java.lang.OutOfMemoryError
12/02/27 09:17:34 java.lang.OutOfMemoryError
12/02/27 09:27:34 java.lang.OutOfMemoryError
12/02/27 09:37:34 java.lang.OutOfMemoryError
$
Thanks and Regards
Monoj DasHi Manoj,
1st take a backup of opmn.xml
location /oracle/formserv/opmn/conf
2nd Make these changes in Opmn.xml file under process-type id="OC4J_BI_Forms" module-id="OC4J" -->java-options-->Xmx1024M -Xms1024M
for example as below
<process-type id="*OC4J_BI_Forms*" module-id="OC4J">
<environment>
<variable id="DISPLAY" value="localhost:0"/>
<variable id="LD_LIBRARY_PATH" value="E:\MidHome\lib32:E:\MidHome\lib:E:\MidHome\jdk\jre\lib\sparc"/>
</environment>
<module-data>
<category id="start-parameters">
<data id="*java-options*" value="-server -Xrs -Djava.security.policy=E:\MidHome\j2ee\OC4J_BI_Forms\config\java2.policy -Djava.awt.headless=true *-Xmx1024M -Xms1024M*"/>
<data id="oc4j-options" value="-properties -userThreads "/>
</category>
This value depends upon how much memory does ur server has.
In my case,I had Installed OAS10g on a 4GB Server,i have assigned 1GB Min and Max memory for my OC4J container.
2ndly after making these changes you need to restart your OAS10g
Regards
Fabian -
Blob causes java.lang.outofmemory
Hi Guys,
Not sure whether this has to do with lazy initializing or not,
but here's the situation.
I have got a files table and files_content is a blob holding the file as binary object,
when ever I fetch the set, and try to display it by name, the blob object is loaded also,
since some files contain more than 8 MB it causes a java.lang.out of memory exception.
How do I prevent the blob attribute from loading in memory? I just want to load it when the file is clicked and it is time to send the file to the user, either inline or as dowload.....
Hope I make sense.
All the best,
4eyes.Increasing heap memory size may not solve all kinds of OutOfMemory errors. There may be leaks in your Java code or third-party code or there may be native leaks (translated and reported as OutOfMemoryError). You may want to try Java SE 6 (http://mustang.dev.java.net). Java SE 6 prints descriptive message with OutOfMemoryError and attempts to print stack trace with OOM (http://blogs.sun.com/roller/page/alanb?entry=outofmemoryerror_looks_a_bit_better)
-
Java.lang.OutofMemory when i call webservices
Hi,
I am passing an xml document as byte stream to the
web-service method.
I get java.lang.outofmemoryerror when the xml file size is
larger (say greater than 1MB.).
But i am able to parse the xml file in the jsp page.
I also tried to change the heap size in the run.conf file
as follows:
JAVA_OPTS="-server -Xms128m -Xmx512m"
Is there any option to be set in jboss to solve this
issue.
I am using JBoss3.0 bundled with Tomcat and with Axis
implemented in it as a service
Regards,
mani.Hi Mani,
I'm having having the same problem.
Could you solve it?
I also tried to widen my head and my application is running perfectly when I save the file not using a web service.
If you have any solution, could you please tell me, how you solved it? This would be great!
Thanks a lot.
Steffi -
Java.lang.OutOfMemory and http error 404
Hi.
my application is throwing
<Oct 2, 2003 10:41:14 AM GMT+01:00> <Error> <HTTP> <SSESMADD001> <myserver_TDE_2>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_qu
eue'> <system> <> <101020> <[WebAppServletContext(4301103,console)] Servlet failed
with Exception>
java.lang.OutOfMemoryError
<<no stack trace available>>
After we did a deployed of the application, and then we recieved the error:
[02/Oct/2003:12:19:16 +0100] "POST /webgfdxt/xf HTTP/1.1" 404 0
What's happening? We re-started weblogic and we get the same error (http 404).
We use welogic 6.1 and jdk 1.3.1
Thanks in advancedIncrease the value of the -Xmx setting in the startWebLogic script file.
"oscar" <[email protected]> wrote:
>
Hi.
my application is throwing
<Oct 2, 2003 10:41:14 AM GMT+01:00> <Error> <HTTP> <SSESMADD001> <myserver_TDE_2>
<ExecuteThread: '1' for queue: '__weblogic_admin_html_qu eue'> <system>
<> <101020>
<[WebAppServletContext(4301103,console)] Servlet failed with Exception>
java.lang.OutOfMemoryError
<<no stack trace available>>
After we did a deployed of the application, and then we recieved the
error: [02/Oct/2003:12:19:16
+0100] "POST /webgfdxt/xf HTTP/1.1" 404 0
What's happening? We re-started weblogic and we get the same error (http
404).
We use welogic 6.1 and jdk 1.3.1
Thanks in advanced
Maybe you are looking for
-
How do you get rid of 'empty' pre-roll time in logic pro 9?
how do you get rid of the pre-roll time in logic pro 9? My project's start time is 8-bars before any material, or tempos, or anything... Can't move the start time back to ")" (zero) STUCK!! at -8 The song now has 20 seconds of dead air time i
-
Ajx problem with jsp .not able to show ajax response data in table rows
hi evryone i m new to ajax .i m not able solve this problem .pls help if anyone understood my problem probelm scenario is like this: take a example of shopping page where a field amount changes every time (time interval) ,the amount data is coming fr
-
So i have an HP e118dx running on windows 8.1 with very little software on it. Currently running FF 37.0.1 and in wireless mode it always hangs up, runs slow, or times out. When plugged in it runs just fine. Can get on net using IE via wireless and n
-
We have a site with 3 controllers it's serveral miles between them. And have think about to deploy a N+1 solution. My question is if the controllers must have same RF group. I know they must have same mobility group!. Can you have several mobilty gro
-
Netbeans cannot load my component
I have a form wich has a jpanel subclass on it and it was added using dragging and dropping. Everything was working fine until half hour ago, but now when i try to open this form a get a error saying NB could not load my panel. I have changed nothing