Javac(1.4.2) gives error in import statement

Hi All,
I am facing a surprising problem. I have 2 java class files. I write the import statement for second one in the first one. There is no package & these are in the same directory. I have compiled the second one. But when I try to compile the First one. Javac throws error at import statement like below :
D:\Clubs\oct\6>javac -d . ManojTest.java
ManojTest.java:1: '.' expected
import SessionBean;
^
1 error
My Java Files are as below :
import SessionBean;
public class ManojTest
     public static void main(String args[])
//ManojTest.java
public class SessionBean
     public static void main(String args[])
//SessionBean.java
I have compiled SessionBean.java successfully but when I try to compile ManojTest.java I get error mentioned above.
However this probelm comes when I use j2se 1.4.2.. but works in j2se 1.3.1..
Another way could be I use package structure.
But I can't do any of these, as I have to port my big project to j2se1.4.2.. from j2se1.3.1.. (Live project is running on Tomcat).
Problems is similar in Unix & Windows both.
Is this javac compiler issue or there is some setting which I can make.
I have already included . (dot) in PATH & CLASSPATH environment varibales.
Please help me out if there is any way around this, as i am stuck up in between
thank you
Manoj :confused:

Use a package and then add that package in your classpathOr don't use a package, leave the file in the default (noname) package, and don't use the import statement. Java will find it in the default package without the import.
Explicit import statements from the default package are no longer allowed

