Error: java.util.NoSuchElementException while migrating from Mysql
Hello All,
I am trying to migrate a Mysql DB to oracle 10g, the following are the steps that I'm following:
1. - Create an Oracle user named MIGRATIONS and grant it at least RESOURCE, CREATE SESSION, and CREATE VIEW privileges
2. - Create a database connection named Migration_Repository that connects to the MIGRATIONS user.
3. - Right-click the Migration_Repository connection, select Manage Migration Repository, and create the repository
4. - Create an Oracle user whose schema is to be used as the destination for the objects to be migrated
5. - Create and open an Oracle connection for the schema that I created.
6. - Create and open a database connection for mysql DB
7. - Capture the source schema objects to be migrated
8. - Convert the captured objects to Oracle-format objects.
9.- When I try to hit "GENERATE" to create the SQL*Plus script, it gets to Sequence 40 and it stops, as soon as I click close. I get the following error message:
java.util.NoSuchElementException
I have not been able to find answers in regards to this error, any help would be greatly appreciated.
David Waizer
Hi David,
Are you migrating a MySQL 4.1 instance? There is a known problem with 4.1 (3, 4.0 and 5.0 are ok, this is unique to 4.1). The fix has been committed but will not be available until our next release.
If this is the case, your options are to move your db to a 5.0 instance, or wait until out next release.
Regards,
Dermot.
Similar Messages
-
I have migrated my project from Jdeveloper 10.1.3 to JDeveloper with OC4j11g Preview 4.
I see below exception displaying 5 times.... Can some one help me in getting this project running on 11g....
Jul 17, 2008 2:01:13 PM oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.jdevimpl.webapp.jsp.taglibraries.trinidad.addin.TrinidadModelListener$UpdateTrinidadNamespaceTask@157342 on model oracle.jdevimpl.webapp.jsp.JspXmlModel@42017c; txn name=Updating html, head, and body, to be under the Trinidad namespace
java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:844)
at java.util.HashMap$KeyIterator.next(HashMap.java:877)
at oracle.jdevimpl.webapp.jsp.taglibraries.trinidad.addin.TrinidadModelListener$UpdateTrinidadNamespaceTask.performTask(TrinidadModelListener.java:278)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:195)
at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
at oracle.jdevimpl.webapp.jsp.taglibraries.trinidad.addin.TrinidadModelListener.modelChanged(TrinidadModelListener.java:109)
at oracle.bali.xml.model.XmlModel._deliverModelChangeEvents(XmlModel.java:3250)
at oracle.bali.xml.model.XmlModel._deliverChangeEvents(XmlModel.java:3417)
at oracle.bali.xml.model.XmlModel.__commitTransaction(XmlModel.java:2940)
at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1773)
at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2882)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:562)
at oracle.bali.xml.model.task.NonValidatingTransactionTask.__commitWrapperTransaction(NonValidatingTransactionTask.java:32)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:208)
at oracle.adfdt.view.common.migration.MigrationManager$MigrationCallable.call(MigrationManager.java:618)
at oracle.ide.model.Node.callUnderWriteLock(Node.java:1555)
at oracle.adfdt.view.common.migration.MigrationManager$MigrationRunnable.run(MigrationManager.java:550)
at oracle.adfdt.view.common.migration.MigrationManager.migrate(MigrationManager.java:105)
at oracle.adfdtinternal.view.common.migration.wizards.MigrationHelper.migrate(MigrationHelper.java:30)
at oracle.ide.migration.NodeMigrator.callHelperMigrate(NodeMigrator.java:474)
at oracle.ide.migration.NodeMigrator.callHelpersMigrate(NodeMigrator.java:464)
at oracle.ide.model.ProjectMigrator.super_callHelpersMigrate(ProjectMigrator.java:38)
at oracle.ide.model.ProjectMigrator.mav$super_callHelpersMigrate(ProjectMigrator.java:26)
at oracle.ide.model.ProjectMigrator$1.run(ProjectMigrator.java:54)
at oracle.javatools.data.Structure.applyBatchChanges(Structure.java:164)
at oracle.ide.model.HashStructureNode$1.run(HashStructureNode.java:326)
at oracle.javatools.data.Structure.applyBatchChanges(Structure.java:164)
at oracle.ide.model.HashStructureNode.applyBatchChanges(HashStructureNode.java:322)
at oracle.ide.model.ProjectMigrator.callHelpersMigrate(ProjectMigrator.java:50)
at oracle.ide.migration.NodeMigrator.doMigration(NodeMigrator.java:447)
at oracle.ide.migration.NodeMigrator$1.run(NodeMigrator.java:400)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:615)
at java.lang.Thread.run(Thread.java:595)
I have made needed manual changes and made sure all the libraries are pointing to correct jar files.
When I perform rebuild I have warning
class javax.faces.el.ValueBinding has been deprecated
When I try to run the jspx browser displays error message
Missing class: oracle.adfinternal.view.faces.renderkit.RenderKitBase
Embedded OC4J server has message
Jul 17, 2008 3:12:30 PM com.evermind.server.http.HttpMessages logApplicationStartupFailedMessage
SEVERE: The application named, current-workspace-app, could not start due to an error. oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.adfinternal.view.faces.renderkit.RenderKitBaseYes, I did follow all the steps mentioned at http://www.oracle.com/technology/products/jdev/tips/muench/1013srdemo/index.html
What surprises me is even though it throws exception(reason i dont know) I see the migration completed message at the end.
Most of the files I checked are migrated...
When I try launch jspx by starting the embedded OC4J there is still some reference to ADF instead of TRINIDAD... How do I correct it?
Thanks,
-Josephine -
The invocation resulted in an error: java.util.NoSuchElementException
I am trying to implement sftp protcol for oracle service bus using business service.
While invocation it is throwing "The invocation resulted in an error: java.util.NoSuchElementException" error.
Does any one know the reason for it?known_hosts file must contain data & hostname and IP address must be separated by a comma.
e.g. localhost,127.0.0.1 ssh-rsa ABCDEF............==
Regards,
Anuj -
I have created a business service using the SFTP protocol.
When testing the BS, I received the "known_hosts doesn't exist or doesn't have read permission" error, which I resolve by placing the known_host file in $Domain_Home\config\osb\transports\sftp
But now I have got another error "The invocation resulted in an error: java.util.NoSuchElementException". Does anyone know what this error refers to? I have already set the filename through the transport header.I have created a business service using the SFTP protocol.
When testing the BS, I received the "known_hosts doesn't exist or doesn't have read permission" error, which I resolve by placing the known_host file in $Domain_Home\config\osb\transports\sftp
But now I have got another error "The invocation resulted in an error: java.util.NoSuchElementException". Does anyone know what this error refers to? I have already set the filename through the transport header. -
Cisco Network Assistant - Error java.util.noSuchElementException
Hi!
i have a big Problem. the last 3 times i installed the CNA (for 2960X-series) at my custormers, i have the Problem that i can´t edit the Port-Settings in the CNA.
There always Comes the Message:
Java.util.noSuchElementException
i tried different Versions of CNA (5.8.9, 6.1, ...) and different different Software Images on my Switches : (15.0.2.EX2, 15.0.2.EX5)
can anyone help me please?
Thx
MartinHi David,
Are you migrating a MySQL 4.1 instance? There is a known problem with 4.1 (3, 4.0 and 5.0 are ok, this is unique to 4.1). The fix has been committed but will not be available until our next release.
If this is the case, your options are to move your db to a 5.0 instance, or wait until out next release.
Regards,
Dermot. -
Hello,
We are encountering error with 1-level XML(non-RDF reports - i.e. FSG) on bursting. It is happening when the bursting control file ("select" attribute under "request" element) only has 1 level of distribution XML(i.e. /MasterReport).
I have found similar issue in this forum but got no definite solution - Re: Bursting Fails with java.util.NoSuchElementException after 5.6.3 upgrade
Start bursting process..
[032309_032311003][][EXCEPTION] java.util.NoSuchElementException
at java.util.Vector.lastElement(Vector.java:449)
at oracle.apps.xdo.batch.BurstingProcessorEngine.removeEndPath(BurstingProcessorEngine.java:1999)
at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(BurstingProcessorEngine.java:1944)
at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1124)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(BurstingProcessorEngine.java:2153)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingEndElement(BurstingProcessorEngine.java:1802)
at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1127)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:227)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingConfigParser(BurstingProcessorEngine.java:959)
at oracle.apps.xdo.batch.BurstingProcessorEngine.process(BurstingProcessorEngine.java:903)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:269)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
Thanks in advance for your help.
regards,
RownaldHi Ike,
Thanks for your reply.
Although I already went thru a different path on bursting FSG(Financial Statement Generator) reports (creating Java program to fetch/send email - Delivery Manager), I am still very interested in the idea of bursting FSG using the seeded bursting program(XDOBURSTREP) - which I still cannot figure out.
Anyway, I am stuck having a data definition from FSG with only 1-level to burst on (see in bold below). This kind of XML data is causing the previous error that I've posted above.
Trying to add another level (i.e. /MasterReport/fsg:SOBName/) won't work either - namespace being not supported by Oracle??
<?xml version="1.0" encoding="utf-8"?>
<*MasterReport* xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:fsg="http://www.oracle.com/fsg/2002-03-20/"
xsi:schemaLocation="http://www.oracle.com/2002-03-20/fsg.xsd">
<fsg:SOBName>COMPANY NAME</fsg:SOBName>
Any idea would be highly appreciated.
Thanks! -
Problems while migrating from mySql DB to oracle DB
Hi All,
I'm using sql developer tool to migrate from MySql DB to oracle DB. I followed the below steps.
1) I've created oracle and mysql connections successfully.
2) I've captured Mysql data and I'm able to see the captured model in ' Captured Models ' window. After that right clicked on the captured model and selected ' Set Data Mapping'. Selected ' apply ' button without changing anything. After that I've right clicked on the captured model and selected ' Convert to Oracle Model ' . It has shown the converting process. After some time it has shown conversion completed successfully.
But converted model is not visible in ' Converted Models ' window.
Can anyone kindly assist on how to migrate from MySql Db to Oracle DB?
Thanks,
Saty.Hi,
We did mysql to oracle migration some time back and played with workbench tool and many other softwares available.
However our experience was not so good with these tools, each tool had its own limitation and was not able to migrate 100% data. Even the speed of migration was too slow which would have violated our production SLAs.
So after spending a month with these tools we finally decided to create our own scripts for data migration. We used tools like TOAD and SQL Yok to create the DDL for the tables and other DB objects.
For the data migration we downloaded the mysql data in flat files and used sql loader to upload the same data in oracle. Even if this was a time consuming activity but this resulted in 100% data migration with no record getting failed and the time taken for this activity was around 6 Hrs in comparison to time of 24-28 Hrs that the workbench tool took.
Amar -
"Default " problem while migrating from mysql to oracle.
I'm migrating from mysql3.23 to oracle9i via the OMWB tool.While migrating i'm getting an error message "Failed to create default for the table <table>:ora00907 missing right parenthesis".This error is due to the difference in the syntax used for the keyword "default" in mysql and oracle.In mysql we have to give after the Not Null option whereas in oracle we have to give before Not Null.
The problem is i'm migrating via the OWMB tool.Is is possible to handle this error with the help of tool itself.
Thanks
Jai.MJai, I'm having Frank have a look at this for you to see if we can replicate it ans help solve this issue for you. are there any issues logged on the mysql site regarding saving blobs as file?
thanks
Barry -
Java.util.NoSuchElementException Error
when i am executing my servlet program tha i got this error
java.util.NoSuchElementException
at Scanning.scan(googlewsd.java:262)
at googlewsd.doGet(googlewsd.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
what can i do to remove this error ..
plz help me..its very urgent
thanxjava.lang.NullPointerException
at java.util.StringTokenizer.(StringTokenizer.java:119)
at java.util.StringTokenizer.(StringTokenizer.java:135)
at Scanning.scan(googlewsd.java:237)
pls tell me solution of this error.
pls help me
thanx -
SFTP Issue in OSB invocation resulted in an error: java.util.NoSuchElement
I created a Proxy Service to do SFTP Poll to read the file from abcserver and its working fine .
(OSB is on abc server).
known_hosts file is present on OSB server.
It has abcserverhostname,IP ssh-rsa AA................. ==
I created a business service to do SFTP Write to xyz server (remote) - Its not working.
Error : The invocation resulted in an error: java.util.NoSuchElementException.
My Business Service
End Point URI : sftp://xyzserverhostname:22/directorypath
Authetication Mode : user name, password.I have created a Service Account for xyz server and imported in Business Service.
Later, I created business service to do SFTP Write on abc server (same server) and it failed.*
Error : The invocation resulted in an error: java.util.NoSuchElementException
Do I need to give anything else in known_hosts file ?
OSBServer.log
*<Error> <SFTPTransport> <OSBServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <db432d7c09c5a041:4295b211:1310705fe8e:-8000-000000000001f312> <1311176892037> <BEA-381801> <Error occured for endpoint java.util.NoSuchElementException*
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:183)
at java.util.StringTokenizer.nextElement(StringTokenizer.java:149)
at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.validateKnownHosts(KnownHostVerifier.java:102)
at com.bea.wli.sb.transports.sftp.client.SFTPClient.authenticate(SFTPClient.java:104)
at com.bea.wli.sb.transports.sftp.connector.SFTPResource.<init>(SFTPResource.java:77)
at com.bea.wli.sb.transports.sftp.resource.SFTPUtils.createSFTPResource(SFTPUtils.java:170)
at com.bea.wli.sb.transports.sftp.resource.SFTPConnectionPool.getResource(SFTPConnectionPool.java:104)
at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.getSFTPResource(SFTPTransportProvider.java:958)
at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.sendMessage(SFTPTransportProvider.java:145)
at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.sendMessageAsync(SFTPTransportProvider.java:110)
at sun.reflect.GeneratedMethodAccessor4031.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.bea.wli.sb.transports.Util$1.invoke(Util.java:83)
at $Proxy142.sendMessageAsync(Unknown Source)
at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)
at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:538)
at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:558)
at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:380)
at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMessageSender.java:79)
at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:137)
at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:135)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:140)
at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:454)
at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Thanks
Edited by: soauser on Jul 25, 2011 3:22 PMPatrick,
I apologize. polling was done by some other service, not my current OSB Service.
OSB Proxy Service to poll/read data is not working.
I enabled logging to Error in Proxy Service. and enable tracing
If I test my Proxy Service from Console. I see this message
<con:metadata xmlns:con="http://www.bea.com/wli/sb/test/config">
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
</con:metadata>
tail -f OSBServer.log
<Error> <WliSbTransports> <OSBServer> <pool-20-thread-1> <weblogic> <> <db432d7c09c5a041:1f5dbb0e:1314411cf6c:-8000-000000000000213c> <1311178504443> <BEA-381602> <Error encountered while polling the resource for the service endpoint ProxyService$SFTPFileTesting$SFTPFilePoll: com.bea.wli.sb.transports.TransportException
com.bea.wli.sb.transports.TransportException
at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.execute(SFTPWorkPartitioningAgent.java:125)
at com.bea.wli.sb.transports.poller.TransportTimerListener.run(TransportTimerListener.java:74)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:149)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:109)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:215)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
Caused By: java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:183)
at java.util.StringTokenizer.nextElement(StringTokenizer.java:149)
at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.validateKnownHosts(KnownHostVerifier.java:102)
at com.bea.wli.sb.transports.sftp.client.SFTPClient.authenticate(SFTPClient.java:104)
at com.bea.wli.sb.transports.sftp.connector.SFTPResource.<init>(SFTPResource.java:77)
at com.bea.wli.sb.transports.sftp.resource.SFTPUtils.createSFTPResource(SFTPUtils.java:170)
at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.getSftpResource(SFTPWorkPartitioningAgent.java:148)
at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.execute(SFTPWorkPartitioningAgent.java:58)
at com.bea.wli.sb.transports.poller.TransportTimerListener.run(TransportTimerListener.java:74)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:149)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:109)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:215)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
Edited by: soauser on Jul 20, 2011 9:36 AM
Edited by: soauser on Jul 25, 2011 3:22 PM -
Error on java.util.NoSuchElementException
Hi,
I am facing an error "Exception in thread "main" java.util.NoSuchElementException" on my java code but i have no idea on how to solve this error. I have been figuring for very long but still no solution. Below is my code. Can anyone help? Thank in advance=D
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.*;
class Matrix {
double[][] element;
public static void getFile(String fileName) throws IOException{
BufferedReader br = null;
int numRows,numCols;
Matrix m1 = new Matrix();
try{
br = new BufferedReader(new FileReader(fileName));
String line = br.readLine();
//Get the number of rows
line = br.readLine();
StringTokenizer st = new StringTokenizer(line, "=");
st.nextToken();
String row = st.nextToken();
numRows = Integer.parseInt(row.substring(1));
//Get the number of columns
line = br.readLine();
StringTokenizer st2 = new StringTokenizer(line, "=");
st2.nextToken();
String col = st2.nextToken();
numCols = Integer.parseInt(col.substring(1));
line = br.readLine();
while ((line = br.readLine()) != null ){
//Declare and initialize the 2d array
m1.element = new double[numRows][numCols];
StringTokenizer st3 = new StringTokenizer(line, "</matrix>");
while(st3.hasMoreTokens()){
for(int r = 0; r < m1.element.length; r++){
for(int c = 0; c <= m1.element.length; c++){
String record = st3.nextToken(" ");
m1.element [r][c] = Double.parseDouble(record);
br.close();
}catch(FileNotFoundException ex){
System.out.println(ex.getMessage());
}Tave wrote:
Some things occur to me, none of which may be useful.
Firstly, you have no constructor for your class.
Secondly, you don't seem to have a main method, though this may be because this class is called by another.
Thirdly, don't you have a line number or other identification for what is causing the exception?Thank for your reply=D
Yap this is a class that is called by another class that why there is no main method for it. And for the line that causing the error is
String record = st3.nextToken(" "); -
Out of memory error in migrating from mysql to oracle
Hi,
I'm trying migrate from mysql to oracle9i. The hardware and software requirements are matching or even much higher than mentioned in the documentation. I have installed OMWB is properly(hope so). When I try to migrate the desired database from mysql to oracle, the repository, the Oracle model are created successfully. But while migrating data, say for around 35000 rows insertion everything works pretty fine. But after sometime, the migration stops and no error or anything appears in the screen.And in the Errorlog I get "OutOfMemoryError".
I tried to migrate single table also. But I still get this problem after sometime. The tables may contain from 10 - 130000 rows...
I even tried to change the %JRE..% memory value to 64M or 128M in the omwb.bat file and the O/s is Microsoft Windows XP, RAM 256MB.
Any help is much appreciated.
Thanks in advance.Hi Viji,
did the message in the error.log provide any extra information? For example, was the OutOfMemory error prefixed with a string
like "cannot create new native thread" ? My suggestion to workaround the problem would have been to increase the JVM heap size to 128
but this appears to have been unsuccessful for you. Can you send a mail to the Migration Workbench support services
([email protected]) explaining the problem, and attach the full error.log file please ? (please also copy me on the mail).
In the meantime, you can workaround this by migrating the schema only (there is a switch on step 3 of the migration wizard asking:
"Do you want to migrate the table data to Oracle?" - just select the "No" option). When the schema has migrated, you can then use the
offline data loading facility to migrate the data. This uses data extraction scripts and SDQL*Loader to migrate the data to the target
Oracle database.You can learn more about the offline data loading facility from the plugins referenceguide (from the Help menu in
the Migration Workbench).
I hope this helps,
Tom. -
Syntax errors while migrating from non- unicode to Uni code
What are the syntax errors while migrating from non unicode to Uni code
Hi Sudheer,
u can get the information related to errors while migrating from non- unicode to Uni code from the below...pls go through...
Note 765475 - Unicode Conversion: Troubleshooting
these are the notes related to the issues of migration form non unicode to ounicode.
Related Notes
986907 - SQL Server settings for R3load based system copy
954001 - Error fix: ILLEGAL_SUBSTRING_MODIFICATION in SUMG
936441 - Oracle settings for R3load based system copy
928909 - Repair table data in SUMG in Unicode systems
895804 - Problematic rows in table DMEE_TREE_NODE
895560 - Support for languages only available in Unicode system
885441 - Common Migration Errors
842788 - DB Multiconnect: Unicode Migration
837173 - RADCUCNT in Unicode Conversion: Collective Note
756534 - Automatic Assignment of Languages with Character Statistics
753334 - Unicode Conversion: Problem in Japanese device types
726954 - Private Use Areas in Unicode Systems
722193 - RFC legacy non-Unicode clients and Unicode servers
718329 - R3load terminates the export during a Unicode conversion
695196 - Error in the export for Unicode migration
672835 - Textflags could cause problems during Unicode conversion
627764 - Unicode migration: table pools inconsistent after conversion
614550 - Troubleshooting BC-I18
587896 - Add. info on upgrade to SAP R/3 Enterprise Core 4.70 SR1
573044 - Unicode conversion for HR application
480671 - The Text Language Flag of LANG Fields
379940 - Unicode based mySAP availability
79991 - Multi-Language and Unicode support of SAP applications
73606 - Supported Languages and Code Pages
42305 - RSCPINST (I18N configuration tool)
regards,
rudra..
Assign points if helpful -
Why the Error in ArrayList Program : java.util.NoSuchElementException
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.Collections;
import java.util.Random;
public class ArrayListDoubt {
public static void main(String[] args) {
// ArrayList Creation
List arraylistA = new ArrayList();
List arraylistB = new ArrayList();
// Adding elements to the ArrayList
for (int i = 0; i < 5; i++) {
arraylistA.add(new Integer(i));
arraylistB.add("beginner");
arraylistB.add("java");
arraylistB.add("tutorial");
arraylistB.add(".");
arraylistB.add("com");
arraylistB.add("java");
arraylistB.add("site");
// Iterating through the ArrayList to display the Contents.
Iterator i1 = arraylistA.iterator();
System.out.print("ArrayList arraylistA --> ");
while (i1.hasNext()) {
System.out.print(i1.next()+ " , ");
System.out.println();
System.out.print("ArrayList arraylistA --> ");
for (int j=0; j < arraylistA.size(); j++) {
System.out.print(arraylistA.get(j)+ " , ");
System.out.println();
Iterator i2 = arraylistB.iterator();
System.out.println("ArrayList arraylistB --> ");
while (i2.hasNext()) {
System.out.print(i2.next()+ " , ");
System.out.println();
System.out.println("Using ListIterator to retireve ArrayList Elements");
System.out.println();
ListIterator li = arraylistA.listIterator();
// next(), hasPrevious(), hasNext(), hasNext() nextIndex() can be used with a
// ListIterator interface implementation
System.out.println("ArrayList arraylistA --> ");
while (li.hasNext()) {
System.out.print(i1.next()+ " , ");
Output
ArrayList arraylistA --> 0 , 1 , 2 , 3 , 4 ,
ArrayList arraylistA --> 0 , 1 , 2 , 3 , 4 ,
ArrayList arraylistB -->
beginner , java , tutorial , . , com , java , site ,
Using ListIterator to retireve ArrayList Elements
ArrayList arraylistA -->
Exception in thread "main" java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:427)
at ArrayListDoubt.main(ArrayListDoubt.java:58)System.out.println("Using ListIterator to
retireve ArrayList Elements");
System.out.println();
ListIterator li = arraylistA.listIterator();
next(), hasPrevious(), hasNext(), hasNext()
nextIndex() can be used with a
/ ListIterator interface implementation
System.out.println("ArrayList arraylistA -->
while (li.hasNext()) {
System.out.print(i1.next()+ " , ");
}I think you mean to call the next()-method of the ListIterator li, but instead call i1, which is an already used Iterator.
Where you want to iterate with ListIterator, change this line
System.out.print(i1.next()+ " , ");to this
System.out.print(li.next()+ " , ");and it works -
Fatal Error: Could not find Feature AnalyticsLinks in sharepoint 2010 while migration from 2007 site using stsadm command
Hi ,
Firstly, I need to verify the followings:
Whether you created a feature called AnalyticsLinks and activatated it at SharePoint 2007 site.
Whether you installed the feature at SharePoint 2010 site.
Please deactivate the feature AnalyticsLinks, then migrate SharePoint 2007 site to SharePoint 2010, compare the result.
Also , please check whether you have installed the feature AnalyticsLinks at your SharePoint 2010 site. If not, please install and activate it, compare the result.
Here are some similar posts for you to take a look at:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/17b17bd3-126c-44d4-bd58-38dd613017a0/fatal-error-could-not-find-feature-reviewpublishingspd1055?forum=sharepointadminprevious
http://mrin17.wordpress.com/2009/09/15/fatalerror-could-not-find-feature-s2siteadmin-while-importing-sites-from-different-server-at-sharepoint/
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support
Maybe you are looking for
-
How can I transfer photos from old iPad to new iPad?
How can I transfer photos to new iPad from old iPad ?
-
What are the steps for using Bobj with ECC
Hi, I have the ECC 6 with EHP4 system, now i want to use BusinessObjects for reporting purpose. I dont have the BI installed, What are the pre-requisit for installaing and using Bobj with web intelegence and crystal report. Dose BI is must for bobj t
-
Account type D is not defined for document type RE
Hi can any one tell me use of the field " Account with vendor" in table LFB1? Regards
-
Document under "posted status"
Hi I have posted one document: Document type KR (vendor invoice by using t-code FB60) ....when i check at FBL3N , document comes under posted status instead of open status.My doubt is a) why document is under posted status. and not under open status.
-
NO AUDIO with QuickTime Pro and MPEG-2 Playback
I just purchased Sony Camcorder (Sony DCR-DVD610 DVD Handycam Camcorder with 40x Optical Zoom) and recorded some movies. But when I tried to view it through my iMac (Version 10.4.11) the MPG format files wouldn't played. So I purchased "QuickTime Pro