Path duplication error

Howdy,
As far as I'm aware, I've successfully installed and
configured Alchemy, with aft -vesion check working, the
alchemy-setup being run on login, up until the point of compiling
the string echo sample.
When I attempt the compile I get the following error:
c1 error:
/usr/lib/alchemy/usr/lib/alchemy/avm2-libc/avm2/AVM2Env.h
Which in turn causes many libraries to not be found. That
above path of the AVM2Env.h library though, has a duplication of
the $ALCHEMY_HOME directory '/usr/lib/alchemy/', which I'm sure is
causing the error.
Could this duplication be corrected in a config file or is it
being dynamically constructed - perhaps a problem with my $PATH?
I have a full write up of my installation process here:
http://hibbins.wordpress.com/2008/12/02/find-a-way

hi, see here ;)
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=755&threadid =1406714&enterthread=y

Similar Messages

  • Apex Listener 2.0.3.221.10.13 File path syntax error: ILLEGAL_CHARACTER

    Hi all,
    I tryed to install Apex Listener 2.0.3.221.10.13 into Tomcat 7.0.42 and I got the error :
    INFO: Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\apex.war
    ago 16, 2013 9:15:19 AM oracle.dbtools.common.util.Files checkLegal
    WARNING: File path syntax error: ILLEGAL_CHARACTER, path: C:/
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/apex] startup failed due to previous errors
    and also
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class oracle.dbtools.rt.web.SCListener
    java.lang.IllegalArgumentException: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
      at oracle.dbtools.common.util.Files.checkLegal(Files.java:262)
      at oracle.dbtools.common.util.Files.file(Files.java:127)
      at oracle.dbtools.common.config.file.ConfigurationFolder.chooseExistingFile(ConfigurationFolder.java:172)
      at oracle.dbtools.common.config.file.ConfigurationFolder.choose(ConfigurationFolder.java:151)
      at oracle.dbtools.common.config.file.ConfigurationFolder.setup(ConfigurationFolder.java:64)
      at oracle.dbtools.rt.web.SCListener.contextInitialized(SCListener.java:72)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Caused by: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
      at oracle.dbtools.common.util.FilePathSyntax.check(FilePathSyntax.java:45)
      at oracle.dbtools.common.util.Files.checkLegal(Files.java:255)
      ... 19 more
    My platform is :
    OS : Windows 7 64 bit
    JRE : 1.7.0_25-b17 -
    %USERPROFILE% : C:\Users\SERGIO
    %TEMP% : C:\Users\SERGIO\AppData\Local\Temp
    Apex Listener Configuration Folder : C:\Users\SERGIO\AppData\Local\Temp\apex
    Can anyone help me, please?
    Sergio

    You need to configure your config directory before you deploy. If you never configured v2 listener before then create a new folder like "c:\apex\config". Then use
    java -jar apex.war configdir  c:\apex\config
    Then do your configuration as required and then deploy again.

  • Duplication Error while loading data in write optimized DSO

    Hi Experts,
    I have an issue.In BI7 I'm trying to load the data in a WRITE OPTIMIZED ODS from the controlling data source 0CO_OM_CCA_10. I'm getting the data properly in PSA, but while loading it into my WODSO i'm getting the duplication error although my keys fields and data fields are properly placed in my data target(WODSO).
    pls let me know what is the solution to load it successfully.
    Thanks in Advance.
    Amit

    Hi,
    thanks for your reply
    I'm getting this error message:
    Diagnosis
        During loading, there was a key violation. You tried to save more than
        one data record with the same semantic key.
        The problematic (newly loaded) data record has the following properties:
        o   DataStore object: GWFDSR02
        o   Request: DTPR_4BA3GF8JMQFVQ8YUENNZX3VG5
        o   Data package: 000006
        o   Data record number: 101
    Although i have selected the key fields which identifies unique record,then also i'm getting the duplication error.
    Even i have reffered to the BI content for this data source and found that it has the same key fields as of mine.
    Debjani: i need unique records without duplication and i'm doing a full load in DTP.
    What is to be done pls help
    Thanks in advance.
    Edited by: Amit Kotwani on Sep 26, 2008 10:56 AM

  • Windows 7 Backup "The System cannot find the path specified" - Error Code 0x80070003

    I'm having severe problems backing up my own machine to a share on our
    FILE-SERVER as \\FILE-SERVER\Backup\
    I have already backed up another PC successfully using exactly the same settings I have used on my own PC. So I presume it is nothing to do with the
    FILE-SERVER or the Backup settings.  It has to be something to do with what I'm trying to backup from my machine.
    First some background.
     This exercise all began when the Windows Server 2008 r2
    O/S fell over on one of our Servers. I tried reinstalling the O/S several times, without success. In the end I grabbed another drive and re-built the O/S. I then had problems promoting it to a Domain Controller on the network.
     In the end I renamed the Server from FILESERVER
    to FILE-SERVER.
    We routinely share four folders on what is now
    FILE-SERVER:
    \\FILE-SERVER\Backup
    - a Folder where backups from all other machines are written, so that they will be backed up with the Server
    \\FILE-SERVER\Company
    - holds all our Company data
    \\FILE-SERVER\GEM
    - this is the application folder for our own database
    \\FILE-SERVER\Install
    - holds all Install files for the software we use
    These are all held on a RAID 1 Array that is separate from the System Disk that fell over.
    Prior to the Server falling over, I had Backup working fine on my machine. 
    On my Notebook PC I had made these shared folders 'Available Offline', so that I still had everything available to me when I was out of the office. They were
    of course shared as \\FILESERVER\... not \\FILE-SERVER\...
    Having got the Server up and going again, I began to get the Backups from the Windows 7 Client PC's going again.
     I started with a Desktop, which of course did not have any Offline Files.
     That proved relatively straight-forward.
    I then started with my machine. Initially I did not make the above shared folders 'Available Offline'. I set up my Backup using exactly the same settings that
    had worked OK on the desktop machine. But when I ran the backup I got:
    The System cannot find the path specified, Error Code 0x80070003
    I tried all sorts of things to get it to work:
    I restored the system to the earliest point possible,
    I ran chkdsk,
    I defragged the drive
    All to no avail, so I tried backing up:
    with and without a system image,
    reducing the backup to a single folder, 
    a single Folder with only one .txt file in it, 
    making the Folders 'Available Offline' again.
    Nothing made any difference.
     In the end I looked in the Sync Center to look at the Offline Files Folder.
     Under Mapped Network Drives I discovered I still had the Files and Folders from
    \\FILESERVER.  In their Shortcut Menu 'Always Available Offline' was greyed out. So I deleted the Offline Copies. This deleted the Files in the Folders but not the Folders.
    Since I could find no way of deleting the old Mapped Network Drives, I decided I'd painted myself into a corner by renaming the Server.
     So I bit the bullet and re-installed my Notebook too.  This did get rid of the unwanted old Mapped Network Drives - BUT NOT THE ERROR!!
    I’ve been through all the troubleshooting procedures in: 
    http://social.technet.microsoft.com/Forums/windows/en-US/629597bb-7be0-455c-b81e-a149472d3f9b/windows-7-backup-the-system-cannot-find-the-path-specified-error-0x80070003?forum=w7itprogeneral
    Method 1
    It had none of the symptoms reported in  
    http://support.microsoft.com/kb/973455 
    but I scanned for ‘reparse’ points anyway.  Found several “Junction Points” but none that were “Mounted Volumes”, just ordinary ‘File Folders’.
    Method 2
    Check a drive for errors. 
    Looked at: 
    http://windows.microsoft.com/en-us/windows7/Check-a-drive-for-errors
    Checked
    both boxes.  I closed machine down, to check for errors when it re-started. 
    It didn’t seem to find anything. 
    I say seem, because I did not actually see it finishing checking the empty space, but stages 1-4 found no problems and Windows 7 restarted normally. 
    It did detect 66 ‘Reparse’ Points, which is more than it found when I scanned for them earlier. 
    Method 3
    Yes, I am an administrator or my own machine and, as such, I have ‘Full Access’.
    I downloaded an ran the Process Monitor, filtering for Process Name “Wbengine.exe”, but did dot get a single event. 
    So I’m not sure what’s going on.
    HELP - I'm out of ideas!
    I have a WORD Document that documents all the Settings I've used on both the Server and the Clients, together with the reasoning behind those settings, but
    I cannot find a way of uploading it.

    I am having the exact same problem with Windows 7 Professional. Out of the blue, this issue just started a few months ago when running my monthly Windows Backup where I have used a USB drive for the last 3 years, and never ever had this issue before. Most
    of the solutions listed on the Microsoft websites and answers deal with
    "Restore" functions, not the
    "Backup" itself. I have 3 folders being skipped during the backup.
    So I went and changed the Backup from "let Microsoft choose files, directories, etc" to "Let me choose". I included the files and folders that were being skipped, and ran the "Backup" again, and got the same error message,
    but the files that were skipped the first time were "Backed up" finally. This issue is somehow related to my "Libraries"?
    The 3 backup problems are:
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book Recordings. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book CD Label-Cover Art. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book MP3 Tag Art. Error:(The system cannot find the path specified. (0x80070003))
    Did a "checkdisk" - no problems. Ran a program to fix registry - no problems. All updates up to date. I guess I could eliminate these folders from the Backup folders in the
    Library, and just choose them under the "Users" locations, and be done with it. But I really want to understand this, and fix it. This is within Windows 7 and may be related to Windows Media Player or
    some recent Windows update.  Thanks.

  • The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed

    Friends,
                I'm facing below issue while accessing a crystal report. I heard it might be an access issue. But i'm able to access a report within a same folder.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException : The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    Any suggestions would be very helpful.
    Thanks in Advance,
    Bharath

    Apply trace on RAS and look for errors in the RAS logs at the same timestamp.
    These errors come for various errors and tracing RAS would give us a better idea.
    It might hapen that you observe these errors for reports which takes more than the RAS timeout to export the reports.
    Post getting the RAS logs you can try below steps if we see timeout errors in RAS logs.
    Copy clientSDKOptions.xml file from <BO install path>\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib to the machine where your app is running Open clientSDKOptions.xml and change CORBARequestTimeOut from 600000 to a value large enough to allow the report to render, for instance 1200000. Default value is 600000 (10 minutes)
    Specify the location of the clientSDKOptions.xml file at run-time. In your JSP or Java files, use the Java method setProperty from the System class. Set the system property indicated by the ras.config key to the specified directory as: system.setProperty("ras.config","c:\temp"). This function call specifies that the clientSDKOptions.xml file in c:\temp is to be used for locating RAS servers.
    Thanks,
    Prithvi

  • Seq Header Duplication error when trying to burn dvd

    I am using DVD Studio Pro 4
    Mac OS 10.49
    I imported a 36 minute QT video edited in FCP to DVDSP. When I try to burn a DVD, I get an error message that reads, " Seq Header Duplincation. I cannot figure out the problem.
    Incidently, the 30 minute DVD seems to contain 7.4 GB on my hard drive, but DVDSP converts it to 3GB automatically. Does this sound customary?
    Thanks,
    Schoff

    ocfilmmaker, I hear you. I am trying to run DVD Studio Pro on my new Mac Pro under Leopard and I am having nothing but problems. It always worked fine on my G5 iMac. First, it won't recognize my DVD burner (there have been several posts about that) and now I'm seeing the "Seq Header Duplication" error, with no further explanation. My video is already encoded. I don't know whether it is the Xeon, Leopard, or the latest build - but this thing is useless right now.

  • Duplication error in FMBB

    Hi FM experts
    this morning, i found the BUED_DOCNR was not incresed until above 70 budget documents were generated. so i have created the budget documents continuosely for monitoring the number range. suddenly, i had met duplication error when i save the budget document using FMBB.  (maybe 101th budget document)
    now, after saving document, system message said that the budget document number was restarted with 1 but, it  caused the duplication error.
    the strange thing is that BUED_DOCNR is increased now ???  but, still  the duplicaiton errors were happened. because  97 budget documents were already saved in SYSTEM.     could you explain this situaiton?    nobody touched the number range.
    and the current IMG setting was same with a previous project's one.
    regards,
    MK

    Hi ,  thanks for your advice regarding the RFFMKU_DOC_DOUBLE_ANALYSER program.
    but, in my case,   there were no duplication documents in system  now so  the program did not produce  duplication documents.
    i am testing the system before go-live,  i made several budget documents and those were saved successfully. but   yesterday, i  found that BUED_DOCNR(budget doc no object) was 0. it was not not increased by system fault or someone touched it.
    anyways,   BUED_DOCNR object is working successfully now, so  the duplication error was happened as i  saved new budget  document  starting with document number 1.
    i don;t think  someone reset BUED_DOCNR.   i want to know whether this case is often come out  without manual work or not.
    if someone reset the BUED_DOCNR by mistake, i will increase the current BUED_DOCNR  right now and   the duplication error will not be happened.
    if not human error, i am afraid that the BUED_DOCNR is suddenly reset by system fault
    Regards,
    MK
    Edited by: MK on Nov 5, 2010 7:49 AM
    Edited by: MK on Nov 5, 2010 7:50 AM

  • Vs2010 azure project remove instead of unload now cannot find a part of the path build error

    I know this isn't a vs online question but I wasn't sure where else to post this one...
    I have an azure project built in vs2010 with a web role and worker role project. I accidently removed the worker role project then re added through 'add existing project'. Now when I try and build I get
    Error 1   Could not find a part of the path 'C:\Users\Mat\Documents\Visual Studio 2010\Projects\MvcApplication7 - Copy (4)\CubeCloud1.Azure\WorkerRole1\'.    C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure
    Tools\1.8\Microsoft.WindowsAzure.targets    987 5   CubeCloud1.Azure
    Line 987 is the start of the  element.
    Looking at the path, the folder WorkerRole1 doesn't exist but looking at back ups of this project it doesn't exist in them either.
    I've tried adding the WorkerRole1 folder but then I get  Error 102 CloudServices38 : The entrypoint dll is not defined for worker role WorkerRole1.    C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.8\Microsoft.WindowsAzure.targets   
    987 5   CubeCloud1.Azure
    I'm not sure going down the path of adding this folder anyway is the correct solution (I could be wrong of course).
    thanks,

    I don't know why this worked but I made a copy of the solution. When I opened the solution it had lost a reference to one dll (Windows Storage I think). I added that, then it builds ok now.

  • Azure project remove instead of unload now cannot find a part of the path build error

    I have an azure project built in vs2010 with a web role and worker role project. I accidently removed the worker role project then re added through 'add existing project'. Now when I try and build I get
    Error 1   Could not find a part of the path 'C:\Users\Mat\Documents\Visual Studio 2010\Projects\MvcApplication7 - Copy (4)\CubeCloud1.Azure\WorkerRole1\'.    C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure
    Tools\1.8\Microsoft.WindowsAzure.targets    987 5   CubeCloud1.Azure
    Line 987 is the start of the  element.
    Looking at the path, the folder WorkerRole1 doesn't exist but looking at back ups of this project it doesn't exist in them either.
    I've tried adding the WorkerRole1 folder but then I get  Error 102 CloudServices38 : The entrypoint dll is not defined for worker role WorkerRole1.    C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.8\Microsoft.WindowsAzure.targets   
    987 5   CubeCloud1.Azure
    I'm not sure going down the path of adding this folder anyway is the correct solution (I could be wrong of course).
    thanks,

    Hi mattech13,
    Thank you for posting in MSDN forum.
    According to your description, it seems that you have solved this issue now.
    Since
    this forum is to discuss: Visual
    Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
    Based
    on your issue,
    it is related to the Azure, so we will move this case to the Azure forum:https://social.msdn.microsoft.com/forums/azure/en-US/home?category=windowsazureplatform
    In addition, if
    you have any issues about this azure,I
    suggest you can post this issue directly to the Azure forum, you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "The system cannot find the path specified" error

    Hi, Thanks for taking the time and reading.
    I had to update an old report that was made in CrystalReports. I copied the rpt files and pasted them into a csharp solution in VS 2010.
    The report structure is of a Main report and 6 subreports. I have to run this Main report many times and feed it a different integer as a parameter.
    I can preview the report in report viewer perfectly. When i try to export the main report into a pdf format
    i get an exception. I have tried a few different formats and it spews the same error. 
    Oddly enough the export sometimes works if the report i am previewing has the "Save data in the report" check box checked. My guess is that this is cached. Also when i run just the subreports through my application, it works.
    Things i have tried:
      I installed: CRRuntime_64bit_13_0_13
      I installed: CRforVS_13_0_13
      Took a look at the Procmon and i could not find an access denied error
      Event Viewer has no detail.
      Changed Registry values of ConnectionDirectoryPath and ReportDirectoryPath to "c:\"
    Code:
      if (!Directory.Exists(filePath))
      Directory.CreateDirectory(filePath);
      string fileName = filePath + string.Format(GlobalVaraiables.FILE_SAVE_NAME, i);
      cryRpt.SetParameterValue(GlobalVaraiables.FUND_DATA_KEY_PARAMETER, i.ToString());
      cryRpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, fileName);
    Error message:
      System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
        at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
        at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
        at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
        at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
        at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
        at FundDataPDFSaver.SaveReport.GenerateReports(List`1 l) in C:\Users\user.name.here\Documents\Visual Studio 2010\Projects\FundDataToPDF\FundDataPDFSaver\SaveReport.cs:line 74
    System Details:
    Windows 7 Enterprise N  64 bit
    ServicePack 1
    IDE:
    Visual studio 2010 .Net framework 4
    Application is set to run as "Any CPU"
    CrystalReports :
      dll's: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll
        C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportSource.dll
        C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Shared.dll
    Thanks for your help

    I don't see where you're ever setting the logons for the tables in the report and subreports.  The reports with saved data are working because they already have data in them.  The reports without saved data are not working because they don't know how to connect to the database.
    See the Database section here Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki for more information about how to set the logons.
    -Dell

  • "System cannot find the path specified" error message !HELP !

    Hi
    In doing a program to read a string from the buffer, I am getting an error message that says "cannot find the file specified"
    The file was created in a previous program and I verified it does
    exist at the specified location on my hard disk.
    Below is the "ReadAString" program and "WriteAString" program where the String was created.
    Thanks
    Joe
    import java.io.*;
    import java.nio.ByteBuffer;
    import java.nio.channels.FileChannel;
    public class ReadAString
    public static void main(String[] args)
    File myFile = new File("C:Documents and Settings/Gateway User/jbproject/ssd_ch10p407/src/ssd_ch10p407/charData.txt");
    FileInputStream myInputFileInAStream = null;
    try
    myInputFileInAStream = new FileInputStream(myFile);
    catch (FileNotFoundException e)
    e.printStackTrace();
    System.exit(1);
    FileChannel myInputChannel = myInputFileInAStream.getChannel();
    ByteBuffer myByteBuffer = ByteBuffer.allocate(48);
    System.out.println("\nNew buffer: \tposition = " +
    myByteBuffer.position() + "\tLimit = " +
    myByteBuffer.limit() + " \tcapacity = " +
    myByteBuffer.capacity());
    try
    //size() will return the length of the file
    System.out.println("\nFile contains " + myInputChannel.size() + " bytes");
    //The FileChannel object keeps track of the file's current position
    System.out.println(
    "The file's current position before the read into the buffer is: " +
    myInputChannel.position());
    while (myInputChannel.read(myByteBuffer) != -1)
    System.out.println("\nBuffer after read: \tposition = " +
    myByteBuffer.position() + "\tLimit = " +
    myByteBuffer.limit() + " \tcapacity = " +
    myByteBuffer.capacity());
    System.out.println(
    "The file's current position after it read into the buffer is: " +
    myInputChannel.position());
    System.out.println("\nString read: " +
    ( (ByteBuffer) (myByteBuffer.flip())).asCharBuffer().
    toString());
    System.out.println("Buffer after flip: \tposition = " +
    myByteBuffer.position() + "\tLimit = " +
    myByteBuffer.limit() + " \tcapacity = " +
    myByteBuffer.capacity());
    // set the limit to capacity and the position to 0
    myByteBuffer.clear(); //clear the buffer for the next read
    } //end of while loop
    System.out.println("\nEOF reached.");
    myInputFileInAStream.close(); //close the file and the channel
    catch (IOException e) {
    e.printStackTrace(System.err);
    System.exit(1);
    System.exit(0);
    import java.io.*;
    import java.nio.*;
    import java.nio.channels.FileChannel;
    //This program takes a text phrase (in Unicode characters;(2 bytes each character)
    //and puts it into a buffer via a CharBuffer,
    //then loads the buffer contents into a file channel
    //then outputs to a file.
    //When you have successfully run the program, go to Start | Search |
    //type in "charData.txt" and examine the contents of the file. OR
    //go to the notepad and open
    // C:
    //Documents and Settings
    //GateWay User
    //jbproject
    //ssd_ch10p407
    //src
    //ssd_ch10p407
    //you should see charData so right click on it and choose "open with " "Notepad"
    // and verify the contents are "Garbage in Garbage out"
    // each time you run the program, "Garbage in Garbage out " should be concatenated.
    public class WriteAString
    public static void main(String[] args)
    String phrase = new String("Garbage in Garbage out\n");
    String dirname = "C:/Documents and Settings/Gateway User/jbproject/ssd_ch10p407/src/ssd_ch10p407";
    String filename = "charData.txt";
    File dir = new File(dirname);
    //now checkout the directory
    if (!dir.exists()) {
    if (!dir.mkdir()) { //.....create it
    System.out.println("Cannot create directory: " + dirname);
    System.exit(1);
    else if (!dir.isDirectory()) {
    System.err.println(dirname + " is not a directory");
    System.exit(1);
    //create the fielstream
    File myFile = new File(dir, filename);
    FileOutputStream myOutputFileInAStream = null; //place to store the stream reference
    try
    myOutputFileInAStream = new FileOutputStream(myFile, true);
    System.out.println("File stream created successfully");
    catch (FileNotFoundException e)
    e.printStackTrace(System.err);
    ByteBuffer myByteBuffer = ByteBuffer.allocate(1024); //ByteBuffer object created
    CharBuffer myCharBuffer = myByteBuffer.asCharBuffer(); // create view buffer
    //transfer the phrase to myByteBuffer via mycharBuffer
    myCharBuffer.put(phrase);
    //update myByteBuffer limit (position times 2 because each Unicode
    // character takes 2 bytes) to store in the ByteBuffer
    myByteBuffer.limit(2 * myCharBuffer.position());
    System.out.println("myCharBuffer position is " + myCharBuffer.position());
    //create the file output stream channel object
    FileChannel myOutputChannel = myOutputFileInAStream.getChannel();
    System.out.println("new buffer: position = " +
    myByteBuffer.position() +
    "\tLimit = " + myByteBuffer.limit() +
    " \tcapacity = " + myByteBuffer.capacity());
    //each time the program is run, the phrase is again loaded into the buffer.
    // Run the program several times and open charData.txt to verify that the
    //data went into the file.
    //Load the data into the buffer
    for (int i = 0; i < phrase.length(); i++)
    myByteBuffer.putChar(phrase.charAt(i));
    System.out.println("Buffer after loading : position = " +
    myByteBuffer.position() + "\tLimit = " +
    myByteBuffer.limit() + " \tcapacity = " +
    myByteBuffer.capacity());
    myByteBuffer.flip(); //flip the buffer ready for file write
    System.out.println("Buffer after flip: position = " +
    myByteBuffer.position() + "\tLimit = " +
    myByteBuffer.limit() + " \tcapacity = " +
    myByteBuffer.capacity());
    //write this file
    try
    myOutputChannel.write(myByteBuffer); //write the buffer to the file channel
    System.out.println("The file contains " + myOutputChannel.size() + " bytes" +
    " Do you see this number double every time you run the program?");
    //you should see 48 characters writen to the file each time (phrase has 24 characters)
    myOutputFileInAStream.close(); //close the output stream and channel
    System.out.println("Buffer contents written to file");
    catch(IOException e)
    e.printStackTrace(System.err);
    System.exit(0);
    //After running the program once my output was:
    //File stream created successfully
    //myCharBuffer position is 23
    //new buffer: position = 0     Limit = 46      capacity = 1024
    //Buffer after loading : position = 46     Limit = 46      capacity = 1024
    //Buffer after flip: position = 0     Limit = 46      capacity = 1024
    //The file contains 46 bytes //Do you see this number double every time you run the program?
    //Buffer contents written to file

    Right - File is smart. Otherwise, you'd have to build
    platform-specific paths by hand, using file.seperator,
    to keep your code multi-platform. Ew.
    Grant
    IC..
    Aldaris84 bows his head in honour of the man/woman that created the clearly intelligate File class
    :)

  • "system cannot find the path specified" error when deploying EAR

    I am trying to deploy a J2EE based web service created in Sun Studio 5 to the SunOne AS 7.0.
    I get an error saying "The system cannot find the path specified". I have followed the deployment instructions as closely as possible I think.
    When I look in the file system for the file the system is trying to find, the whole directory it seems to be looking for (C:\Sun\studio5_se\appserver7\domains\domain1\server1\applications\j2ee-apps\PostCodeLookupApp_1)
    is missing. (In fact there is nothing in the j2ee apps directory).
    Got any ideas? Have I missed something?
    Thanks for any help,
    Nick
    WARNING ( 1616):      ADM1022:Deployment failed - Detailed Message:
         com.iplanet.ias.deployment.backend.IASDeploymentException: Deployment Error -- com.iplanet.ias.util.zip.ZipFileException: filename: C:\Sun\studio5_se\appserver7\domains\domain1\server1\applications\j2ee-apps\PostCodeLookupApp_1\PCSearchWebService_War_war\WEB-INF\classes\App\PostcodeValApp\PCSearchWebServiceGenServer\PCSearchWebServiceServantInterface_ValidateSSP_ResponseStruct_SOAPSerializer.class java.io.FileNotFoundException: C:\Sun\studio5_se\appserver7\domains\domain1\server1\applications\j2ee-apps\PostCodeLookupApp_1\PCSearchWebService_War_war\WEB-INF\classes\App\PostcodeValApp\PCSearchWebServiceGenServer\PCSearchWebServiceServantInterface_ValidateSSP_ResponseStruct_SOAPSerializer.class (The system cannot find the path specified)
         at com.iplanet.ias.deployment.backend.AppDeployer.doRequest(AppDeployer.java:58)
         at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployJ2EEApplicationArchiveOrDirectory(ManagedServerInstance.java:745)
         at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployJ2EEApplication(ManagedServerInstance.java:667)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    I found out the problem;
    the auto-generated file name seems to have been too long for the app-server.
    I changes the name of the class to PCWS and it worked fine.
    It's a shame Sun One Studio (which creates these massive file names doesn't warn you!

  • "The system cannot find the path specified" error when installing a network printer running Win 7

    Some of the end users are having issues when trying to install network printers. We have created a portal where they can locate the printer they want to connect to, click connect, and the printer will download with the correct drivers on their PC's. The
    entire company is running Win 7 for their operating system. One end user in particular has had issues installing multiple printers from the portal, when I go to test installing these same printers on my PC, they all install successfully. trying to figure out
    why some end users hav issues with installation and others do not. They will get the error, The system cannot find the specified path. Any help would be great

    Hi JeffWilko,
    What is your current situation?
    To receive better analyzation, please provide more details?
    1. Could you explain a bit about the sentence ‘installing multiple printers from the portal’ ?
    2. Check the event viewer and share us the related error log.
    Please take the following steps for troubleshooting:
    1. Ping the printers
    2. Check if there are network firewall to block the access
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Execute SQL Task - FOR XML PATH query error

    I have the following query
    SELECT pl.Id,
    pl.StartTime,
    pl.EndTime,
    pl.PackageName,
    pl.Computer,
    pl.Operator,
    CASE WHEN (CHARINDEX('stack trace', pl.ErrorDescription) > 0) Then
        SUBSTRING(pl.ErrorDescription, 0, CHARINDEX('stack trace', pl.ErrorDescription))
        ELSE
        pl.ErrorDescription
        END as ErrorDescription
    ISNULL(ErrorFile,'') as ErrorFile,
    'Not Applicable' as SourceSystem
    FROM etl.PackageLog as pl
    WHERE pl.Processed = 0
    ORDER BY pl.StartTime, pl.PackageName
    FOR XML PATH('Row'), ROOT(N'FieldingCounts')
    in a Execute SQL Task and i get the following error:
    [Execute SQL Task] Error: Executing the query "SELECT pl.Id,
    pl.StartTime,
    pl.EndTime,
    pl.Package..." failed with the following error: "An invalid character was found in text content.
    ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    The query execute without problem in database and in the ssis package doens't run because of the column
    CASE WHEN (CHARINDEX('stack trace', pl.ErrorDescription) > 0) Then
        SUBSTRING(pl.ErrorDescription, 0, CHARINDEX('stack trace', pl.ErrorDescription))
        ELSE
        pl.ErrorDescription
        END as ErrorDescription
    Any help to overcome the problem?
    Thanks

    Hi,
    It looks like that you must be trying to set the result of the query to some variable from the Execute SQL Task. If yes, make sure that the target variable is of the correct data type where XML string  can fit into. Considering that in SSIS, we have
    some limit for XML strings.
    Please let me know if it doesn't help.
    Thanks,
    Nimit

  • Opening another PDF from a specific path yielding error

    Hello,
    I'm trying to open a PDF (child.pdf) from a PDF(main.pdf). If the both the main.pdf and child.pdf reside in the same directory, the code below works fine.
    app.openDoc("child.pdf");
    However, if I move the child.pdf to c:\pdf_templates\child.pdf and modify the code to:
    app.openDoc("c/pdf_templates/child.pdf");
    I get the following error:
    Exception in line 1 of function top_level, script XFA:form1[0]:#subform[0]:Button1[0]:mouseUp
    NotAllowedError: Security settings prevent access to this property or method.
    App.openDoc:1:XFA:form1[0]:#subform[0]:Button1[0]:mouseUp
    The error is to do with security settings preventing access to the another path. I have check and re-checked all security settings and I still get the error.
    Any ideas on how I can overcome this issue???
    Thanks,
    Jose

    Hi,
    the error message in Acrobat is misleading.
    There is no security setting blocking you from opening the form.
    You really have an raise error, because the path you provided is not correct.
    The absolut path has to begin with a leading slash (/).
    app.openDoc("/c/pdf_templates/child.pdf");

Maybe you are looking for

  • Unable to log in as a regular user after a reboot

    Hello Everybody, I have a SPARC SunBlade 2000 with 2 GB of memory running Solaris 10 with the following configuration: root@auyantepui # cat /etc/release                        Solaris 10 5/09 s10s_u7wos_08 SPARC            Copyright 2009 Sun Microsy

  • Logical standby server stopped applying changes

    Hi I set up a logical standby database with database guard and it worked fine for some time. But recently I had to use it again and discovered that applying changes from primary database to secondary database just stopped working. I see in V$ARCHIVED

  • DocumentBuilder screams IOException when DTD ref in XML!

    Hi I have an interesting problem out here. I am using JAXP & Xerces. When I try and create a document object using the DocumentBuilder.parse(), I get an IOException, if the xml string contains a reference to the DTD. Infact another exception that I g

  • IBook G4 appears to start then sticks at spinning wheel and apple screen

    Hello there, I have an old G4 laptop. Recently installed Airport Extreme card, started it up, no worries! Then was prompted to download updated software from Apple. Did so. But then when I tried to restart it all I get is the Apple chime, then the sc

  • House address is wrong

    Hi, I was just using the map feature on the Touch and it is using my old address as a starting point. I moved from there months ago. I sync'd my Touch when I first got it and when I moved I changed my billing address in iTunes. I cannot, for the life