Compiling error in my test file for Reader class.

I did a small program trying to test Reader class, here is my code:
package testfilereader;
import java.io.*;
import java.io.Reader;
import java.io.InputStream;
* Title:
* Description:
* Copyright: Copyright (c) 2001
* Company:
* @author
* @version 1.0
public class FileTest {
public static void main(String args[]){
Byte buff[] = new Byte[80];
try{
InputStream r = new FileInputStream("test.txt");
int i = r.read(buff);
String s = new String(buff);
System.out.println(s);
}catch(NullPointerException e){}
catch(IOException e2){}
But I continue to get compiling errors:
C:\>javac FileTest.java
FileTest.java:19: cannot resolve symbol
symbol : method read (java.lang.Byte[])
location: class java.io.InputStream
int i = r.read(buff);
^
FileTest.java:20: cannot resolve symbol
symbol : constructor String (java.lang.Byte[])
location: class java.lang.String
String s = new String(buff);
Please advise what is wrong here.

Replace Byte with byte - the methods
expect arrays of byte; not Byte (which is a simple
class wrapper for byte).Hi, I changed to:
byte buff[] = new byte[80];
Same errors, any other ideas?

Similar Messages

  • Open file for reading and allow access by others

    How can I open a file for reading and still allow others to access (read and write) the file?  I plan to keep this file open for the duration of my program and close it at the end.  However while my program is running another program will need access to the file so it can write to it.  I may be wrong, but I dont think that setting the appropriate permission will solve the problem...  Thank you for your time.
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    hi jmcbee,
          I think as long as "readers" open a file as "ReadOnly", then the OS (at least Windows) will allow another process to open and write to the same file without a problem.  It's been a while since I've done this - maybe 7 years - and I may have opened the "writer" first, though doubt it makes a difference.
    Have you tried?
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • My daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    my daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    If you know that you will not be asked to design GUI interfaces, and the C programming course will adhere to command line compilation environments, then get the Xcode command-line developer tools, and skip the extra complication of Xcode until you absolutely need it. Apple has kicked GNU C to the curb and is rightly so, using Clang/LLVM compiler technology.
    Sign up for a free Apple Developer account using your Apple ID, and then visit the Mac Dev Center, and towards the bottom of the page, you will see additional downloads. Click on the associated, all down loads link. Know your OS X version beforehand, as the command-line tool releases are tied to general operating system versions, and the most recent Xcode version.  That said, there are currently two March 9, 2015 command-line tools for Xcode 6.2 — one for OS X 10.9 Mavericks, and the other for OS X Yosemite.

  • Error in juit test case for struts2 action class using StrutsSpringTestCase

    Hi
    I am getting some error when i am running my Struts2 Action class junit test case using StrutsSpringTestCase class (which is in struts2 junit plugin 2.1.8 version)
    Here is the code....
    package ipl.admin.action.test;
    import java.sql.Timestamp;
    import java.util.Date;
    import org.apache.struts2.StrutsSpringTestCase;
    import ipl.admin.action.RoleMasterNewAction;
    import ipl.admin.beans.RoleMasterNewBeanRemote;
    import com.opensymphony.xwork2.ObjectFactory;
    public class RoleMasterNewActionTest extends StrutsSpringTestCase {
         //XmlBeanFactory bf = new XmlBeanFactory(new ClassPathResource("applicationContext.xml", getClass()));
         RoleMasterNewAction action = new RoleMasterNewAction();
         RoleMasterNewBeanRemote roleMasterBeanNewRemote;
         public RoleMasterNewBeanRemote getRoleMasterBeanNewRemote() {
              return roleMasterBeanNewRemote;
         public void setRoleMasterBeanNewRemote(
                   RoleMasterNewBeanRemote roleMasterBeanNewRemote) {
              this.roleMasterBeanNewRemote = roleMasterBeanNewRemote;
         public void setUp() throws Exception {
              super.setUp();
              ObjectFactory.setObjectFactory(new ObjectFactory());
         public void testDoSomeThing() throws Exception {
              //System.out.println(bf.getBean("loginIntercepter"));
              assertTrue(action.doSomeThing());
    }I am getting error for this code. Below is the error details.
    2010-05-03 17:28:14,671 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-default.xml]
    2010-05-03 17:28:14,859 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-plugin.xml]
    2010-05-03 17:28:14,999 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts.xml]
    2010-05-03 17:28:15,015 WARN [org.apache.struts2.config.Settings] - Settings: Could not parse struts.locale setting, substituting default VM locale
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-Lookup
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-label
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-headings
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-messages
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-setup
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.common-errors
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-label
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-lookup
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-headings
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-jndinames
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-jndinames
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-labels
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-headings
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-alert
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.form
    2010-05-03 17:28:15,140 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - Initializing Struts-Spring integration...
    2010-05-03 17:28:15,171 FATAL [org.apache.struts2.spring.StrutsSpringObjectFactory] - ********** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION **********
    Looks like the Spring listener was not configured for your web app!
    Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
    You might need to add the following to web.xml:
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener> But already i have the listener configurations in my web.xml .
    Thanks in advance...

    I guess it wasn't reading the right web.xml file.
    You may prove it by deleting your web.xml file (don't forget to make a backup), and then run the test again to see whether the error is the same.

  • Compilation error when deploying EAR file on standalone OC4J...

    Hi All,
    I am getting the following error when trying to deploy an EAR File describing a web service from the Jdeveloper IDE to the stanalone OC4J server instance.
    ==========================================================
    Uploading file JavaWebServiceEmp-GetDates-WS.ear ...
    Application Deployer for JavaWebServiceEmp-GetDates-WS STARTS.
    Copy the archive to C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear
    Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear begins...
    Unpacking JavaWebServiceEmp-GetDates-WS.ear
    Done unpacking JavaWebServiceEmp-GetDates-WS.ear
    Unpacking WebServices.war
    Done unpacking WebServices.war
    Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear ends...
    Starting application : JavaWebServiceEmp-GetDates-WS
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize WebServices begins...
    Initialize WebServices ends...
    Started application : JavaWebServiceEmp-GetDates-WS
    Binding web application(s) to site default-web-site begins...
    Binding WebServices web-module for application JavaWebServiceEmp-GetDates-WS to site default-web-site under context root JavaWebServiceEmp-GetDates-context-root
    Operation failed with error:
    Error compiling :C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS\WebServices: compilation error occurred
    Deployment failed
    Elapsed time for deployment: 1 minute, 50 seconds
    ==========================================================
    Please could somebody help me out with this? Basically I am not able to understand how to deploy the EAR file created under the MyWork folder under jdeveloper\jdev to the applications folder of j2ee\home. I am new to both EAR deployment as well as web services and would like to get a good understanding of the working of a web service which includes SOAP components and the like.
    Any help with regards to building and deploying a web service on standalone OC4J would be appreciated. Thanks a lot.

    Initially I followed the following steps to start up OC4J:-
    Settings :-
    1) Jdeveloper is setup under C:\Lester\Testing as Jdev10.1.3 folder
    2) I downloaded the extended oc4j zip folder and unzipped it under a new folder oc4j at the location C:\Lester\Testing\Jdev10.1.3
    Steps followed to run oc4j and deploy application
    1) Setup a standalone oc4j from the jdeveloper ide giving C:\Lester\Testing\Jdev10.1.3\oc4j as the root folder for oc4j.
    2) While doing step 1 added password and deployed it. Changed server.xml under C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/config
    to include the following:-
    <shared-library name="global.libraries" version="1.0" library-compatible="true">
    <code-source path="C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/applib"/>
    </shared-library>
    AND
    <java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" bindir="C:\Jdeveloper\jdk" extdirs="C:\Jdeveloper/jdk" />
    3) Opened a command prompt and went to the location C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home and ran the following command:-
    --> java -jar oc4j.jar
    4) Deployment: Then I deployed my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
    using:-
    --> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -deploy -file PrimeNumberService.ear -deploymentName DocStyleWebService
    5) Web Binding: Then I bound my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
    using:-
    --> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -bindWebApp DocStyleWebService PrimeNumberService_web http-web-site /docws
    6) Steps 4 and 5 went through without error.
    7) However when trying to access the web service using the following link I get the standard HTTP 404 (Page not found) error:-
    http://localhost:8888/docws/prime
    This was before I tried deploying the web service through jdeveloper IDE.
    I had tried the document web service given at the following link:-
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/docservice/index.html
    from the web services how to links
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/index.html
    Please could somebody help me out? Also periodically I recieve the ojc.exe not found error when trying to deploy an application using jdeveloper ide. There are two conflicting jdeveloper versions one comes with this exe and one without.
    Message was edited by:
    Lester N

  • Compiler error  type of object in for (Class obj : Items) - why?

    Hi all,
    I'm new to Java generics and am in the process of converting some
    legacy code. I have encountered a particular error which I do not
    understand the reason for, since I think the compiler has enough
    information about the code to work out type information. The following
    code shows a test class which demonstrates this error:
    import java.util.Collection;
    public class Test
        interface Base {}
        static class Impl1 implements Base{}
        public <T extends Base> Collection<T> getCollection(Class<? extends Base> cls)
            return null;
        void someMethod()
            for ( Impl1 obj : getCollection( Impl1.class ))
                // *** compiler complains about the line above ***
                // compiler says:
                // Test.java:22: incompatible types
                // found   : Test.Base
                // required: Test.Impl1
                //        for ( Impl1 obj : getCollection( Impl1.class ))
                //                                        ^
        void someMethod2()
            Collection<Impl1> coln = getCollection(Impl1.class);
            for (Impl1 obj : coln)
                // do something here with obj
    }Why should the compiler complain where it does ( the line marked with
    asterisks) in someMethod, but does not reject the declaration statement
    in someMethod2? I would have assumed both are the same and the
    compiler has the same type information at its disposal to determine
    the correct type.
    Cheers,
    Bonny

    The Java 5 compiler not only looks at a method's name and arguments, but also at its return value in order to determine whether a method is callable and what type should be infered for its type parameters.
    In your example the type parameter T is only used in the declaration of the method's return type. Note that there is no relation between T and the type of the argument cls!
    Thus, the compiles needs to know what type of variable the return value will be assigned to.
    Hence, someMethod2 can be resolved, whereas in someMethod there is no assignment of the return value. (Rather, an implicit call to Iterable.iterator()).
    You can solve this problem by forming a relation between the method's argument, its return type and its type parameter. Just declare the method like this:
    public <T extends Base> Collection<T> getCollection(Class<T> cls)
            return null;
        }

  • Can't get OPP service started after OATM due to can't open file for reading

    This is my second run on the OATM upgrade. OPP (and thus XML reports) came up fine after the 2nd run. After this run, had some issues with enqueing and solved them in an S/R with Oracle, but now I can't start OPP. I have tried all sorts of things, like aborting it in OATM, restarting, shutting down instance, running cmclean twice, resubmitting request, etc. Here is the error I get:
    As System Administrator in forms, go to:
    Concurrent -> Manager -> Administer
    -> pick Output Post Processor (from the many manager in the list)
    -> by the way it says "Activating" under status, seems stuck there.
    -> then hit the Processes button
    -> it will show a long list of "Terminated" and default to the first
    one at the top.
    -> Hit the "Manager Log" button
    -> you now get
    "APP-FND-01632: Cannot open file
    /sechi/applcsf/log/SECHI_orav880d/FNDOPP1380237.txt for reading
    Cause: [Routine] encountered an error when attempting to open file
    sechi/applcsf/log/SECHI_orav880d/FNDOPP1380237.txt for reading
    Action: Verify that the filename is correct, the environment variables
    controlling that filename are correct, and the file exists.
    Action: Verify that protections on that file permit reading by this
    program
    - but what is wierd is that the permissions on this dir are 777. I can see old OPP logs in that directory from before OATM. I can manually create a file with the name it complains about , then the app opens up the blank file with nothing in it. It seems that file is not getting created, not that it can't be opened.
    If I need to change the log level of OPP please also tell me how to do that if it would provide some clues.
    THanks Marvin

    One more thing I am going to try first....
    I am going to change the service ID of the OPP manager. It keeps trying
    to restart the dead process maybe that it is..
    Starting INVMGR Concurrent Manager : 25-JUN-2010 20:31:34
    Starting INVMGR Concurrent Manager : 25-JUN-2010 20:31:34
    Starting INVMGR Concurrent Manager : 25-JUN-2010 20:31:34
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:34
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:34
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:35
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:35
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:35
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:35
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:35
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:35
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:36
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:36
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:36
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:36
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:36
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:36
    Starting STANDARD Concurrent Manager : 25-JUN-2010 20:31:36
    Starting MRPMGR Concurrent Manager : 25-JUN-2010 20:31:36
    Starting MRPMGR Concurrent Manager : 25-JUN-2010 20:31:36
    Starting MRPMGR Concurrent Manager : 25-JUN-2010 20:31:36
    Starting MRPMGR Concurrent Manager : 25-JUN-2010 20:31:36
    Starting MRPMGR Concurrent Manager : 25-JUN-2010 20:31:36
    Process monitor session ended : 25-JUN-2010 20:31:36
    Process monitor session started : 25-JUN-2010 20:33:36
    Starting WFMGSMD Concurrent Manager : 25-JUN-2010 20:33:37
    Found dead process: spid=(999999), cpid=(1383584), Service Instance=(1012)
    Starting WFMGSMS Concurrent Manager : 25-JUN-2010 20:33:37
    Found dead process: spid=(999999), cpid=(1383585), Service Instance=(1013)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:33:37
    Found dead process: spid=(999999), cpid=(1383586), Service Instance=(1011)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:33:37
    Found dead process: spid=(999999), cpid=(1383587), Service Instance=(1011)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:33:38
    Found dead process: spid=(999999), cpid=(1383588), Service Instance=(1011)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:33:38
    Found dead process: spid=(999999), cpid=(1383589), Service Instance=(1011)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:33:38
    Found dead process: spid=(999999), cpid=(1383590), Service Instance=(1011)
    Process monitor session ended : 25-JUN-2010 20:33:38
    Process monitor session started : 25-JUN-2010 20:35:38
    Starting WFMGSMD Concurrent Manager : 25-JUN-2010 20:35:39
    Found dead process: spid=(999999), cpid=(1383591), Service Instance=(1012)
    Starting WFMGSMS Concurrent Manager : 25-JUN-2010 20:35:39
    Found dead process: spid=(999999), cpid=(1383592), Service Instance=(1013)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:35:39
    Found dead process: spid=(999999), cpid=(1383593), Service Instance=(1011)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:35:39
    Found dead process: spid=(999999), cpid=(1383594), Service Instance=(1011)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:35:39
    Found dead process: spid=(999999), cpid=(1383595), Service Instance=(1011)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:35:40
    Found dead process: spid=(999999), cpid=(1383596), Service Instance=(1011)
    Starting FNDCPOPP Concurrent Manager : 25-JUN-2010 20:35:40
    Found dead process: spid=(999999), cpid=(1383597), Service Instance=(1011)
    Process monitor session ended : 25-JUN-2010 20:35:40

  • Error while creating Ear File for project Containing (WAR+MAR) in jdev

    hi,
    I am trying to deploy my adf application containing MDS customization.While creating EAR from application properties--->deploy--->deploye to EAR i am getting following error.
    Wrote MAR file to C:\JDeveloper\mywork\MDSApp\deploy\AutoGeneratedMar.mar
    [04:40:07 PM] Wrote Web Application Module to C:\JDeveloper\mywork\MDSApp\ViewController\deploy\MDSApp_ViewController_webapp1.war
    *[04:40:07 PM] Warning: Some of the customization documents under '/' are packaged as part of WAR. This metadata cannot be accessed from WAR using MDS.*
    *[04:40:07 PM] Info: Namespace '/xliffbundles' is mapped to deploy-target metadata-store-usage 'MAR_TargetRepos' in adf-config.xml but no metadata from the namespace is included in the MAR*.
    [04:40:07 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\MDSApp\deploy\MDSApp_application1.ear
    [04:40:07 PM] Elapsed time for deployment: 4 seconds
    [04:40:07 PM] ---- Deployment finished. ----
    my adf-config.xml is as below
    <?xml version="1.0" encoding="windows-1252" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config"
    xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
    <adf-property name="adfAppUID" value="MDSApp-3718"/>
    </adf:adf-properties-child>
    <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
    <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
    credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
    <sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"
    jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"
    authorizationEnforce="true"
    authenticationRequire="true"/>
    </sec:adf-security-child>
    <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
    <mds-config xmlns="http://xmlns.oracle.com/mds/config" version="11.1.1.000">
    <cust-config>
    <match path="/">
    <customization-class name="oracle.model.mycompany.SiteCC"/>
    <customization-class name="oracle.adf.share.config.UserCC"/>
    </match>
    </cust-config>
    <persistence-config>
    <metadata-namespaces>
    <namespace path="/xliffbundles" metadata-store-usage="MAR_TargetRepos"/>
    </metadata-namespaces>
    <metadata-store-usages >
    <metadata-store-usage id="MAR_TargetRepos" deploy-target="true">
    <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
    <property name="jndi-datasource" value="jdbc/mds/DEV_MDS"/>
    <property name="partition-name" value="part1"/>
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    </mds-config>
    </adf-mds-config>
    <adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/config">
    <taglib-config>
    <taglib uri="http://xmlns.oracle.com/adf/faces/rich">
    <tag name="column">
    <attribute name="displayIndex">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="frozen">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="noWrap">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="selected">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="visible">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="width">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    <tag name="showDetailHeader">
    <attribute name="disclosed">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    <tag name="panelSplitter">
    <attribute name="collapsed">
    <persist-changes>true</persist-changes>
    </attribute>
    <attribute name="splitterPosition">
    <persist-changes>true</persist-changes>
    </attribute>
    </tag>
    </taglib>
    </taglib-config>
    <persistent-change-manager>
    <persistent-change-manager-class>oracle.adf.view.rich.change.MDSDocumentChangeManager</persistent-change-manager-class>
    </persistent-change-manager>
    </adf-faces-config>
    </adf-config>

    hi frank,
    If you have any idea plz reply...We r stucked with metadat-namespace path attribute.

  • Error while importing zip file for second time to B2B through ant script

    [echo] args=import
    importstatus:
    [echo] Commandline arguments 1: [import]
    [echo] Import with overwrite=true
    [echo] B2BCommandLineUtility: importRepository: Error messages:
    [echo] MDS-00521: error while reading document /soa/b2b/tpa_JOvrtiV-7030143
    019445112136.xml from metadata repository
    [echo] MDS-00520: failure to read document /soa/b2b/tpa_JOvrtiV-70301430194
    45112136.xml because it is not in the metadata repository
    [echo] MDS-00911: Document with name "/soa/b2b/tpa_JOvrtiV-7030143019445112
    136.xml" and version 16 does not exist in the repository.
    [echo] ORA-01403: no data found
    [echo] ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 407
    [echo] ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 603
    [echo] ORA-06512: at line 1
    [echo]
    [echo] ORA-01403: no data found
    [echo] ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 407
    [echo] ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 603
    [echo] ORA-06512: at line 1
    [echo]
    [echo] ORA-01403: no data found
    [echo] ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 407
    [echo] ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 603
    [echo] ORA-06512: at line 1
    [echo]
    [echo]
    Can anybody plz help???
    Thanks in Advance!!!

    Hi,
    Even I am getting the same error while importing the .zip file for the second time through B2B console-->Administration-->Import/export tab.
    But again it works for the third time..
    Error Message:
    Import of file OriginalProject.zip failed. MDS-00521: error while reading document /soa/b2b/tpa_MnjhBHh-70301432125893445241.xml from metadata repository MDS-00520: failure to read document /soa/b2b/tpa_MnjhBHh-70301432125893445241.xml because it is not in the metadata repository MDS-00911: Document with name "/soa/b2b/tpa_MnjhBHh-70301432125893445241.xml" and version 34 does not exist in the repository. ORA-01403: no data found ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 407 ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 603 ORA-06512: at line 1 ORA-01403: no data found ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 407 ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 603 ORA-06512: at line 1 ORA-01403: no data found ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 407 ORA-06512: at "DEV_MDS.MDS_INTERNAL_SHREDDED", line 603 ORA-06512: at line 1
    Please help...

  • I'm getting a message that there is an error in the installer file for the 30 day trial of Acrobat Pro - Can that be fixed?

    I just tried to download - 3 times - 2 from I.E. 11 and 1 from Chrome - all get the same result that there is an error in the installer file.
    I'm not seeing any way to contact Adobe directly, only forums and this one seems closest to what might be helpful.  Thanks for any advice you can provide.

    use a different (wired) internet connection and/or a download manager.  you can also try dl'g from prodsigntools.com
    to dl from prodesign.com, go here:  http://prodesigntools.com/all-adobe-cs5-direct-download-links.html
    if you have a problem starting the download, you didn't follow all 7 steps, or your browser does not accept cookies. 
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com). 
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com or initiates the download of an incorrect (eg, current) version.

  • Open a file for reading

    Hello,
    I have a text file and I want to read each line at a time.
    I try to make a script but I have an error at begining that I don't understand :
    -- START CODE
    set WordListeChoose to (path to (choose file with prompt " Choose a file" default location (path to documents folder)))
    set fileID to open for access file WordListeChoose
    -- END CODE
    I'm getting an error "Can't make alias "Macintosh HD:Users:hdrapin:text.txt:" into type constant.
    The first Variable's content it's the alias to the path...
    What did I missed ?
    Thanks a lot
    HDR

    HDR:
    You are very close. When you set your variable (WordListeChoose), you do not need to set it to the path to the file chosen, just set it to the chosen file directly. Using this method, you also do not need to use the term file when you open that chosen file for access. This script functions correctly:
    set WordListeChoose to choose file with prompt " Choose a file" default location (path to documents folder)
    set fileID to open for access WordListeChoose
    set read_File to read fileID
    close access fileID
    set each_Line to every paragraph of read_File
    -->{"try to duplicate this", "and this", "and this as well.", "", "There is one blank line above", "and two below", "", "", ""}
    After you have read the file, you can create a list that contains every line of the chosen file, as I have shown.
    Good luck,
    Message was edited by: casdvm

  • I am getting error while creating Control file for a fla file upoad in HANA

    Hi Experts,
    I am getting the following error when I try to create crtrol file for a flat file extraction in SAP HANA.
    Could not execute 'import data into table P935718."COPATBL" from 'COPATBL.csv' record delimited by '\n' fields ...'
    SAP DBTech JDBC: [257] (at 14): sql syntax error: incorrect syntax near "into": line 2 col 1 (at pos 14)
    Here is the code I have used to create control file after I creating the table.
    import data
    into table P935718."COPATBL"
    from 'COPATBL.csv'
        record delimited by '\n'
        fields delimited by ','
        optionally enclosed by '"'
    error log 'P935718.COPATBL.err'
    p935718 is my user ID, COPATBL is my table created, COPABL.CSV is a flat file.
    Please help me in this regard.
    Thanks,
    Guna

    Hello,
    guessing from the error message it looks that you are trying to execute "import data" as SQL command.
    Please note that import data is NOT SQL command but it is syntax for control file. You need to create file with this syntax on server and then use command: IMPORT FROM '/<path>/<filename>.ctl'
    In a shortcut:
    1.- create comma separated CSV file with your data - <source cvs>.csv
    2.- upload CVS file to HANA server
    3.- create the control file <filename>.ctl:
    import data
    into table <schema>."<table name>"
    from '<source cvs>.csv'
    record delimited by '
    fields delimited by ','
    optionally enclosed by '"'
    error log '<file name>.err'
    4.- execute command:
    IMPORT FROM '/<path>/<filename>.ctl'
    Please check following threads:
    How to load CSV files into HANA
    Will HANA supports Bulkload
    Tomas

  • Error while uploading .xml file for Customer/Vendor List for Italy

    Hi All,
    We are facing problem while uploading the .xml file in DMEE transaction for the new Customer/Vendor List for Italy.
    We have followed the entire process given in the OSS Note(1090857).
    We have SAP 4.6c and followed the below steps:
    1. Created ID-FI-IT Development class
    2. Added domains
    3. Added Data elements
    4. Tried to upload the given .xml file and got any error saying ".xml file could not be interpreted".
    Also there is a .SAR file mentioned to upload if we receive any errors while uploading .xml file.
    Tried uploading the .SAR file also. STill we are recieving the same Error.
    Can any one of you help us out.
    Thanks in Advance.
    Ramesh

    Ok, we upload .SAR file in this way:
    1. unpack .SAR file with SAPCAR.EXE program. Yuo obtain 2 files
    R492445.P9C and K492445.P9C
    2. put K492445.P9C in directory \SAPMNT\TRANS\COFILES and put R492445.P9C in directory \SAPMNT\TRANS\DATA of your system (DEV, TST or PRD)
    3. Use Tx STMS. If You want create DMEE tree in DEV system, go to DEV import queue. Choose menu Extras | Other requests | Add. Insert P9CK492445 in Transp. request field.
    4. Import the request. This creates the DMEE tree. You don't need ti upload XML file after. You can see the DMEE tree created with Tx DMEE and inserting
    Tree type        UMS1            
    Format tree     IT_CUST_VEN_LIST
    5. after continue follow the note
    I hope this help you
    Roberto

  • Mac OS X keep getting error message when extracting files for trail version of CS5 master suite.

    Mac OS X keep getting error message when extracting files foUsingr trail version of CS5 master suite. I deleted all Adobe files and tried again several time and keep getting the same results.

    What error message are you receiving?  What version of Mac OS do you have installed?

  • Compilation error while calling static method from another class

    Hi,
    I am new to Java Programming. I have written two class files Dummy1 and Dummy2.java in the same package Test.
    In Dummy1.java I have declared a static final variable and a static method as you can see it below.
    package Test;
    import java.io.*;
    public class Dummy1
    public static final int var1= 10;
    public static int varDisp(int var2)
    return(var1+var2);
    This is program is compiling fine.
    I have called the static method varDisp from the class Dummy2 and it is as follows
    package Test;
    import java.io.*;
    public class Dummy2
    public int var3=15;
    public int test=0;
    test+=Dummy1.varDisp(var3);
    and when i compile Dummy2.java, there is a compilation error <identifier > expected.
    Please help me in this program.

    public class Dummy2
    public int var3=15;
    public int test=0;
    test+=Dummy1.varDisp(var3);
    }test+=Dummy1.varDisplay(var3);
    must be in a method, it cannot just be out somewhere in the class!

Maybe you are looking for