Invalid Argument Error

I am getting above error on load of the JNLP file. When I access the URL for the JNLP, the JNLP file downloads (I can see the content using Ethereal) and WebStart does launch. So, I assume MIME type is OK and the download servlet is working, at least enough to serve up the JNLP.
What makes this more curious is that it is a working configuration in Jetty. I can take the exact same application - drop it in Jetty, it works; drop the SAME file in Tomcat 4.1.27, it doesn't work.
Anyone seen this?
WS 1.2
J2SDK 1.4.1_01 on both ends.
Tomcat 4.1.27
The error and log information is as follows.
Error dialog/General Tab:
An error occurred while launching/running the application.
Category: Invalid Argument error
Could not load file/URL specified: C:\Documents and Settings\mjf860\Local Settings\Temporary Internet Files\Content.IE5\2DQR21KT\cwms[1].jnlp
The JNLP file does in fact NOT exist (the directory does, no JNLP files are in in it), despite the fact that I saw it go over the network to my box.
The JNLPServetLog stuff:
JnlpDownloadServlet(3): Request: /cwms/app/cwms.jnlp
JnlpDownloadServlet(3): User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; H010818)
JnlpDownloadServlet(4): DownloadRequest[path=/app/cwms.jnlp isPlatformRequest=false]
JnlpDownloadServlet(4): Basic Protocol lookup
JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /app/cwms.jnlp lastModified=Tue Sep 09 17:14:51 EDT 2003]]
JnlpDownloadServlet(3): Resource returned: /app/cwms.jnlp
JnlpDownloadServlet(4): lastModified: 1063142091684 Tue Sep 09 17:14:51 EDT 2003
TIA,
Mike

I just found out by searching tomcat list that in your
dynamic jnlp file you can set the cache-control to
public using
response.setHeader("Cache-Control", "public")
This will allow Internet Explorer to cache the jnlp
file and you won't get the exception.
This way you can keep your jnlp file under a security
constraint.I wasn't sure what was meant by "dynamic JNLP" or how to follow the above procedure, so I created a servlet (a JSP, actually) to implement the above workaround. It will serve JNLP files from a password-protected directory in a way that works for the Tomcat-to-Internet Explorer combination. It's posted below in case it can help anyone else.
There are still a few things to watch out for: (1) the protection (the <auth-method> tag in your web.xml file) for the JNLP file must be BASIC--FORM will not work. (2) you will have to enter the password twice--once for the browse and again for Web Start.
The servlet itself is enclosed below. If you have questions about it, please post them to this forum.
Bob Pollack
Gestalt, LLC
<%@ page import="java.io.*" %>
<%
// This is a fetch program to retrieve a JNLP file from a
// password-protected directory. Java Webstart has problems
// doing this directly, so this program must be used instead.
// That is, instead of a link that points to "xxx.jnlp", make
// a link that points to "fetchJNLP.jsp?name=xxx.jnlp".
// Even with this program, the only kind of authentication
// that Webstart understands is basic authentication.
// You cannot use form-based authentication and Webstart together.
String jnlpName = request.getParameter ("name");
String myPath = request.getServletPath ();
String myURL = request.getRequestURL ().toString ();
String dirPath = null;
String dirURL = null;
String jnlpPath = null;
String jnlpRealPath = null;
boolean abort = false;
// Screen the name parameter to make sure that hackers
// cannot use this program to fetch any old thing
// The current criteria are that the name must be a JNLP file
// in this directory
if (jnlpName == null)
abort = true;
else if (! jnlpName.endsWith (".jnlp"))
abort = true;
else if (jnlpName.indexOf ("/") >= 0)
abort = true;
if (abort)
response.sendError (response.SC_FORBIDDEN);
return;
int pos = myPath.lastIndexOf ("/");
if (pos < 0)
pos = myPath.length ();
dirPath = myPath.substring (0, pos);
pos = myURL.lastIndexOf ("/");
if (pos < 0)
pos = myURL.length ();
dirURL = myURL.substring (0, pos);
if (jnlpName.startsWith ("/"))
jnlpPath = jnlpName;
else
jnlpPath = dirPath + "/" + jnlpName;
out.clear ();
response.setContentType ("application/x-java-jnlp-file");
// The following line is the reason this servlet exists.
// If a JNLP file is in a protected directory, Tomcat will
// send it out with a Cache-Control header of "no-cache",
// which keeps the client end of JNLP from working.
// See Java Developer Forum,
// "Java Web Start & JNLP: Invalid Argument Error",
// at http://forum.java.sun.com/spider.jsp?f=38&t=442995
// for a rambling discussion of this issue.
response.setHeader ("Cache-Control", "public");
jnlpRealPath = application.getRealPath (jnlpPath);
File jnlpFile = new File (jnlpRealPath);
FileReader fr = new FileReader (jnlpFile);
BufferedReader br = new BufferedReader (fr);
while (true)
String line = br.readLine ();
if (line == null)
break;
// As long as we're doing this anyway, we'll add a service
// that substitutes the full URL for this directory into
// the codebase of the outgoing JNLP file. This will make it
// possible for the files to be moved from machine to machine
// without changes.
// For example, instead of saying
// codebase="http://myhost:8080/home/protected"
// the JNLP file can say
// codebase="$BASE"
String base = "$BASE";
pos = line.indexOf (base);
if (pos < 0)
out.println (line);
else
out.print (line.substring (0, pos));
out.print (dirURL);
out.print (line.substring (pos + base.length ()));
out.println ();
out.flush ();
out.close ();
%>