Similar Messages

  • Mac OSX gives error while importing photos - "Kernel Panic"

    I upgraded my mac, reinstalled OSX and Lightroom , tried to import photos, mac gives error (called Kennel Panic) and restarts abandoning import. Applecare support suspect Lightroom reinstall issue. Thanks

    If you want PRE to be responsive you should follow Steves' recommendation to resize to 1000x750 (SD).
    At the technical level I think the maximum allowable dimensions are 4096 x 4096 - but PRE will struggle with pictures that size.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Error on import statement.

    I got compiler error for an import statement which is: import MyClass;
    It said: '.' expected at the end of the statement. However, MyClass isn't any package. Also, I can compiler the same code with the import statement as above on other machine with no error. So, I'm thinking there might be some kind of settings for windows that I've done wrong.
    I have my path point to jdk\bin and my classpath point to current directory. I'm using win2k + jdk1.3.1
    Anyone has idea about this??
    Cheers,

    Didn't you ask this once before?
    Anyway, the statementimport Myclass; is malformed. You cannot explictly import a member of the default package, and you don't need to, they are already imported as are those classes defined in your package and those classes defined in java.lang.
    Chuck

  • IMovie gives error when importing from Movies folder.

    When I try to import either.avi or.mov from the Movies folder on my MacBook (the Movies folder has not changed location- it's on the Macintosh HD) iMovie '11 tells me one of two things:
    "+*Copy Failed*+
    /Users/admin/Movies/filename.mov
    +(Insufficient access privileges for operation)+"
    or
    "+*Copy Failed*+
    /Users/admin/Movies/filename.mov
    +(File not found)+"
    Is this a glitch? What can I do or what am I doing wrong?
    Message was edited by: ipodfreak110

    Are you saving the events to your internal hard drive or an external via USB as you capture? Reason I ask is I had this problem when capturing directly to my external USB drive I use to store my camcorder footage on. When I switched to saving to my internal it solved the problem. What I now do is save it to my internal (1 tape at a time) and then close iMovie '08 and then copy the event to the iMovie Events folder on my external hard drive. I then delete it on my internal. Open up iMovie and voila, its there and works.

  • Error in IMPORT statement: Change of length on conversion.

    Hi this is an error i had when creating a source system for a client.
    Runtime Errors CONNE_IMPORT_CONVERSION_ERROR
    Occurred on 21.02.2005 at 14:08:20
    The error probably occurred when installing the
    R/3 system.
    When importing an object, conversion would result in a length change.
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "CONNE_IMPORT_CONVERSION_ERROR" C
    "CL_W3_API_TEMPLATE============CP " or "CL_W3_API_TEMPLATE============CM007 "
    "IF_W3_API_TEMPLATE~LOAD"
    Can anyone please help me .
    Thanks in Advance
    SHASH

    Hi All,
    Above mentioned note will help but this will help you....
    I got the solution for this issue for my kind of problem.
    In program RPU600BT_CONV_SINGLE_CL we commented the following
    START-OF-SELECTION.
    IF 1 = 0. MESSAGE e567(3g). ENDIF. "#EC *
    PERFORM append_message USING 1
    space
    '567' "report not necessary
    space
    space
    space
    space
    'P'.
    STOP. "check note 1314769 whether conversion is necessary
    After this execute the same program and we will get the old results get converted.
    And one more is we should be careful in checking SAPU & SPAD transaction codes. There shouldn't be any partially implemented notes.
    Think will help at least one.
    Regards
    Aditya Surapaneni

  • Essbase JAPI maxl session gives NPE with import statement

    Anybody know why I get a NPE from the Java API when trying to use the IEssMaxlSession to do an import? Here's my code snippet. I've verified the session work using the simpler maxl command commented out below. I also know the import syntax is OK at the maxl prompt. Essbase Error(0) isn't the most helpful diagnostic I've come across.
    Thanks
    IEssMaxlSession maxlSess = null;
    try {
         maxlSess = olapSvr.openMaxlSession("Maxl Test");
                   try {
                        String maxl;
    //                    maxl = "display database \"184_r\".rep";
                        maxl = "import database \"184_a\".agg dimensions connect as \"admin\" identified by \"password\" using server rules_file '/TmpltRFs/RFs/Plan.rul' on error write to \"errlog.log\"";
                        logger.debug(maxl);
         maxlSess.execute(maxl);
         printMessages(maxlSess.getMessages());
                   } catch (EssException e) {
                        printMessages(maxlSess.getMessages());
                        logger.debug(e.getMessage());
                        e.printStackTrace();
    } catch (EssException e){
         logger.debug(e.getMessage());
    14:47:40 DEBUG (essbase.RunMaxl 109): Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
    com.essbase.api.base.EssException: Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
         at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect.executeMaxlStatement(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMaxlMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)

    This is due to the unpublished Bug 12661416: MAXL STATEMENT IMPORT DB DIMENSIONS FROM RELATIONAL DATABASE FAILS WITH JAPI. This error is not fixed in next release.
    However, there is one workaround.
    "As a workaround we installed Essbase client 9.3.1 on the epm11 test box, copied native libraries from 9.3.1 admin server and connected to maxl shell from the v 9.3.1 maxljni interface. This seems to work fine."
    Edited by: Karthik_P on Apr 9, 2012 1:12 PM

  • Error regarding import statements...

    Hi
    This seemed a bit wierd to me.
    The first code snippet makes sense but not the second one...
    This code snippet doesnt compile because of error "single-type import"
    import java.util.Iterator;
         import java.util.Vector;
         import mypkg.Vector;
         class t12 {}
    [t12.java:  java.util.Vector is already defined in a single-type import
              import mypkg.Vector;]
    2nd code snippet
    import java.util.Iterator;
         import java.util.*;
         import mypkg.Vector;
         class t12 {}
    Compiles properly..
    I am not very sure...shouldnt the comile flag this as well as error
    Anu thoughts on this???
    -sbelur

    This is fine:
    import java.util.*;
    import mypkg.Vector; because if you use the Vector class it will not be Ambigious to the compilier, because you have specifically stated what you wanted.
    When you do this:
    import java.util.Vector;
    import mypkg.Vector; The compiler doesn't know which one to use. Just like when you do this:
    import java.util.*;
    import mypkg.*;

  • Import through CHARM gives ERROR that dependecies of predecessaor

    Import through CHARM gives ERROR that dependecies of predecessaor transport requests exists and the import fails through CHARM in solution manager.
    we are having many occurrences that are being reported where ChaRM is not capable of releasing a transport because it is asking for the dependencies to be released first, even though the dependencies are already in Production.
    let us know  if we can change the configuration in CHARM or in the Solman Projects so that when we import the request we dont get this dependencies again

    Hi Michael,
    If the objects are locked under another transport request which are not released, only then you will get an Error saying Objects are locked by Request.
    1. You either release the Requests which holds those objects and then try to release the Charm request.
    OR
    2. Check under which tranports requests does these objects are locked and then goto t.code se03 and Unlock those objects and then try to release the Request thorugh Charm
    Regards,
    Lohith

  • Error in import Class

    hi,
    i just want to conform that .....
    if u r importing a class from same package then u have to write a import for that Class or not.
    As in my case i tried both import and no import statement for class1 to import it in class2, but it gives compiler error in both the cases as-----------cannot resolve symbol
    symbol : class User
    location: class org.apache.struts.example.Dbservlet
         public void addUser(User user)
    ^
    plz help to solve this......
    Amita

    If your directory structure is something like this:
    D:\java\org\apache\struts\example
    And in this directory you have the classes Dbservlet.java
    and User.java, with the following package statement in both the java class files:
    package org.apache.struts.example;
    you will not get any error if you compile from the D:\java directory like this:
    D:\java>javac org\apache\struts\example\DBServlet.java

  • Import Statement Error

    Does anyone know what is wrong with these import statement?
    import Reduction;
    import Mapper;
    import ApplyObj;
    import ApplyObjUnary;
    import java.lang.String;
    public class Driver{
    public static Driver me = new Driver();
    public static void main(String[] args){
    int i;
    I places all my *.java file in the same directory as Driver.java
    But when i try to compile Driver.java, it says :-
    C:\assignment1>javac Driver.java
    Driver.java:10: '.' expected
    import Reduction;
    ^
    Driver.java:11: '.' expected
    import Mapper;
    ^
    Driver.java:12: '.' expected
    import ApplyObj;
    ^
    Driver.java:13: '.' expected
    import ApplyObjUnary;
    ^
    4 errors
    I set my class path as
    C:\>SET CLASSPATH = .;C:\j2sdk1.4.0_01;c:\assignment1
    Apparently, the current directory has been set and my assignment1 directory has been set.
    Did i miss out anything? Why does it can't recognize the existence of other class file in the same directory?
    thanks.

    You don't need to import classes that are in the default package (i.e. you didn't put them in a package). And in Java 1.4, you can't import them. Just remove the import statements, you shouldn't need them.

  • Order Import Erroring while importing closed Order

    Hello,
    I am working on importing closed order for historical purpose and order import is erroring without giving much details. I set the debug level to 5 and log file contains only one error' ORDER IMPORT FAIL DUE TO UNEXPECTED ERROR.
    I am attaching the insert statements for headers and lines. Please review and hope to get a solution from one of the OM gurus here.
    Thanks a bunch in advance.
    Anant
    INSERT INTO OE_HEADERS_IFACE_ALL
    (ORIG_SYS_DOCUMENT_REF
    ,ORDER_SOURCE_ID
    ,ORG_ID
    ,ORDER_NUMBER
    ,ORDERED_DATE
    ,ORDER_TYPE_ID
    ,PRICE_LIST_ID
    ,SOLD_FROM_ORG_ID
    ,SOLD_TO_ORG_ID
    ,CUSTOMER_NUMBER
    ,TAX_EXEMPT_FLAG
    ,TRANSACTIONAL_CURR_CODE
    ,INVOICING_RULE_ID
    ,ACCOUNTING_RULE_ID
    ,PAYMENT_TERM_ID
    ,CREATION_DATE
    ,CREATED_BY
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    ,SALESREP_ID
    ,OPERATION_CODE
    ,CLOSED_FLAG --BOOKED_FLAG
    ,DROP_SHIP_FLAG
    ,SHIP_TO_ORG_ID
    ,INVOICE_TO_ORG_ID
    ,SHIP_FROM_ORG_ID
    ,ORIG_SYS_CUSTOMER_REF
    ,ORIG_SHIP_ADDRESS_REF
    ,ORDER_CATEGORY
    ,BOOKED_FLAG)
    VALUES
    ('514'     -- ORIG_SYS_DOCUMENT_REF
    ,1001                    -- ORDER SOURCE ID
    ,'102'                    -- ORG ID          
    ,10001006               -- ORDER NUMBER
    ,SYSDATE               -- ORDERED_DATE               
    ,1021                    -- ORDER TYPE ID
    ,6024                    -- PRICE LIST ID
    ,102                    -- SOLD FROM ORG ID
    ,2632                    -- SOLD TO ORG ID      
    ,'UN1666'               -- CUSTOMER NUMBER
    ,'S'                    -- TAX_EXEMPT_FLAG
    ,'USD'                    -- TRANS CURRENCY_CODE
    ,-2                         -- INVOICING_RULE_ID
    ,1                         -- ACCOUNTING_RULE_ID
    ,5                         -- TERMS_ID
    ,SYSDATE               -- CREATION_DATE
    ,1150                    -- CREATED_BY
    ,1150                    -- LAST_UPDATED_BY
    ,SYSDATE               -- LAST_UPDATE_DATE
    ,-3                         -- SALESREP_ID
    ,'INSERT'               -- OPERATION CODE
    ,'Y'                    -- CLOSED FLAG
    ,'N'                    -- DROP SHIP FLAG
    ,NULL                     -- SHIP_TO_ORG_ID (SITE USE ID FROM RA_SITE_USES_ALL, SITE_USE_CODE = SHIP_TO)
    ,1712                     -- INVOICE_TO_ORG_ID (SITE USE ID FROM RA_SITE_USES_ALL, SITE_USE_CODE = BILL_TO)
    ,103                    -- SHIP FROM ORG ID
    ,NULL                    -- ORIG_SYS_CUSTOMER_REF
    ,NULL                    -- ORIG_SHIP_ADDRESS_REF
    ,'Order'               -- ORDER CATEGORY
    ,'N')                    -- BOOKED_FLAG
    COMMIT
    INSERT INTO OE_LINES_IFACE_ALL
    (ORDER_SOURCE_ID
    ,ORIG_SYS_DOCUMENT_REF
    ,ORIG_SYS_LINE_REF
    ,ORIG_SYS_SHIPMENT_REF
    ,INVENTORY_ITEM
    ,REQUEST_DATE
    ,ORDERED_QUANTITY
    ,ORDER_QUANTITY_UOM
    ,PRICE_LIST_ID
    ,UNIT_SELLING_PRICE --UNIT_LIST_PRICE
    ,ACCOUNTING_RULE_ID
    ,PAYMENT_TERM_ID
    ,SALESREP_ID
    ,CREATION_DATE
    ,CREATED_BY
    ,LAST_UPDATE_DATE
    ,LAST_UPDATED_BY
    ,OPERATION_CODE
    ,DROP_SHIP_FLAG
    ,SHIP_TO_ADDRESS1
    ,SHIP_TO_ADDRESS2
    ,SHIP_TO_CITY
    ,SHIP_TO_POSTAL_CODE
    ,SHIP_TO_sTATE
    ,SHIP_TO_COUNTRY
    ,CLOSED_FLAG
    ,ITEM_TYPE_CODE
    ,INVENTORY_ITEM_ID
    ,DELIVERY_LEAD_TIME
    ,DELIVERY_ID
    ,TAX_EXEMPT_FLAG)
    VALUES
    (1001                    -- ORDER SOURCE ID
    ,'514'          -- ORIG SYS DOC REF
    ,'L4'               -- ORIG SYS LINE REF
    ,NULL               -- ORIG SYS SHIP REF
    ,'KR4R362478-07'     -- ITEM NUMBER
    ,SYSDATE               -- REQUEST DATE
    ,40                    -- ORDER QTY
    ,'EA'                    -- ORDER QTY UOM
    ,6024                    -- PRICE LIST ID
    ,95                -- UNIT LIST PRICE
    ,1                    -- ACCOUNTING RULE ID
    ,5                    -- PAY TERM ID
    ,-3                    -- SALESREP ID
    ,SYSDATE               -- CREATION DATE
    ,1150                    -- CREATED BY
    ,SYSDATE               -- LAST UPDATE DATE
    ,1150                    -- LAST UPDATED BY
    ,'INSERT'               -- OPERATION_CODE
    ,'N'                    -- DROP SHIP FLAG
    ,NULL --'1003 WASHINGTON AVE'     -- SHIP ADD1
    ,NULL --'SUITE 340'          -- SHIP ADD2
    ,NULL -- 'CHICAGO'          -- CITY
    ,NULL -- 60610               -- POSTAL
    ,NULL -- 'IL'               -- STATE
    ,NULL -- 'US')               -- COUNTRY
    ,'Y'
    ,'FG'
    ,7488
    ,1
    ,1
    ,'Y')
    commit
    ---------------------------------------

    Ganapati,
    Did you try passing the customer_number like -1 or some random high number that does not exist in hz_cust_accounts table in the account_number for party_type='PERSON' in the table oe_customer_info_iface_all?
    As I see this check for the first_name||last_name is done only of the customer number is not passed and customer_number is not used any where in the customer creation (if you are using automatic numbering for the customer accounts then you will obviously not passing any value to new_account_number which is used to created).
    Give it a try while I keep myself busy with my airport woes here.
    Thanks
    Nagamohan

  • Error While Importing a MDL file

    Hi Guys,
    Here I have a requirement of cloning one module of UAT system as like Prod. I exported the MDL file of that module and trying to import into UAT. The UAT system already has that module, but I want to override the existing mappings.
    When I try to import, OWB is throwing an error.
    To give brief about the actual items, I have a Project (FFH1) in Prod and one of the modules (STG1) need to be copied.
    Here below the error Message:
    MDL1261: Error importing PROJECT FFH1.
    Detailed Error Message:
    MDL1406: Cannot import PROJECT with physical name <FFH1> matching by object identifier because a PROJECT <FFH> with the same business name <FFH_1_3> but different object identifier already exists.
    Import ended at Oct 12, 2009 12:58:20 PM
    Can any one suggest me How to overcome this error Or How to achieve my requirement of copying a single module to another repository.
    Edited by: [email protected] on Oct 12, 2009 2:36 AM

    Hi
    i have got a similar error - the difference is that I have one repository and one of the mappings was deleted. When I tried to import it from an export which was taken earlier in the day and no change was made to any of the mappings in the project except the action of the offending mapping been deleted I got the following error:
    Import started at Jan 6, 2010 3:28:07 PM
    Informational at line 10: MDL1205: PROJECT with Unique Object ID (UOID) <63B9EC83C5BA270CE04400306EF32B09> already exists, so PROJECT with name <COSMOS_MIGRATION> not imported.
    Informational at line 11: MDL1205: ORACLE_MODULE with Unique Object ID (UOID) <6561D379074111DFE04400306EF32B09> already exists, so ORACLE_MODULE with name <COSMOS_MIGRATION.STG_OWB> not imported.
    Error at line 2,107: MDL1261: Error importing ATTRIBUTE COSMOS_MIGRATION.STG_OWB.WIP_LOADED_SPREADSHEETS_DATA.XXCONV_OP_SEQ_NUMBER.INOUTGRP1.TARGET_QTY.
    Detailed Error Message:
    MDL1406: Cannot import ATTRIBUTE with physical name <TARGET_QTY> matching by object identifier because a ATTRIBUTE <COSMOS_MIGRATION.STG_OWB.WIP_LOADED_SPREADSHEETS_DATA.BASIS> with the same business name <INOUT1_5> but different object identifier already exists.
    Import ended at Jan 6, 2010 3:28:11 PM
    I then tried to do the import matching on name but got the following error.
    Import started at Jan 6, 2010 3:38:57 PM
    Informational at line 10: MDL1207: PROJECT with name <COSMOS_MIGRATION> not imported because it already exists.
    Informational at line 11: MDL1207: ORACLE_MODULE with name <COSMOS_MIGRATION.STG_OWB> not imported because it already exists.
    Informational at line 37: MDL1292: Skipping MAPPING <COSMOS_MIGRATION.STG_OWB.WIP_INSTANCES> because it was not requested for import.
    Informational at line 450: MDL1292: Skipping MAPPING <COSMOS_MIGRATION.STG_OWB.WIP_JOBS_WORK_ORDERS> because it was not requested for import.
    Error at line 2,107: MDL1261: Error importing ATTRIBUTE COSMOS_MIGRATION.STG_OWB.WIP_LOADED_SPREADSHEETS_DATA.XXCONV_OP_SEQ_NUMBER.INOUTGRP1.TARGET_QTY.
    Detailed Error Message:
    MDL1408: Cannot import ATTRIBUTE with physical name <TARGET_QTY> matching by physical name because a ATTRIBUTE <COSMOS_MIGRATION.STG_OWB.WIP_LOADED_SPREADSHEETS_DATA.BASIS> with the same business name <INOUT1_5> but different physical name already exists.
    This attributes that the messages are referring to are columns in a table and I can't see where I can change a business name and physical name of a column in a table. What I don't understand is that this mapping created ok, deployed, ran and was included in an export and at no time did an error appear. It first appeared when trying to import it back into the project.
    Has anyone got any ideas how I could get this mapping imported?
    Thanks
    Edwin

  • Getting error while importing topology,scenarios from 11.3 to ODI 11.5

    Hi,
    Recently I had installed ODI 11.1.5.
    Now I am importing topology and scenarios exported from my older ODI 11.1.3 via shell script on Linux machine.
    There around 25 topology and around 40 scenarios.When i execute the script out of these some topology and scenarios get imported and for rest i get following error.
    Imported files are not persistent.Sometimes same file got imported and when I execute next time the same file gives error.
    oracle.odi.oditools.OdiToolException: This ODI Tool needs to be connected to the repository but repository connection failed
         at oracle.odi.oditools.OdiAbstractToolRunner.executeCoreTool(OdiAbstractToolRunner.java:133)
         at oracle.odi.oditools.OdiAbstractToolRunner.executeTool(OdiAbstractToolRunner.java:47)
         at oracle.odi.ToolRunner.main(ToolRunner.java:75)
    Caused by: oracle.odi.core.config.MasterRepositoryResourceFailureException: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is oracle.odi.jdbc.datasource.ConnectionTimeoutException: A login timeout occured while connecting to the database
         at oracle.odi.core.repository.Repository.getMasterRepository(Repository.java:79)
         at oracle.odi.core.OdiInstance.createMasterRepository(OdiInstance.java:491)
         at oracle.odi.core.OdiInstance.<init>(OdiInstance.java:544)
         at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:521)
         at oracle.odi.ToolRunner.initInstance(ToolRunner.java:36)
         at oracle.odi.oditools.OdiAbstractToolRunner.executeCoreTool(OdiAbstractToolRunner.java:128)
         ... 2 more
    Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is oracle.odi.jdbc.datasource.ConnectionTimeoutException: A login timeout occured while connecting to the database
         at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
         at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:524)
         at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:588)
         at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:613)
         at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:645)
         at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:111)
         at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:121)
         at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:136)
         at oracle.odi.core.repository.support.RepositoryUtils$RepositoryInfoSource.loadRepositoryInfo(RepositoryUtils.java:180)
         at oracle.odi.core.repository.support.RepositoryUtils.loadMasterRepositoryInfo(RepositoryUtils.java:374)
         at oracle.odi.core.repository.Repository.getMasterRepository(Repository.java:77)
         at oracle.odi.core.OdiInstance.createMasterRepository(OdiInstance.java:492)
         ... 6 more
    Caused by: oracle.odi.jdbc.datasource.ConnectionTimeoutException: A login timeout occured while connecting to the database
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:117)
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
         at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
         at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
         at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:524)
         at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:588)
         at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:613)
         at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:645)
         at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:111)
         at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:121)
         at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:136)
         at oracle.odi.core.repository.support.RepositoryUtils$RepositoryInfoSource.loadRepositoryInfo(RepositoryUtils.java:180)
         at oracle.odi.core.repository.support.RepositoryUtils.loadMasterRepositoryInfo(RepositoryUtils.java:375)
         ... 8 more
    Please guide me in this regard.

    hi actdi,
    Thanks for your guidance.
    we have tried this also....but still the same unstable import....
    We have another doubt while execuing scenarios using ODI Java EE Agent in ODI 11.5:
    We have one customized jar which we use in our scenario at runtime.
    In case of Odi 11.1.1.3 Version, there is a location
    <Middleware>\user_projects\domains\base_domain\servers\odi_Server1\tmp\_WL_user\oraclediagent\ev3fsn\war\WEB-INF\lib
    where we can put customized jar, so that at runtime oraclediagent picks up this jar from the given location,
    but in ODI 11.1.1.5 Version,
    at the given location <Middleware>\user_projects\domains\base_domain\servers\odi_Server1\tmp\_WL_user\oraclediagent\ev3fsn\war\WEB-INF\
    there is no <lib> folder for oraclediagent.
    Is there any different path for the same lib folder in 11.1.1.5? or is dere a miss ?
    Kindly guide.

  • Error while importing user created packages

    Hi ,
    Complexity--- Novice
    Problem Description
    I am trying to run a simple package related program.
    The package file is perfectly compiled and stored in the required path.
    When I try to access this package from another file -- the import statement does not seem to be working.
    It reports an error. However If I use the <pacakage>.<classname> it works perfectly fine.
    I have the following files
    1) The package file : Get.java
    2) The package accessing file : Test.java
    ///////////////Get.java/////////////////////
    package get;
    public class Get
         public Get()
         public String iGet()
              return("Hello World!");
    /////////////////////Test.java/////////////////
    import get.*;
    class Test 
         public static void main(String[] args)
              Get g= new Get();     //Here instead I use get.Get g= new get.Get() it works fine
              System.out.println("Hello World!");
    ///////////////////End of Files////////////////
    /////// Compiling/////////////
    c:\packages>dir *.java    //These are the only 2 files in the directory
    10/05/2005  12:02 AM               147 Test.java
    10/04/2005  11:55 PM               125 Get.java
    c:\packages>javac -d . *.java
    .\Get.java:3: duplicate class: get.Get
    public class Get
           ^
    Test.java:7: cannot resolve symbol
    symbol  : constructor Get  ()
    location: class Get
                    Get g= new Get();
                           ^
    2 errorsI think the problem is clearly explained.
    Thanks in advance

    When the file Test.java is compiled all it needs is
    get/Get.class
    There is no need for the file Get.java to be in
    get/Get.javaI agree with these two statements and it is true that using -d will create the Get.class in the correct directory. However, it looks like you might have Get.java in the Classpath and you are using "import get.*;" in Test.java. You may be confusing the compiler because javac will automatically try to compile source code for dependent classes. I think it will work if you change the import to "import get.Get;"

  • Getting error while importing the data using loadercli

    Hello,
    I want to copy the data using export/ import  via (loadercli).
    scenario:
    1) I have 2 server and i want to export data from old server and import in to new MAXDB server using loadercli.
    I have done this once and it went fine , but now I want to do the export import again so i will have te latest data on the new server.
    when i tried to do that it gives error that the table already exist . Can i use loadercli to import hte data again ?
    can any one help me in this ?
    Regards,
    Bhavesh

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

