File test operator

Hello all,
Quick question, in other languages (i.e. Perl) I can use a file test operator to figure out if a file or directory is exists by doing:
if (-d $foo) {
Is there an equivalent of this in Java? In particular I need to check for directories and files, to make sure they exist before proceeding. Thanks.
-Wes

Take a look in the API at java.io.File and you should find your way.

Similar Messages

  • Network speed affected by large file copy operations. Also, why intermittent network outages?

    Hi
    I have a couple of issues on our company network.
    The first is thate a single large file copy imapcts the entire network and dramatically reduces network speed and the second is that there are periodic outages where file open/close/save operations may appear to hang, and also where programs that rely on
    network connectivity e.g. email, appear to hang. It is as though the PC loses it's connection to the network, but the status of the network icon does not change. For the second issue if we wait the program will respond but the wait period can be up to 1min.
    The downside of this is that this affects Access databases on our server so that when an 'outage' occurs the Access client cannot recover and hangs permamnently.
    We have a Windows Active Directory domain that comprises Windows 2003 R2 (soon to be decommissioned), Windows Server 2008 Standard and Windows Server 2012 R2 Standard domain controllers. There are two member servers: A file server running Windows 2008 Storage
    Server and a remote access server (which also runs WSUS) running Windows Server 2012 Standard. The clients comprise about 35 Win7 PC's and 1 Vista PC.
    When I copy or move a large file from the 2008 Storage Server to my Win7 client other staff experience massive slowdowns when accessing the network. Recently I was moving several files from the Storage Server to my local drive. The files comprised pairs
    (e.g. folo76t5.pmm and folo76t5.pmi), one of which is less than 1MB and the other varies between 1.5 - 1.9GB. I was moving two files at a time so the total file size for each operation was just under 2GB.
    While the file move operation was taking place a colleague was trying to open a 36k Excel file. After waiting 3mins he asked me for help. I did some tests and noticed that when I was not copying large files he could open the Excel file immediately. When
    I started copying more data from the Storage Server to my local drive it took several minutes before his PC could open the Excel file.
    I also noticed on my Win7 client that our email client (Pegasus Mail), which was the only application I had open at the time would hang when the move operation was started and it would take at least a minute for it to start responding.
    Ordinarlily we work with many files
    Anyone have any suggestions, please? This is something that is affecting all clients. I can't carry out file maintenance on large files during normal work hours if network speed is going to be so badly impacted.
    I'm still working on the intermittent network outages (the second issue), but if anyone has any suggestions about what may be causing this I would be grateful if you could share them.
    Thanks

    What have you checked for resource usage during one of these copies of a large file?
    At a minimum I would check Task Manager>Resource Monitor.  In particular check the disk and network usage.  Also, look at RAM and CPU while the copy is taking place.
    What RAID level is there on the file server?
    There are many possible areas that could be causing your problem(s).  And it could be more than one thing.  Start by checking these things.  And go from there.
    Hi, JohnB352
    Thanks for the suggestions. I have monitored the server and can see that the memory is nearly maxed out with a lot of hard faults (varies between several hundred to several thousand), recorded during normal usage. The Disk and CPU seem normal.
    I'm going to replace the RAM and double it up to 12GB.
    Thanks! This may help with some other issues we are having. I'll post back after it has been done.
    [Edit]
    Forgot to mention: there are 6 drives in the server. 2 for the OS (Mirrored RAID 1) and 4 for the data (Striped RAID 5).

  • Could not open error log file ''. Operating system error = 5(failed to retrieve text for this error. Reason: 15105).

    Hello
    When I try to start the SQl server service i get the following error:
    Event id 17058
    Could not open error log file ''. Operating system error = 5(failed to retrieve text for this error. Reason: 15105).
    As a test I have made sure the errorlog file ,and the entire drive it is, has everyone full control permissions, but to no avail. Does anyone have any ideas to resolve this issue?
    Thank you

    Hi,
    Try running:
    SELECT SERVERPROPERTY('ErrorLogFileName')
    Then verify that the account being used to run the SQL Server service account has access to the path output above.  If possible, you could try logging onto the server with the same account used to run SQL Server then navigate to the errorlog folder.
    Thanks,
    Andrew Bainbridge
    SQL Server DBA
    Please click "Propose As Answer" if a post solves your problem, or "Vote As Helpful" if a post has been useful to you

  • Powershell - The term is not recognized as the name of a cmdlet, function, script file, or operable program.

    I am trying to run the following Powershell in orchestrator to move a new user into a specific OU based on the Department field specified by the creator. 
    $dept = {Department from "Initialize Data"} 
    if ($dept -contains 'IT') {$NewContainer = OU=IT,DC=test,DC=net}
    When I run the Powershell it is returning the following
    The term 'IT' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    How can I get it to not try and pass 'IT' as a cmdlet?

    I think I may have actually found the solution I was missing { } around the command
    I encapsulated the powershell in { }
    $dept = {Department from "Initialize Data"} 
    if ($dept -contains 'IT') {$NewContainer = OU=IT,DC=test,DC=net}

  • Intermittent : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have developed a batch harness whereby all scheduled tasks (W2012) invoke a common powershell script that acts as a wrapper to all our housekeeping jobs.
    The first step in the wrapper is to create a Transcript file using following code
    if ($Host.name -ne "Windows PowerShell ISE Host") # Transcript does not work within ISE
    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    $path = "c:\corp\$timestamp" + "_$pid.txt"
    Start-Transcript -path $path -append
    As expected the folder contains files with timestamp & pid in name
    08/08/2013  11:00 AM            14,388 2013-08-08-11-00-01.158_1620.txt
    08/08/2013  11:00 AM            12,506 2013-08-08-11-00-01.485_936.txt
    08/08/2013  11:00 AM            12,994 2013-08-08-11-00-01.735_9328.txt
    08/08/2013  11:00 AM            12,024 2013-08-08-11-00-01.766_8624.txt
    08/08/2013  11:00 AM            13,902 2013-08-08-11-00-01.860_1756.txt
    08/08/2013  11:01 AM            15,142 2013-08-08-11-01-31.392_10120.txt
    08/08/2013  05:00 AM            14,982 _1692.txt
    However note the last file, it has a zero length date time value in the name
    The error recorded by PowerShell is
    get-date : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\Corp\Powershell\DMPRun-ScheduledTask.ps1:171 char:18
    +    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    +                  ~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-date:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    IE get-date has failed and returned a zero length field as the timestamp
    Can anyone think of a good reason why get-date would fail intermittently?
    Do I have to code defensively for base Powershell functions?

    I implemented David's suggestion and now I intermittently get
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_08_55_02.ps1:15 char:1
    + import-module Microsoft.Powershell.Utility
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand
    I added a trap chain (My Powershell skills do not yet include recursive trap coding, any suggestions welcome)
    trap {
        trap {
            "Trap1"
            "Exception: " + $_
            "Error: " + $Error[0]
            "Message: " + $_.Exception.Message
            "InnerException: " + $_.Exception.InnerException
            "StackTrace: " + $_.Exception.StackTrace
            "FailedItem: " + $_.Exception.ItemName
            import-module Microsoft.Powershell.Management
            import-module Microsoft.Powershell.Security
            import-module Microsoft.Powershell.Utility
        "Trap2"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        import-module Microsoft.Powershell.Management
        import-module Microsoft.Powershell.Security
        import-module Microsoft.Powershell.Utility
    import-module Microsoft.Powershell.Management
    import-module Microsoft.Powershell.Security
    import-module Microsoft.Powershell.Utility
    trap {
        "Trap3"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        exit 1
    get-date
    Now I intermittently get ..
    Trap2
    Exception: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Error: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Message: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    InnerException:
    StackTrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew, MutexSecurity mutexSecurity)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew)
       at System.Management.Automation.AnalysisCache.CacheExportedCommands(PSModuleInfo module, Boolean force, ExecutionContext context)
       at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule, Boolean found, IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags,
    PSModuleInfo& module)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions, String name)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
       at System.Management.Automation.CommandProcessor.ProcessRecord()
    FailedItem:
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_09_19_52.ps1:26 char:1
    + import-module Microsoft.Powershell.Security
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand

  • Get the filename after an outbound file adapter operation

    Hello,
    I am calling an outbound file adapter operation in BPEL (10.1.3.3) - using a filename mask with a sequence (i.e. po_%SEQ%.xml). I would like to provide the filename created at run-time (i.e. po_123.xml) to my BPEL process so I can send this in an e-mail. Is this possible?
    Thanks in advance!
    Rod
    Message was edited by: Rod - fixed a typo
    Rod Tunnels

    Well, I took a different approach - which looks like it will work. Instead of letting the adapter decide the filename - I'm generating that in BPEL and passing that to the adapter using the header variable. So ... nevermind. ;-)

  • Problem with loading  data from file in ../demo/file/test

    hi there,
    I am using ODI to load text files located on a UNIX server where ODI is installed.
    I am using the FILE_GENERIC data server and physical schema that came with ODI and I can reverse and load the demo files located in ../demo/file
    I created a sub-directory 'test' under ../demo/file and placed a file there.
    When I try to reverse this file (in directory ../demo/file/test) I get the error 'The directory ../demo/file/test specified in your schema does not exist'
    I am sure the userid has equal rights to both directories ../demo/file and ../demo/file/test
    What could I be missing?

    In the topology manager
    1. in the logical architecture : If it doesn't already exists (it should exist if your can use it on your local PC), you import the file technology
    2. In the physical architecture, you create your data server for files .In your case, it shoud already exist for same reason as above. Is has a blue icon under the file technology
    2. Select the Data Server, right click and select Insert Physical Schema . The Physical Schema window appears. On Definition tab, enter a name and then the path of your directory in the data schema field. No need to enyter a work schema for files.
    4. Go to the Context tab, Select a Context and an existing Logical Schema for this new Physical Schema.
    Select an existing Context in the left column, the type the name of a Logical Schema in the right column. This Logical Schema is automatically created and associated to this physical schema in this context.
    It should work but i have never experienced it on a Linux system...

  • Checking file exist using file exist operator

    Hi all,
    My environment is owb 9i. DB is oracle 9.2.0.8
    My business requirement is,
    If file exists in the landing directory the next instant my mapping should start execution other wise it should wait untill the file arrives there.
    How could i achive this functionality???
    For this i am utilizing the file exist operator in process flow.
    When the file exists in the specified directory i am able to execute the process flow quite fine but when the file doesnt exist in the specified directory the file exist operator is in wait state and even after when the file is placed into the directory, still the process flow remains in the wait state.
    please suggest me a way.
    thanks in advance.
    ram.

    Hi Ram,
    The problem you are hitting here is that there is no wait activity and no loop activity (yet) in the process flow editor. So it is hard to model this logically.
    Would it be a good idea to write shell script that does similar things? You could check for a file, pauze and check again. Then error out or succeed...
    In the 10gR2 release of OWB you can completely model this using waits and loops.
    Thanks,
    Jean-Pierre

  • (oracle.jbo.ConfigException) JBO-33001: Configuration file /tester.xcfg is

    I am getting the error "(oracle.jbo.ConfigException) JBO-33001: Configuration file /tester.xcfg is not found on the classpath" when I try to run the Application module.
    stack trace
    SEVERE: MDSConfigurationException encountered in parseADFConfigurationMDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
    oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
         at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
         at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
         at oracle.mds.config.CustConfig.<init>(CustConfig.java:242)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:1145)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:1218)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:781)
         at oracle.mds.core.MDSInstance.getMDSConfigFromDocument(MDSInstance.java:2788)
         at oracle.mds.core.MDSInstance.findAndStoreMDSInstanceWithCustConfig(MDSInstance.java:2621)
         at oracle.mds.core.MDSInstance.getOrCreateInstanceInternal(MDSInstance.java:2118)
         at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:812)
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:146)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:541)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:612)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:590)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:655)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:650)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.readAdfConfig(AppBundleInfoRT.java:341)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.loadData(AppBundleInfoRT.java:123)
         at oracle.javatools.resourcebundle.AppBundleInfoFactoryRT.createAppBundleInfo(AppBundleInfoFactoryRT.java:83)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfoUnlocked(ResourceBundleUtils.java:334)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfo(ResourceBundleUtils.java:325)
         at oracle.javatools.resourcebundle.ResourceBundleCacheConfig.getCurrentAppConfig(ResourceBundleCacheConfig.java:109)
         at oracle.javatools.resourcebundle.ResourceBundleManagerRT.<init>(ResourceBundleManagerRT.java:84)
         at oracle.javatools.resourcebundle.ResourceBundleManager.getResourceBundleManager(ResourceBundleManager.java:183)
         at oracle.javatools.resourcebundle.BundleFactory.getMap(BundleFactory.java:86)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:245)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:206)
         at oracle.jbo.common.StringManager.getStringFromBundle(StringManager.java:590)
         at oracle.jbo.common.StringManager.getStringInternal(StringManager.java:538)
         at oracle.jbo.common.StringManager.getString(StringManager.java:485)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:267)
         at oracle.jbo.common.JboExHelperLocalized.getErrorMsg(JboExHelperLocalized.java:278)
         at oracle.jbo.common.JboExceptionHelper.getLocalizedMessage(JboExceptionHelper.java:203)
         at oracle.jbo.common.JboExHelperLocalized.getLocalizedMessage(JboExHelperLocalized.java:157)
         at oracle.jbo.common.JboExceptionHelper.getMessage(JboExceptionHelper.java:147)
         at oracle.jbo.JboWarning.getMessage(JboWarning.java:231)
         at oracle.jbo.JboException.<init>(JboException.java:347)
         at oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper.<init>(ErrorHandler.java:42)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:442)
    Apr 23, 2013 5:24:47 AM oracle.javatools.resourcebundle.AppBundleInfoRT loadData
    SEVERE: { type : AppBundleInfoRT, id : 'en_US-ScmEss.oracle.apps.scm-null', moRefName : null, appBundleName : null, writable : false, dirty : false, hasMdsConfig : false, appOverrideBundle : null}: Fail to read adf-config.xml
    oracle.adf.share.ADFShareException: MDSConfigurationException encountered in parseADFConfiguration
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:209)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:541)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:612)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:590)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:655)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:650)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.readAdfConfig(AppBundleInfoRT.java:341)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.loadData(AppBundleInfoRT.java:123)
         at oracle.javatools.resourcebundle.AppBundleInfoFactoryRT.createAppBundleInfo(AppBundleInfoFactoryRT.java:83)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfoUnlocked(ResourceBundleUtils.java:334)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfo(ResourceBundleUtils.java:325)
         at oracle.javatools.resourcebundle.ResourceBundleCacheConfig.getCurrentAppConfig(ResourceBundleCacheConfig.java:109)
         at oracle.javatools.resourcebundle.ResourceBundleManagerRT.<init>(ResourceBundleManagerRT.java:84)
         at oracle.javatools.resourcebundle.ResourceBundleManager.getResourceBundleManager(ResourceBundleManager.java:183)
         at oracle.javatools.resourcebundle.BundleFactory.getMap(BundleFactory.java:86)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:245)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:206)
         at oracle.jbo.common.StringManager.getStringFromBundle(StringManager.java:590)
         at oracle.jbo.common.StringManager.getStringInternal(StringManager.java:538)
         at oracle.jbo.common.StringManager.getString(StringManager.java:485)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:267)
         at oracle.jbo.common.JboExHelperLocalized.getErrorMsg(JboExHelperLocalized.java:278)
         at oracle.jbo.common.JboExceptionHelper.getLocalizedMessage(JboExceptionHelper.java:203)
         at oracle.jbo.common.JboExHelperLocalized.getLocalizedMessage(JboExHelperLocalized.java:157)
         at oracle.jbo.common.JboExceptionHelper.getMessage(JboExceptionHelper.java:147)
         at oracle.jbo.JboWarning.getMessage(JboWarning.java:231)
         at oracle.jbo.JboException.<init>(JboException.java:347)
         at oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper.<init>(ErrorHandler.java:42)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:442)
    Caused by: oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
         at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
         at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
         at oracle.mds.config.CustConfig.<init>(CustConfig.java:242)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:1145)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:1218)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:781)
         at oracle.mds.core.MDSInstance.getMDSConfigFromDocument(MDSInstance.java:2788)
         at oracle.mds.core.MDSInstance.findAndStoreMDSInstanceWithCustConfig(MDSInstance.java:2621)
         at oracle.mds.core.MDSInstance.getOrCreateInstanceInternal(MDSInstance.java:2118)
         at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:812)
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:146)
         ... 35 more
    Apr 23, 2013 5:24:51 AM oracle.jbo.jbotester.MainFrame exit
    INFO: BC4J Tester exit code(-3)Please help me to solve this.
    Edited by: Manikanda Prabhu on Apr 23, 2013 5:29 AM

    I am getting the error "(oracle.jbo.ConfigException) JBO-33001: Configuration file /tester.xcfg is not found on the classpath" when I try to run the Application module.
    stack trace
    SEVERE: MDSConfigurationException encountered in parseADFConfigurationMDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
    oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
         at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
         at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
         at oracle.mds.config.CustConfig.<init>(CustConfig.java:242)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:1145)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:1218)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:781)
         at oracle.mds.core.MDSInstance.getMDSConfigFromDocument(MDSInstance.java:2788)
         at oracle.mds.core.MDSInstance.findAndStoreMDSInstanceWithCustConfig(MDSInstance.java:2621)
         at oracle.mds.core.MDSInstance.getOrCreateInstanceInternal(MDSInstance.java:2118)
         at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:812)
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:146)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:541)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:612)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:590)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:655)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:650)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.readAdfConfig(AppBundleInfoRT.java:341)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.loadData(AppBundleInfoRT.java:123)
         at oracle.javatools.resourcebundle.AppBundleInfoFactoryRT.createAppBundleInfo(AppBundleInfoFactoryRT.java:83)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfoUnlocked(ResourceBundleUtils.java:334)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfo(ResourceBundleUtils.java:325)
         at oracle.javatools.resourcebundle.ResourceBundleCacheConfig.getCurrentAppConfig(ResourceBundleCacheConfig.java:109)
         at oracle.javatools.resourcebundle.ResourceBundleManagerRT.<init>(ResourceBundleManagerRT.java:84)
         at oracle.javatools.resourcebundle.ResourceBundleManager.getResourceBundleManager(ResourceBundleManager.java:183)
         at oracle.javatools.resourcebundle.BundleFactory.getMap(BundleFactory.java:86)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:245)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:206)
         at oracle.jbo.common.StringManager.getStringFromBundle(StringManager.java:590)
         at oracle.jbo.common.StringManager.getStringInternal(StringManager.java:538)
         at oracle.jbo.common.StringManager.getString(StringManager.java:485)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:267)
         at oracle.jbo.common.JboExHelperLocalized.getErrorMsg(JboExHelperLocalized.java:278)
         at oracle.jbo.common.JboExceptionHelper.getLocalizedMessage(JboExceptionHelper.java:203)
         at oracle.jbo.common.JboExHelperLocalized.getLocalizedMessage(JboExHelperLocalized.java:157)
         at oracle.jbo.common.JboExceptionHelper.getMessage(JboExceptionHelper.java:147)
         at oracle.jbo.JboWarning.getMessage(JboWarning.java:231)
         at oracle.jbo.JboException.<init>(JboException.java:347)
         at oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper.<init>(ErrorHandler.java:42)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:442)
    Apr 23, 2013 5:24:47 AM oracle.javatools.resourcebundle.AppBundleInfoRT loadData
    SEVERE: { type : AppBundleInfoRT, id : 'en_US-ScmEss.oracle.apps.scm-null', moRefName : null, appBundleName : null, writable : false, dirty : false, hasMdsConfig : false, appOverrideBundle : null}: Fail to read adf-config.xml
    oracle.adf.share.ADFShareException: MDSConfigurationException encountered in parseADFConfiguration
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:209)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adf.share.config.ADFConfigImpl.getResultFromComponent(ADFConfigImpl.java:541)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:612)
         at oracle.adf.share.config.ADFConfigImpl.getConfigObject(ADFConfigImpl.java:590)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:655)
         at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:650)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.readAdfConfig(AppBundleInfoRT.java:341)
         at oracle.javatools.resourcebundle.AppBundleInfoRT.loadData(AppBundleInfoRT.java:123)
         at oracle.javatools.resourcebundle.AppBundleInfoFactoryRT.createAppBundleInfo(AppBundleInfoFactoryRT.java:83)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfoUnlocked(ResourceBundleUtils.java:334)
         at oracle.javatools.resourcebundle.ResourceBundleUtils.getAppBundleInfo(ResourceBundleUtils.java:325)
         at oracle.javatools.resourcebundle.ResourceBundleCacheConfig.getCurrentAppConfig(ResourceBundleCacheConfig.java:109)
         at oracle.javatools.resourcebundle.ResourceBundleManagerRT.<init>(ResourceBundleManagerRT.java:84)
         at oracle.javatools.resourcebundle.ResourceBundleManager.getResourceBundleManager(ResourceBundleManager.java:183)
         at oracle.javatools.resourcebundle.BundleFactory.getMap(BundleFactory.java:86)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:245)
         at oracle.javatools.resourcebundle.BundleFactory.getBundle(BundleFactory.java:206)
         at oracle.jbo.common.StringManager.getStringFromBundle(StringManager.java:590)
         at oracle.jbo.common.StringManager.getStringInternal(StringManager.java:538)
         at oracle.jbo.common.StringManager.getString(StringManager.java:485)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
         at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:267)
         at oracle.jbo.common.JboExHelperLocalized.getErrorMsg(JboExHelperLocalized.java:278)
         at oracle.jbo.common.JboExceptionHelper.getLocalizedMessage(JboExceptionHelper.java:203)
         at oracle.jbo.common.JboExHelperLocalized.getLocalizedMessage(JboExHelperLocalized.java:157)
         at oracle.jbo.common.JboExceptionHelper.getMessage(JboExceptionHelper.java:147)
         at oracle.jbo.JboWarning.getMessage(JboWarning.java:231)
         at oracle.jbo.JboException.<init>(JboException.java:347)
         at oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper.<init>(ErrorHandler.java:42)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:442)
    Caused by: oracle.mds.config.MDSConfigurationException: MDS-00035: cannot load the class: oracle.as.scheduler.metadata.EssCC.
         at oracle.mds.config.CustConfig.getCustClassList(CustConfig.java:365)
         at oracle.mds.config.CustConfig.loadFromBean(CustConfig.java:277)
         at oracle.mds.config.CustConfig.<init>(CustConfig.java:242)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:1145)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:1218)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:781)
         at oracle.mds.core.MDSInstance.getMDSConfigFromDocument(MDSInstance.java:2788)
         at oracle.mds.core.MDSInstance.findAndStoreMDSInstanceWithCustConfig(MDSInstance.java:2621)
         at oracle.mds.core.MDSInstance.getOrCreateInstanceInternal(MDSInstance.java:2118)
         at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:812)
         at oracle.adf.share.config.ADFMDSConfig.parseADFConfiguration(ADFMDSConfig.java:146)
         ... 35 more
    Apr 23, 2013 5:24:51 AM oracle.jbo.jbotester.MainFrame exit
    INFO: BC4J Tester exit code(-3)Please help me to solve this.
    Edited by: Manikanda Prabhu on Apr 23, 2013 5:29 AM

  • How to test operating systems

    Hi!
    I need to test operating systems (windows/MAC) on runtime of AIR application?
    You can help me?
    Thanks!

    Hi Leonardo,
    I hope I understood your problem right and I hope that this link will be of help: http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html
    With best regards,
    Barna Biro

  • Error when using %@ include file="/test.jsp"%&

    UsingNitrox version 2.1 M3 (build 419 06022005):
    with jdk version: 1.5.0_03 and Tomcat 5.5.9
    This is the error :cry: when using <%@ include file="/test.jsp"%> in jsp:
    Severity     2
    The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (test.jsp)
    It used to work in previuos version of Nitrox. I can't use struts tiles because the tiles content is dynamic (run time) and I need it to be static (at compile time).
    Have you encountered this problem? What is the fix? Nitrox bug?
    I need your help please,
    Alberto

    M7,
    I found the problem :wink: . In the java Build path having the default (ALL) is not picking up the content of the package. I had to use add multiple and include all the folders and subfolders (many L) in my packages. After that I added *.java and *.properties to select all the java files. Now it is working. I assume this is a bug in Nitrox. The default ALL should include the all the files in the path.
    Thanks,
    Alberto

  • ORA-31001:Invalid resource handle or path name"/apps/batchadm/files/test.xm

    Hi,
    When i am trying to parse the xml document using XDB API. I passed the XML file path to the parse function and making use of that at below lines of code.
    xmlparser.setBaseDir(prsr, dir);
    xmlparser.parse (prsr, dir || '/' || file_in);
    In thsi sceneraio it is giving the below error saying invalid path. But i am giving the right path. And even the file having all permission( 777).
    Can any please help me why i am getting this error even if i mentioned the correct path? Is there anything related the permission grants?
    ORA-31001: Invalid resource handle or path name "/apps/batchadm/files/test.xml"
    ORA-06512: at "SYS.XDBURITYPE", line 11
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 142
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    ORA-06512: at "XDB.DBMS_XMLPARSER", line 119
    ORA-06512: at "SIGCAP.PARSE_DOCUMENT", line 11
    Thanks,
    shashi

    Could be privs on OS or database level. Check and see what happens if grant yourself the DBA role. Check if the database software owner (ps -ef | grep pmon) is allowed to write in that directory and/or create a file in that directory. Does the OS make use of ACL's (and/or is, for instance Secure, Linux used)....?

  • I downloaded microsoft office to my MBP and my question is how do i get the right file or operating system to open it and so that i can use it?

    i downloaded microsoft office to my MBP and my question is how do i get the right file or operating system to open it and so that i can use it?

    Welcome to the Apple Support Communities
    There are two Office versions: Office for Windows, and Office for Mac.
    I suspect that you have downloaded Office for Windows, and you can use it if you install Windows, but a cheaper and easiest way to use Office is to use Office for Mac, so you won't have to install Windows. See > http://www.microsoft.com/mac

  • I have an iMac(mid2010) running Pages v5.5.1 on OS X 10.10. Why can I not save or share documents. The error message is You can't save the file "TEST.pages" because the volume is read only.

    I have an iMac(mid2010) running Pages v5.5.1 on OS X 10.10. Why can I not save or share documents. The error message is You can’t save the file “TEST.pages” because the volume is read only.
    I get the same message when using Numbers so I presume it is a OS problem

    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Back up all data before proceeding.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button
    Select
               ▹ Restart
    from the menu bar.

  • The term 'new-object' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have a script that runs well the vast majority of the time.  On occasion I get an exception.  I would appreciate any insight as to why it fails on occasion.  I can't understand why the new-object cmdlet wouldn't be recognized:
    Message: The term 'new-object' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    Source: System.Management.Automation
    StackTrace:    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)
       at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, CommandOrigin commandOrigin, Nullable`1 useLocalScope)
       at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
       at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[] redirections, ExecutionContext context)
       at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
       at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    Here is the script I am running:
    param([string]$endpoint)
    $ErrorActionPreference = "Stop";
    try
     [System.Reflection.Assembly]::LoadFile("D:\dotNET_Apps\dotNETCOExBatch\DotNETCOExBatch\bin\DotNETCOExBatch.dll")
     $schedule = new-object DotNETCOExBatch.CallService
     $reply = $schedule.CallWebService($endpoint)
     if ($reply)
      $host.setshouldexit(0)
     else
      $host.setshouldexit(8)
    Catch
     $nl = [Environment]::NewLine
     $evt=new-object System.Diagnostics.EventLog("Application")
     $evt.Source="BatchPowerShell"
     $infoevent=[System.Diagnostics.EventLogEntryType]::Error
     $batchException = $_.Exception
     $logMessage = " "  
     while ($batchException)
      $exMessage = $batchException.Message
      $exStackTrace = $batchException.StackTrace
      $exSource = $batchException.Source
      $logMessage += "$nl $nl Message: $exMessage $nl $nl Source: $exSource $nl $nl StackTrace: $exStackTrace" 
      $batchException = $batchException.InnerException 
     $evt.WriteEntry(" Error starting or process cancellation of $endpoint $logMessage",$infoevent)
     $host.setshouldexit(15)

    Hi,
    Please close your current powershell console, and start a new Window, and then check the result.
    Like David replied, this is a strange issue, hard to find the cuase, but I will report the issue, hope
    someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Regards,
    Yan Li
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Cataleya Li
    TechNet Community Support

Maybe you are looking for

  • Error message when open a pdf

    I am not able to open any pdf.   I have unstalled the reader but the error message still the same and not allowing me to install again.   Please advise how to fix this error.   I am using Windows 7. install_reader11_en_gtbd_chrd_dn_aaa_aih.exe  conta

  • User exit for PGI via delivery (Vl02N)

    Hi Folks Can you suggest me appropriate user exit which can be used during PGI for delivery in Vl02N. This should get triggered when POST PGI tab is hit in VL02N. Via USer exit I want to change the GL account in the accounting document for PGI ( GL a

  • [CMS] Is some one running Zope/Plone on AL ?

    Hi, I'm mostly *newbie* on AL (runs flawlesly on my Dell Lattitude l400*), and would like to know wether somebody here runs Zope / Plone2 on it ? 'Cause I'm willing to install AL on an old PII Deschutte 192Mo RAM to build a NAT router + Zope/Plone2 s

  • PXA Storage

    Hi, I am saving a PO, and I am getting a short dump with message "No PXA storage space available at the moment". Can somebody tell me how toset the PXA storage space? Thanks Kishor

  • Do we need projection rule to create object in CS?

    Experts, I understand that if we want to create an object in Metaverse during synch from CS, projection rule is required. However what is the case during data flow from Metaverse to CS. If i just defined joining rule, will object get created in CS(If