Similar Messages

  • Invalid argument error in IE7

    I'm working on my first HTML5 site. And I'm getting an invalid argument error that's keeping it from loading all of the content on the page. It's telling me that the error is in line 256, but line 256 is an image tag.
    The page in question is here:
    http://jerauf.com/filmggp/locations-sub.html
    I'm thinking that it's a script but can't tell what the problem is.
    Can anyone help?

    Hello.
    <img src="image.jpg" height="120" width="120" alt="description" />

  • Getting 'Invalid argument' error while uisng OPEN DATASET. Help!

    Hi Experts,
       I am trying to read a file from a shared server location using OPEN DATASET as shown below.
    OPEN DATASET file_name FOR INPUT IN TEXT MODE ENCODING UTF-8 MESSAGE msg.
    The file_name i gave is '
    CNSGN-PRE-DM.COM\FUNCTIONAL\INVENTORY.CSV'.
    The program compiles perfectly. But when I run the program I am getting 'Invalid argument' error. I have checked the authorization to the server, file name, file availability and everything is fine.
    Strangely this code was working fine a week ago.
    What could be the problem? Kindly help me!
    Thanks
    Gopal

    Hi Chndrasekhar,
            You mean to say the we cannot use OPEN DATASET for reading file in shared server location. For example a shared folder in my PC.
    Is there something wrong in the file name path I have given? It started with '//'. Do I have to start the file path wih 'file://..'?
    Thanks
    Gopal

  • "Invalid argument" error when attempting to use Linked Table Manager

    I am trying to import a text file into a linked table in Access (the linked table resides in SQL Server). I run through the import wizard which always ends with an 'Invalid Argument' error and claims the import was unsuccessful but when I query the table
    all the data has been imported. How do I get this error to stop?
    Any suggestion will be appreciated

    Sounds like something is not hooked up right, or setup right.  Can you do a Compact and Repair and try again?
    http://www.fmsinc.com/Microsoftaccess/compact/compact-on-close.html
    http://www.databasedev.co.uk/compacting-and-repairing-ms-access.html
    C & R is really done to defragment a DB, but it can 'fix' other things as well.
    Also, see this.
    http://www.solvexia.com/help/workingwithaccessfiles/how-to-import-data-from-text-file-to-access-table/
    http://www.databasejournal.com/features/msaccess/article.php/3853531/Working-with-external-text-files-in-MS-Access.htm
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Airport extreme: Invalid Argument errors over satellite connection

    Question 1: Have you observed problems with Apple equipment getting high error rates over high latency connections such as satellite connections?
    Question 2: Do you know of any reason why Apple equipment is more likely to exhibit this behaviour?
    We have a shack in the country that has a 10Mb/sec satellite internet service.  The satellite in question is the Australian NBN service which I believe uses an Optus satellite.
    We get frustratingly large numbers of errors from Safari: "Safari can't open the page <insert random url here> The operation could not be completed. Invalid argument."
    The message in the browser is always the same.  It can take half-a-dozen retries to get a page to display.  On average, aroiund 30% of connection attempts yield this error.  It seems to be load dependent, and at the moment it is happening less often - maybe one in 10 requests are failing.  It is currently 2 Jan, around midday and most Australians near the coast will be at the beach, and those inland have 50 degree temperatures predicted so they will be wallowing in the mud-hole that was once the dam, so I expect the satellite load is rather low.
    My ISP says they have around a dozen customers reporting this problem and they all use Apple gear.
    Observations:
    I was able to open a VPN connection to one of my customers (after several attempts) and the VPN connection worked flawlessly for the duration of hte session which was several hours.  Meanwhile, the mrs was cussin' away about invalid argument errors.
    Once a page starts loading, it generally finishes.  This seems to be independent of the level of complexity.  So once a page gets going, it keeps going.  Selecting a link from it, however, will likely result in another error.
    Pings are returning in around 1 second.
    Transfer rate is good - close to the promised 10Mbit/sec.  Response time, of course, is aweful compared to a wired or 3G connection.  However it is acceptable provided a response is actually received.
    Gear is: A couple of netgear routers in point to point mode bridging to the Airport Extreme in the house which is the main router.  There are a couple of Airport expresses about the place doing other stuff.  Terminal equipment includes iPads x 2, macBooks x 2, iPhones x 2.  Everything gets a master reset periodically when the power goes off,  and the problem persists.  All devices experience the problem.
    Thank you for your help

    jone1101 wrote:
    I have had my airport extreme for over a year and comcast even longer than that. For some reason my airport now says it has a invalid ip address. I plugged my modem directly into my imac and the internet connection is fine. I have power cycled everything multiple times with the same result. I even reset my airport extreme and created a new network. Nothing is working please help!
    Does your cable modem have any sort of battery backup that would prevent it from resetting fully during a power cycle?

  • Invalid arguments error while executing oracle procedure

    Dear all,
    we have a table hr_emp with fields ecode, ename, edoj.
    the following procedure we created to return the table data to our .net app.
    CREATE OR REPLACE
    PACKAGE pname AS
    TYPE T_hr_cursor IS REF CURSOR;
    PROCEDURE get_hr_list (P_hrlist OUT T_hr_cursor);
    END HRPACK;
    create or replace PACKAGE BODY pname AS
         PROCEDURE get_hr_list (P_hrlist OUT T_hr_cursor)
         IS
         BEGIN
         OPEN P_hrlist FOR
              SELECT *
                   FROM Hr_Emp WHERE edoj>='01-jan-2009';
         END get_hr_list;
    END;
    these code edited in a single file [both package and package body] and created successfully.
    but, while executing, by typing execute get_hr_list, ORA-00304 error, invalid arguments, is coming. How to resolve this, please help.
    also, in sql developer 1.5.3, when we create this, another error is ciming like 'source doesnot have a runnable target'.
    Where is the issue? please help

    Yes, its great dear...
    sqlplus>
    declare
    hr_cursor hrmain.t_hr_cursor;
    begin
    pname.get_hr_list(hr_cursor);
    end;
    Its worked as i got 'pl/sql procedure successfully executed'.
    Also, then how i can call this get_hr_list procedure from .net? im using c# and i want to get the result of hr_emp to c#. how i can call the same from c#? any help please

  • "invalid argument" error message when connecting to the App store after upgrading iphone 4 to 5.0 firmware

    Hi everyone,
    I have seen many topics about this problem but none of them helped and they seem to date a little bit so I would like to ask again.
    here is the situation :
    we have two iphone 4 in the house and everything was going fine until we did the update to the new 5.0 firmware. there was no problem while the update had only been applied to the first iphone... but after updating the second one, we now have the same problem on both iphones. We can still connect to the internet from the iphone just fine but the connection is erratic at best with the itunes store because we keep getting cut by this dreaded error message "connection to the itunes store impossible, "invalid argument" occasionnally we'd get a different message that says "connection reset by peer"
    - what is invalid argument mean anyway???
    - I have tried to renew the lease in the network settings, it didn't work
    - I have tried to reset the network setting, it didn't help
    - I have checked in the network setting for the IP address, it starts with 192.xx.xx..... which is supposed to be a good thing as opposed to 162.xx.xx....
    - I have reset my router, nothing happened...
    - I have tried unauthorising my computer to any accounts because we were afraid that using two iphones with two different itunes store accounts one the same computer may have caused these problems.. but no luck
    I am running out of ideas, I would like to renew my frustration to apple because we buy these expensive products and still seem to suffers from stupid bugs... I was under the impression that these things were tested !!! anyway if anyone has found a definitive solution to this problem (short of burning your iphone out of anger) it would be deeply appreciated.
    thx

    Hi!
    I'm also using Air SDK 15 and I'm getting  Invalid Bundle Error:
    Adobe Air iOS Invalid Bundle
    The bundle does not support the minimum version os specified in info.plisthttp://stackoverflow.com/questions/26047837/adobe-air-ios-invalid-bundle-the-bundle-does-n ot-support-the-minimum-version-os
    Really need help
    Michael

  • Disk Utility create image error - "Invalid Argument"  - on USB drive.

    I wanted to use a USB 2.0 drive that I share with a Windows machine to backup my son's iBook. I divided the drive into two partitions and formatted the iBook backup partition as FAT32. I attempted to create a read-only disk image on the USB drive in order to backup the iBook, but it does not complete successfully - it terminates with an "Invalid Argument" error. I also tried creating a read/write disk image and that terminates with an error "File or Folder not found." Anyone have any tips or clues as to what may be the problem?
    iBook   Mac OS X (10.4.3)  

    I figured out my problem to some extent. I was not creating an empty image, but was trying to create a disk image without selecting a folder. Once I selected create an empty image from the File menu I did not get the error and was able to create an empty image on the USB drive.

  • Petalinux-build error: setting ownership / Invalid argument

    Hi,
    I’m trying to use petalinux to generate a linux build for the Zynq ZC706 board.
    I have run the following commands according to all the online manuals:
    mbrainin-ws:~/zynq/tmp>> petalinux-create -t project -s /opt/Xilinx/Xilinx-ZC706-v2014.4-final.bsp
    INFO: Create project:
    INFO: Projects:
    INFO:   * Xilinx-ZC706-2014.4
    INFO: has been successfully installed to /home/mivanov/zynq/tmp/
    INFO: New project successfully created in /home/mivanov/zynq/tmp/
    mbrainin-ws:~/zynq/tmp>>
    mbrainin-ws:~/zynq/tmp>>
    mbrainin-ws:~/zynq/tmp>>
    mbrainin-ws:~/zynq/tmp>> cd Xilinx-ZC706-2014.4/
    mbrainin-ws:~/zynq/tmp/Xilinx-ZC706-2014.4>>
    mbrainin-ws:~/zynq/tmp/Xilinx-ZC706-2014.4>>
    mbrainin-ws:~/zynq/tmp/Xilinx-ZC706-2014.4>>
    mbrainin-ws:~/zynq/tmp/Xilinx-ZC706-2014.4>> petalinux-build
    INFO: Checking component...
    INFO: Generating make files and build linux
    INFO: Generating make files for the subcomponents of linux
    INFO: Building linux
    [INFO ] pre-build linux/rootfs/fwupgrade
    [INFO ] pre-build linux/rootfs/peekpoke
    [INFO ] pre-build linux/rootfs/uWeb
    [INFO ] build system.dtb
    [INFO ] build linux/kernel
    [INFO ] update linux/u-boot source
    [INFO ] generate linux/u-boot configuration files
    [INFO ] build linux/u-boot
    [INFO ] build zynq_fsbl
    [INFO ] Setting up stage config
    [INFO ] Setting up rootfs config
    [INFO ] Updating for armv7a-vfp-neon
    [INFO ] Updating package manager
    [INFO ] Expanding stagefs
    [ERROR]  error setting ownership of `./sbin/ldconfig': Invalid argument
    [ERROR]  error setting ownership of `./lib/libgcc_s.so.1': Invalid argument
    [ERROR]  error setting ownership of `./usr/bin/gdbserver': Invalid argument
    [ERROR]  error setting ownership of `./lib/libnss_nisplus-2.18.so': Invalid argument
    [ERROR]  error setting ownership of `./lib/libthread_db-1.0.so': Invalid argument
    [ERROR]  error setting ownership of `./lib/libcidn-2.18.so': Invalid argument
    [ERROR]  error setting ownership of `./usr/lib/gcrt1.o': Invalid argument
    [ERROR]  error setting ownership of `./lib/libgcc_s.so': Invalid argument
    [ERROR]  error setting ownership of `./usr/lib/libstdc++.so.6.0.19': Invalid argument
    [ERROR]  error setting ownership of `./sbin/shutdown.sysvinit': Invalid argument
    [ERROR] Errors were encountered while processing:
    [ERROR] E: Sub-process /opt/petalinux-v2014.4-final/tools/packagemanager/bin/dpkg returned an error code (1)
    [ERROR] make[2]: *** [.pkg_stagefs] Error 255
    [ERROR] make[1]: *** [sub_build_component_/none/packages-repo/single/plnx-repo] Error 2
    ERROR: Failed to build linux
    As you can see, I’m just using the BSP that came from Xilinx. When I run ‘petalinux-build’, I get the ‘ownership / Invalid argument’ errors.
    I have changed all my Xilinx and petalinux directories to be owned by me and changed all the files to be readable/writable/executable by all (chmod 777)
    I have also attached the verbose output from petalinux-build.
    Please advise.
    Regards,
    Misha
     

    I have worked with 2014.4 bsp and i don't see this issue.
    Can you try creating a project in /scratch location and see if the same scenario is seen?
    What linux distribution are you using?
    Regards,
    Achutha
     

  • Lucreate 'ERROR: mount: /export: invalid argument' - Live Upgrade u8 to u9

    I'm trying to update several servers running solaris cluster 3.2 from u8 to u9 using live upgrade, first server (quorum server) worked just fine, next one (cluster member) goes down like this:
    # lucreate -n solaris-10-u9
    ERROR: mount: /export: Invalid argument
    ERROR: cannot mount mount point </.alt.tmp.b-pob.mnt/export> device </export>
    ERROR: failed to mount file system </export> on </.alt.tmp.b-pob.mnt/export>
    ERROR: unmounting partially mounted boot environment file systems
    ERROR: cannot mount boot environment by icf file </etc/lu/ICF.2>
    ERROR: Unable to mount ABE <solaris-10-u9>
    ERROR: Unable to clone the existing file systems from boot environment <s10x_u8wos_08a> to create boot environment <solaris-10-u9>.
    ERROR: Cannot make file systems for boot environment <solaris-10-u9>.I followed all the necessary steps, removed the installed live upgrade packages and installed the ones from the u9 iso...
    Any ideas would be greatly appreciated.
    Edited by: 801033 on Oct 8, 2010 5:11 AM
    Edited by: 801033 on Oct 8, 2010 5:28 AM
    Edited by: 801033 on Oct 8, 2010 5:33 AM

    The answer, at least in my case:
    When I originally installed this cluster, I apparently misread the part of the documentation which lead me to disable lofs. The documentation states that you need to disable lofs if BOTH of two conditions are met,
    1) You are running HA for NFS to server a locally available filesystem AND
    2) you are running automountd.
    In my case, I have no need for automountd, so I disabled the autofs service, reenabled lofs and am proceeding with the upgrade.

  • NIO - Invalid argument (errno:22)

    We have a mutlthreaded framework that spawns many individual threads with each merging extremely large files (1-3GB) to their own [thread] seperate files. We are using Java 1.4.2.10 and running on HP-UX.
    The following is the bit of code that does our appending:
    FileInputStream fileInputStream = new FileInputStream(fileName);
    FileChannel in = fileInputStream.getChannel();
    fileChannel.transferFrom(in, fileChannel.size(), in.size());
    in.close();
    fileInputStream.close();Now the grave issue that we have is that occasionaly we get the following "Invalid argument" error being thrown without any given specific reason. This error is not necessarily reproducable every time.
    java.io.IOException: Invalid argument (errno:22)
            at sun.nio.ch.FileChannelImpl.map0(Native Method)
            at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:876)
            at sun.nio.ch.FileChannelImpl.transferFromFileChannel(FileChannelImpl.java:535)
            at sun.nio.ch.FileChannelImpl.transferFrom(FileChannelImpl.java:598)Any insight on this error (being an existing bug, etc) would be most useful.

    Can you expand on the reason why you have chosen to
    transfer 1MB at a time? Won't this have a performance
    impact when transfering a 100MB file (we loop through
    it 100 times as opposed to once).Have a think about how long it takes to transfer a megabyte and how long it takes to execute two or three lines of loop bookkeeping code 100 times, and you will see that the 'overhead' is negligible. The loop will spend 99% of its time transferring and 1% looping. Probably the true ratio is even more extreme.
    In any case you don't have a choice but to reduce the transfer chunk considerably. It's up to you to find the optimum for your hardware, O/S, files, disk drives, etc.
    The other question that I am really interested to
    know the answer for, is why is thsi error being
    thrown?That's been explained above in replies #1 and #2. You agreed with it yourself in reply #3.
    Why do you suggest changing the copy size out of all things?Err, because that's what causes the error? As in replies #1, #2, and #3?

  • Can't mount a .dmg file I created yesterday. "invalid argument"

    I created two encrypted .dmg files yesterday using Disk Utility.  They both mounted just fine yesterday and I haven't touched them since.  I just now went to mount one of them again and it said "the following disk images could not be opened. (name).dmg  reason: invalid argument.
    I've seen some articles in here about the "invalid argument" error coming up on .dmg files created by a 3rd party, but the advice seems to boil down to "get a new copy of the disk"  but obviously these are things I created myself so there are no other copies.  And I deleted the files that I put on the .dmg's after I tested them yesterday and they both seemed to work. 
    Any suggestions?

    Update: I shut the computer down last night and restarted it this morning, and it worked.  But does anybody know what happened so that I don't repeat it?

  • Invalid arguments to Citadel database?

    I am trying to create a new lookout panel and can't read any of my fieldpoint devices.  Looking at the alarms I get an "invalid arguments" error message that I've attached.
    Any ideas?  I'm running Vista Ultimate x64.  Thanks, mcb

    They are two different problems. The alarm on database logging has nothing to do with the fieldpoint communication.
    Which object do you use, FieldPoint or OPCFieldPoint? If you use FieldPoint, which slot and channel you want to read, and which address of FieldPoint object do you use? First make sure the configuration of FieldPoint is correct, then make sure if you use the correct address.
    What's the alarm you get on FieldPoint?
    The error in screenshot is about the database. Please open MAX, select Historical Data->CItadel 5 Universe, make sure that the database already exists. Check if you have access permission on the database folder. The Vista system may have the permission problem.
    What's the g12_26 object?
    Ryan Shi
    National Instruments

  • Report fails with " Invalid argument for database." error.

    Hi All,
    Several of my reports deployed on Crystal Reports Server 2008 server fails everyday with the following error.
    Error in File ~tmp121c5dc747685036.rpt: Invalid argument for database.
    The error is not consistent, if report A fails today, it is Report B the next day. When I reschedule the reports, they run just fine. They fail only when the daily schedules run at 2:00 AM in the morning. 100 + reports are run at this time and some of the reports that fail run many times with different parameters. Is this error due to scheduling reports many times or is it something else? Appreciate any help with this.
    Thanks
    Bin

    Hi,
    can you please check under <BOBJ installation directory>\BusinessObjects Enterprise 12.0\logging in the log files created by the crystal reports job server for additionaly error messages?
    Regards,
    Stratos
    PS: Do you run CRS 2008 V0 or V1?

  • Couldn't export schema because of invalid argument value and other errors.

    Hello, All.
    I am using an oracle 10g database, which is running on a Redhat9 linux server, to manage our lab information.
    I plan to export a schema (only tables, not the real data) into a file.
    First, I used the Enterprise Manager to export. I went through and complete the export job. After submitting, the system says:
    There is a problem writing to the export files: ORA-39094: Parallel execution not supported in this database edition..
    So I just copy the PL/SQL code which would be send to the source database and comment the set_parallel procedure.
    The code is listed here:
    declare
    h1 NUMBER;
    begin
    begin
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'EXPORT000468', version => 'COMPATIBLE');
    end;
    --begin
    --dbms_datapump.set_parallel(handle => h1, degree => 1);
    --end;
    begin
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_FILE_DIR', filetype => 3);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    end;
    begin
    dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''FLOWLIMS'')');
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    end;
    begin
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U.DMP', directory => 'DATA_FILE_DIR', filetype => 1);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    end;
    begin
    dbms_datapump.data_filter(handle => h1, name => 'INCLUDE_ROWS', value => 0);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
    end;
    begin
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    end;
    begin
    dbms_datapump.detach(handle => h1);
    end;
    end;
    I paste the code in an SQL*Plus session and execute it. The system says:
    declare
    ERROR at line 1:
    ORA-39001: invalid argument value
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2486
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2718
    ORA-06512: at line 23
    I am not very sure which part is wrong for I have exported another schema successfully using this method just now.
    Any advice is highly appreciated!
    Qian

    Well, I will list more details about how to complete the job here.
    1) Go to the Enterprise Manager, log in as FLOWLIMS (I just want to export the schema FLOWLIMS)
    2)Go to the "Maitenance"
    3)Under the "Utilities", select the "Export to files"
    4)in the next page: Export: Export Type, select "Schemas"
    5) in the next page, select the schema "FLOWLIMS"
    6) in the next page, select these parameters:
    Maximam Number of Threads in Export job: 1
    Estimate Disk Space: Blockes
    7) when I click the "Estimate Disk Space Now", it says :
    Export Estimate Failed
    There is a problem writing to the export files: ORA-39094: Parallel execution not supported in this database edition..
    8) So I give up extimating
    9) Other options:
    I select "Generate Log file"
    The Directory Object is the default value "DATA_FILE_DIR"
    The Log File is the default value "EXPDAT.LOG"
    10) the advanced options are like these:
    Content: What to export from the Source Database: "Metadata only"
    Export content: "include all objects"
    Flashback: select "As the specified System Change Number (SCN)
    SCN: just accept the default number 28901412
    Query: select nothing. I need all fields of all tables.
    11) in the next page, I accept the default directory object "DATA_FILE_DIR" and the default File Name "EXPDAT%U.DMP". The Maximam File Size is blank, I just leave it blank.
    12) in the next page "Schedule" , I select to start the job immediatly.
    13) in the next page "Review", it shows:
    Export Type          Schemas
    Statistics type          Estimate optimizer statistics when data is imported
    Parallelism          1
    Files to Export          DATA_FILE_DIR EXPDAT%U.DMP
    Log File          DATA_FILE_DIR EXPDAT.LOG
    and the PL/SQL is like that:
    declare
    h1 NUMBER;
    begin
    begin
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'EXPORT000487', version => 'COMPATIBLE');
    end;
    begin
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    end;
    begin
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_FILE_DIR', filetype => 3);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    end;
    begin
    dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''FLOWLIMS'')');
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    end;
    begin
    dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U.DMP', directory => 'DATA_FILE_DIR', filetype => 1);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    end;
    begin
    dbms_datapump.data_filter(handle => h1, name => 'INCLUDE_ROWS', value => 0);
    end;
    begin
    dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
    end;
    begin
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    end;
    begin
    dbms_datapump.detach(handle => h1);
    end;
    end;
    14) after I click the "submit" , it shows:
    Export Submit Failed
    There is a problem writing to the export files: ORA-39094: Parallel execution not supported in this database edition..
    15) I copy the PL/SQL, comment this part:
    --begin
    --dbms_datapump.set_parallel(handle => h1, degree => 1);
    --end;
    I run it in an iSQL*Plus Release 10.1.0.2,
    It shows:
    declare
    ERROR at line 1:
    ORA-39001: invalid argument value
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2486
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2718
    ORA-06512: at line 23
    Could anybody help? Thanks a lot!
    Qian