Maybe you are looking for

  • Downloads in Finder sidebar .oes not respond,

    When I open downloads tab in the Finder sidebar, Finder does not respond. I have already tried restarting my mac, downloads in the Finder sidebar still does not respond. Please help me!!!

  • Cannot login to Cisco Jabber 10.5.1 over Mobile and Remote Access

    Hi, We have deployed sucessfully VCS Expressway-C and VCS Expressway-E with only 1 zone which is "Unified Communication Traversal" and is for Mobile and Remote Access only. VCS-C and VCS-E are communicating and in statuses everything is active and wo

  • Message that won't go away

    Every time I insert a new ink cartridge in my OfficeJet Pro 8600 I get a message  that says Redeem your HP Reward! You have just earned a reward for installing genuine HP ink cartridge - it's that simple. Yellow [Y]: 951XL, etc. I don't want the rewa

  • Java- Stored Procedure with Call by Result

    Hi Oracle-Community, I am looking for some example Code how to use a Java-Stored Procedure with Out-Parameters. Don't get me wrong. I dont want to call a Procedure with Out Parameters from Java (there are a lot of examples for this out there) . I jus

  • MDT 2012 - Litetouch deploy windows 8 with different administrator account

    I have created and captured a custom image of Windows 8 using MDT2012 update 1 and Windows ADK (without SCCM). In the image, I have set an account called DeployUser, with password XXX, adding it to the Administrators group, and I have disabled the Us