Maybe you are looking for

  • Files not accessible from local view

    Hello, I recently got a new computer (iMac 11,3) and transferred all files from a backup drive. Since then, the local view in Dreamweaver's file panel does not display the files in my local root folder. The files are visible and accessible from the d

  • Cancel the Credit memo genarating wrong accounting entry

    Hello, We are facing when we Cancel sales credit memo credit memo genarating wrong accounting document entry in production system. Same scenorio i have replicated in quality system and working fine. I have checked the billing type for credit memo s1

  • SOAP fault - How to log error in response message map

    Hi, I have a scenario ABAP Proxy <-> XI <-> SOAP. Occassionally there is an issue with communication to the destination system and an HTTP 500 Error is returned. I assume this is due to a system related error and it is returned as a SOAP Fault as opp

  • U400 Video driver

    Hello, I had a hard drive crash on a Lenove U400, i changed the hard disk drive. I then reinstall Windwos 7 Home prmium 64 on the laptop.  A standard windows 7 home. The I installed the AMD Catalyst driver, from the lenovo driver web page. AMD Graphi

  • Transferring iTunes library from external drive

    My computer recently died so I had to get a new computer. I was able to salvage my iTunes library from the old hard drive and put it on an external drive. My library is still on the external drive and I want to transfer it back to iTunes on my new co