'unknown' in not a valid path... eror

Here is the situation.
I hava a Microsoft Access DB file on a brinkster.com server.
My current goal is to create an applet that gains access to that db file.
Here is the relavant part of the code:
try {
//select a driver to be used for database access     
//Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//testing area
String dbCon = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=\\\\genfs4\\www34\\thebigapple\\db\\new.mdb";
Connection con = DriverManager.getConnection(dbCon,"admin","");
catch (ClassNotFoundException e){System.out.println(e.toString());}
catch (SQLException e){System.out.println(e.toString());}
Brinkster has some sample codes that allow to connect through ASP.
Using it like so works:
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("\thebigapple\db\new.mdb"))
To get a valid url I printed the Server.MapPath("\thebigapple\db\new.mdb") value, which gave me
\\genfs4\www34\thebigapple\db\new.mdb
I tested it by using
oConn.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=\\genfs4\www34\thebigapple\db\new.mdb")
The path worked.
Now when I use it in my applet, the applet starts (by the way I had to make the applet signed for the drivers to work), I open the java console and it says 'unknown' is not a valid path name...
As far as I know this means that it did not get the DBQ value, right?
Please shed some light on this!
I tried a few different values for the DBQ, still get the same 'unknown'...
Also, I tested the code on a local db. (DBQ=c:\new.mdb) and it DID work.

I've managed to solve this problem.
Here it goes for anyone who would like to use JDBC applets with brinkster free hosting.
The trick is to:
-set the DBQ=\nameOfDBFile.mdb
-sign the applet
-and place it in the \db directory of your site
-also, for some reason the html file that I used to call the applet, refused to work in any place other that the db directory.
So the db directory should have
-.mdb file
-the .html file that is used to call the applet
-and the signed .jar applet file
Hope this helps someone...

Similar Messages

  • Not a valid path error

    I'm having trouble opening my pdf documents in the PDF reader touch app.  It keeps saying "not a valid path" although adobe reader xi can easily open the files.  The app has opened some of the same PDFs before and is giving me the error.

    This is a tough one.  We are still not able to reproduce the problem with your PDF files on our end.  But I would really like to determine the root cause of the problem by asking you more questions.
    Can you open any other PDF documents (not the PDFs that you got from a conference) successfully?  Or do you see the invalid path error dialog for all of the PDF documents that you try to open?
    Here, I am trying to determine whether the problem is file-specific.  For example, the following page on the Adobe web site contains links to two PDF documents in the "How-to guide" section. Please look for the red 'PDF" buttons next to the links.  Once you save the PDF documents on your Windows 8 desktop or in the Documents folder can you open them in Adobe Reader Touch without getting the invalid path error?
    http://www.adobe.com/products/acrobat/pdf-file-password-permissions.html
    What is your operating system?  Windows 8 or Windows RT?  Does it have all of Windows updates applied?
    What is your system configuration?  Is it a desktop, laptop, or tablet?  Could you provide the model number?
    What is your account type?  Administrator or Standard user?
    Another thing that you could try is to ensure that the Adobe Reader Touch is the default PDF viewer on your system.
    FAQ: How to set Adobe Reader Touch as the Default PDF App on Windows 8
    Once you do the above, could you locate other PDF documents in Microsoft File Explorer and double-click or double-tap to open them?
    And finally, would you reboot your system?  Silly as it may sound, rebooting the system often makes "weird" problems go away.
    Thank you for your help and patience, vangadi78!

  • The specified UNC path does not contain a valid WIM file or you do not have permission to access it. please specify a valid path

    I loaded 4 captured images into SCCM via the Add Operating System Image Wizard 2 months ago.
    I have since captured another image to the same location (which is the SCCM site server) and tried to add it to the server.
    I am getting error
    the specified UNC path does not contain a valid WIM file or you do not have permission to access it.  please specify a valid path
    nothing has changed on the site server that i can think of.
    i am domain admin and permissions have not changed.
    anyone got any answers?
    please help i am baffled

    I am having similer issues.
    Win 2003 SP2 - SCCM2007 SP2 R2 single site with MDT2010 intergrated but can not get a MDT2010 TS Captured WIM to import into SCCM OS Images "Invalid WIM". allso i tried to mount the MDT WIM image without luck (Invalid Image). however a SCCM TS
    will Capture and I can Import it into OS Images. it seems like something is amiss with MDT or WAIK possibly.

  • [solved ... :P] yaourt - 'm' is not a valid root path

    [root@pwn etc]# yaourt -noconfirm -Sybu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    local database is up to date
    error: 'm' is not a valid root path
    Aaahhh!!!
    Noooo!!!
    Don't!!!!
    How can I fix it?
    Last edited by synthead (2007-09-24 02:23:18)

    it's --noconfirm, with '2' hyphens

  • Update vault path gives "Not a valid vault file".

    Recently i've copied my vault file(s) to a larger disk.When trying to update the vault path (selecting gear below vaults) it gives me an error that it is not a valid vault file.
    The disks are both formatted as Mac OS Extended (journaled) and I received no error's during the copying.
    I know I could create a new vault file. But it should work. What Could I do to fix this?
    Thanks if you can help.
    P

    It seems your VI has been corrupted. This may have been a LabVIEW error, or a disk file I/O error. You will need to revert to a backup. You should also do a disk scan to rule out any problems with the disk.

  • HFMDriver.dll: %1 is not a valid Win32 application

    I have a Single Server Windows 2008 R2 64bit setup for Hyperion 11.1.2.1 and ODI 11.1.1.5.0
    I am not able to Reverse the Sample HFM application. I get the below error.
    Below are the things I have tried:
    1. Moved HFMDriver.dll and HFMDriver64.dll from C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi.sdk\lib to C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers
    2. Converted HFMDriver.dll to HFMDriver32.dll and HFMDriver64.dll to HFMDriver.dll in C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers -> Still getting Error
    3. Converted HFMDriver.dll to HFMDriver32.dll and HFMDriver64.dll to HFMDriver.dll in all the location -> Still getting Error
    I would really appreciate all the help
    C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\bin>C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\bin\agent.bat "-NAME=oraclediagent" "-PORT=8001"
    OracleDI: Starting Agent ...
    2013-05-01 17:34:20.309 NOTIFICATION ODI-1128 Agent oraclediagent is starting. Application Server: STANDALONE. Agent Version: 11.1.1.5.0 - 22/04/2011. Port: 8001. JMX Port: 9001.
    2013-05-01 17:35:20.285 NOTIFICATION ODI-1136 Starting Schedulers on Agent oraclediagent.
    2013-05-01 17:35:23.698 NOTIFICATION ODI-1111 Agent oraclediagent started. Agent version: 11.1.1.5.0 - 22/04/2011. Port: 8001. JMX Port: 9001.
    2013-05-01 17:35:25.912 NOTIFICATION ODI-1137 Scheduler started for work repository WORKREP1 on Agent oraclediagent.
    java.lang.UnsatisfiedLinkError: C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers\HFMDriver.dll: %1 is not a valid Win32 application
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at com.hyperion.odi.hfm.wrapper.HFMDriverJNI.getDriver(HFMDriverJNI.java:19)
    at com.hyperion.odi.hfm.wrapper.HFMServer.<init>(HFMServer.java:26)
    at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:51)
    at com.hyperion.odi.hfm.ODIHFMAppReverser.connect(ODIHFMAppReverser.java:27)
    at com.hyperion.odi.common.ODIModelImporter.importModels(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)
    at org.python.core.PyObject.__call__(PyObject.java:355)
    at org.python.core.PyMethod.__call__(PyMethod.java:215)
    at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
    at org.python.core.PyMethod.__call__(PyMethod.java:206)
    at org.python.core.PyObject.__call__(PyObject.java:381)
    at org.python.core.PyObject.__call__(PyObject.java:385)
    at org.python.pycode._pyx0.f$0(<string>:38)
    at org.python.pycode._pyx0.call_function(<string>)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1204)
    at org.python.core.Py.exec(Py.java:1248)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:346)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2457)
    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
    at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82) at java.lang.Thread.run(Thread.java:619)
    2013-05-01 17:41:31.170 ERROR ODI-1217 Session HFMSAMPLE (14001) fails with return code 7000.

    Hi,
    have you got the 64 bit driver?
    This is the documentation.
    http://docs.oracle.com/cd/E23943_01/integrate.1111/e12644/hyperion_fm.htm#CHDGDJFF
    in an old post i saw this
    ODI Setup Steps to Integrate with Financial Management
    To setup the ODI to integrate with Financial Management:
    Rename odiparams.bat located at <ODI_HOME>\oracledi\agent\bin to odiparams.bat.backup.
    The default installation location is C:\app\Oracle\product\11.1.1\Oracle_ODI_1.
    Download Oracle Data Integrator Companion CD 11.1.1.6.2.
    Unzip the contents of the Companion CD to the temp directory.
    Unzip oracledi-agent-standalone.zip.
    Copy the contents to: <ODI_HOME>.
    Make a backup of the HFMDriver.DLL.
    For the 32 bit operating system, copy HFMDriver32_11.1.2.2.dll as HFMDriver.DLL.
    For the 64bit operating system, copy HFMDriver64_11.1.2.2.dll as HFMDriver.DLL.
    Rename odiparams.bat.backup from Step 1 to odiparams.
    Edit the PATH to include: <ODI_HOME>\oracledi.sdk\libthis is the link
    Issue while Reverse Engineering the HFM Application

  • Php_saprfc.dll - %1 is not a valid Win32 Application

    I have a fresh install of PHP 4.4.1 working beautifully. c:/winnt/php.ini is set to look in d:/php/extensions and this is working because I've successfully installed php_gd2.dll and libpdf_php.dll.
    I place php_saprfc.dll from saprfc-1.4.1-4.4.1.Win32.zip into d:/php/extensions and librfc32.dll into c:/winnt
    When I place extension=php_saprfc.dll into php.ini I get an alert box on the server Desktop - "Unknown(): Unable to load dynamic library 'd:\php\extensions\php_saprfc.dll' - %1 is not a valid Win32 application."
    I've tried following exactly the same installation procedure on a different machine and all works well - the only difference is that PHP on this machine is installed on the same drive as the system. The production machine has PHP installed on a seperate drive.
    OS is Win2K3 and I'm running IIS6 with PHP called as CGI.
    Any advice gratefully received.

    humm,
    AFAIK these kind of %1... errors refer to some kind of a missing dependency situation, so I'd suspect the librfc32.dll to be broken, missing, or something like that.
    Maybe in the context of th IIS there is a path problem. Could it be that you have a path variable containing a path to another librfc32.dll with a space in it (like in Program Files). If this is in the path before the system directories, the php-cgi is called like
    'execute' C:Program Filespath_to_sapguilibrfc32.dll
    In this case the program called (%1) were C:\Program and not the whole stuff. 'Files\path_to_sapgui\librfc32.dll' is then considered to be an additional parameter to.
    Unfortunately there's a lot of different situations which lead to such errors.
    Me personally, I do often end up to put the php base directory on the path, set the PHPRC env variable to the system dirs and (definitely reduntantly) copy the php5apache2.dll, phpisapi.dll, etc from the php base dir to the system directories and scan the whole system for eventual alternate php.ini files.
    Inever found (myself or in any php forum) a pattern common to this problems.
    regards,
    anton

  • Error - "not a valid pdf document. it cannot be opened"

    I am getting this error message when opening PSE. It says "This is not a valid Portable Document File (PDF) document.  It cannot be opened."  Needing help asap!  Thanks!

    Quit PSE. Then go to your username>library>preferences and delete:
    com.adobe.PhotoshopElements.plist
    Adobe Photoshop Elements < version number > Paths
    Adobe Photoshop Elements < version number > Settings
    In 10.7 and higher that library is hidden.  To see it, option click the Go menu in the Finder and it will appear below the little house for your user account. Also in 10.7 and up, while you're in there go to the saved application states folder and delete any for PSE.
    Repair permissions and try again.

  • M_View failed inrefresh throws error: ORA-12008/ORA-01843:not a valid month

    I am not able to refresh this matrialized view in 2 databases.Can some one help please
    ======================================================
    SQL> exec dbms_refresh.refresh('OID_SYNCH.OID_SYNCH_EMPLOYEES_HR');
    BEGIN dbms_refresh.refresh('OID_SYNCH.OID_SYNCH_EMPLOYEES_HR'); END;
    ERROR at line 1:
    ORA-12008: error in materialized view refresh path
    ORA-01843: not a valid month
    ORA-02063: preceding line from HR
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2251
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2457
    ORA-06512: at "SYS.DBMS_IREFRESH", line 685
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    ======================================
    DDL of Matrialized view is as:
    CREATE MATERIALIZED VIEW "OID_SYNCH"."OID_SYNCH_EMPLOYEES_HR" ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "OID_SYNCH_D" BUILD IMMEDIATE USING INDEX REFRESH COMPLETE ON DEMAND START WITH sysdate+0 NEXT trunc(sysdate + 1) USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE AS ( select hr_person_id, hr_employee_status, hr_employee_number,hr_workbrain_id, hr_last_name, hr_first_name, hr_full_name,
    hr_known_as, hr_middle_names, hr_previous_last_name,hr_suffix, hr_email_address, hr_user_name,system_person_type, user_person_type, hr_start_date, hr_last_update_date,home_city, home_state, home_zip, home_country,home_last_update_date,position_name, job_name,work_location_code, work_location_desc,work_city, work_state, work_zip,work_country,work_last_update_date,hr_supervisor_name,hr_supervisor_id,hr_sup_last_update_date,termination_date
    from oid_synch_employees@hr )

    >
    I am not able to refresh this matrialized view in 2 databases.Can some one help please
    >
    Post the ddl for the source table.
    Also do a test. Create a table that is a clone of the MV table. Then try to do an INSERT INTO SELECT * FROM the source table into the clone table and see if you get an error.
    Don't forget to post the 4 digit Oracle versions of the source and target databases.

  • "not a valid short file name" and "invalid character" install errors

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    Symptoms
    While upgrading or uninstalling a Windows software application (such as iTunes for Windows or QuickTime for Windows), you may receive one of the following error messages:
    file name is not a valid short file name
    The folder path 'folder name' contains an invalid character.
    ... where file name could be the name of any file, and folder name could be the name of any folder.
    In the case of software that uses advertised shortcuts (such as recent versions of iTunes for Windows or Safari for Windows), the messages may also appear when attempting to launch software that has already been installed.
    Resolution
    The error messages are usually caused by damage to the installation database for the application. Clearing the installation database for the application by using the Windows Installer CleanUp utility can usually get you past the error message.
    (1) Click [here|http://support.microsoft.com/kb/290301] first, and read the important information about the utility.
    (2) Click the *Download the Windows Installer Cleanup Utility package now* link on that page to download a file titled msicuu2.exe.
    (3) Open the msicuu2.exe file and follow the prompts to install it.
    (4) In your Start menu click *All Programs* and then click *Windows Install Clean Up.* The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (5) Select the software you're getting the "not a valid short file name" or "invalid character" message for from the list and click Remove.
    (6) Click OK in the confirmation dialog that appears.
    (7) If you have multiple entries for the software you're getting the "not a valid short file name" or "invalid character" message for, repeat steps 5 and 6 for the other entries for the software.
    (8) Click Exit.
    (9) Restart the computer.
    If you were getting the "not a valid short file name" or "invalid character" message when trying to upgrade or launch software, now try reinstalling the latest version of the software.
    If you were getting the "not a valid short file name" or "invalid character" message when just trying to uninstall software, program files for the software in question will remain on the PC after it has been removed by the Windows Installer CleanUp utility. If you want to remove leftover program files, check in at the appropriate forum at [Apple Discussions|http://discussions.apple.com/index.jspa?categoryID=1] and ask which files can be safely removed.
    This is the 1st version of this tip. It was submitted on March 24, 2010 by b noir.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Go to Microsoft website to fix installer file problems.
    Click "Run now" from Fix it to remove all iTunes & related installer files:
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.
    Download and Install iTunes

  • Manual Kernel Compilation fails with "Error: not a valid kernel..."

    I wanted to try out the Zen kernel to compile my own custom kernel. The basic steps that I did were:
    1. $ make localmodconfig
    2. $ make -j3
    3. # make modules_install
    4. # cp -v ~/<build directory>/arch/x86_64/boot/bzImage /boot/vmlinuz-linux-zen-3.1.4.img
    5. # mkinitcpio -k vmlinuz-linux-zen-3.1.4 -g /boot/initramfs-linux-zen-3.1.4
    and I get the error:
    ==> ERROR: '/lib/modules/vmlinuz-linux-zen-3.1.4' is not a valid kernel module directory
    Inside of /lib/modules I have a new files called "3.1.4-zen-ARCH-g30db333 (and the original files that were there from the stock kernel).
    Inside of /boot/ I have the stock image and the stock initram as well as "vmlinuz-linux-zen-3.1.4.img"
    Which step am I missing? Also, I was thinking it was possible to NOT use an initram if I just compiled the ext2 and ext4 (root is ext4) into the kernel instead of building them as modules. Is my thinking correct? Also, if anyone needs a reason why I'm using the zen sources instead of the nice Liquorix binary, the answer is simply that I wanted to mess around with it to satisfy my curiosity. Thanks.

    As per the man page:
    -k kernelversion
    Use kernelversion, instead of the current running kernel. This may be a path to a kernel image or a
    specific kernel version. If specified as a path to an image, this will always be prefixed by the basedir.
    You've picked... neither? I guess you want "/boot/vmlinuz-linux-zen-3.1.4.img" or "3.1.4-zen-ARCH-g30db333".
    Compiling the filesystem module into the kernel alone is not sufficient to avoid using an initramfs. You also need, at a minimum, drivers for the disk controller and a block device driver.
    Last edited by falconindy (2011-12-08 04:43:21)

  • XMLTable default values for timestamp results in ORA-01843: not a valid month

    When I try to provide a default for a timestamp value in the XMLTABLE function, I am greeted with an error - ORA-01843: not a valid month - no matter how I provide that default value. Whether there is a value present in the XML or not is irrelavant for this bug to occur. It appears to be an incomplete fix of bug number 9745897 (thread).
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp default sysdate) x;
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp default systimestamp) x;
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp default to_char(systimestamp, 'YYYY-MM-DD"T"HH24:MI:SS') ) x;
    Edit: A little more followup.
    This works:
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC></DOC>')
      COLUMNS dt date default sysdate) x;
    This also works, except for its just the date, and not the date/time
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC></DOC>')
      COLUMNS dt timestamp default sysdate) x;
    This doesn't work
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC></DOC>')
      COLUMNS dt timestamp default systimestamp) x;
    ORA-01861: literal does not match format string

    Hi,
    First of all, let's check the manual for the DEFAULT clause :
    XMLTABLE SQL/XML Function in Oracle XML DB
    The optional DEFAULT clause specifies the value to use when the PATH expression results in an empty sequence (or NULL). Its expr is an XQuery expression that is evaluated to produce the default value.
    According to the documentation, the DEFAULT clause should specify an XQuery expression.
    However, that is wrong, the actual implementation only expects an expression that resolves to a string, the content is not interpreted.
    So, bottom line is if we don't directly specify a string, the expression will be implicitly converted to one, and we all know how bad things can go when implicit conversions occur, especially when dates or timestamps are involved.
    Now let's focus on how the DEFAULT clause affects the query evaluation.
    When a DEFAULT clause is specified, Oracle rewrites the projection differently and do not use the native xs:dateTime format to convert the value  :
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp default systimestamp
      ) x
    becomes :
    SELECT CASE EXISTSNODE(VALUE(KOKBF$),'/DOC/DT')
             WHEN 1 THEN CAST(TO_TIMESTAMP(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQEXTRACT(VALUE(KOKBF$),'/DOC/DT')),50,1,2)) AS timestamp )
             ELSE CAST(TO_TIMESTAMP(TO_CHAR(SYSTIMESTAMP(6)),'SYYYY-MM-DD"T"HH24:MI:SSXFF') AS timestamp )
           END  "DT"
    FROM TABLE("SYS"."XQSEQUENCE"(EXTRACT("SYS"."XMLTYPE"('<DOC><DT>2013-08-14T15:08:31</DT></DOC>'),'/DOC'))) "KOKBF$"
    See the red part : it doesn't use the format parameter, so the conversion relies on the session's NLS settings.
    When there's no DEFAULT clause, the TO_TIMESTAMP function uses an explicit format :
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp --default systimestamp
      ) x
    rewritten to :
    SELECT CAST(
             TO_TIMESTAMP(
               SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQEXTRACT(VALUE(KOKBF$),'/DOC/DT'),0,0,20971520,0),50,1,2)
             , 'SYYYY-MM-DD"T"HH24:MI:SSXFF'
             AS timestamp --default systimestamp
           ) "DT"
    FROM TABLE("SYS"."XQSEQUENCE"(EXTRACT("SYS"."XMLTYPE"('<DOC><DT>2013-08-14T15:08:31</DT></DOC>'),'/DOC'))) "KOKBF$"
    so yes, maybe there's a bug here.
    Edit: A little more followup.
    This works:
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC></DOC>')
      COLUMNS dt date default sysdate) x;
    Actually no, it doesn't work. Granted, maybe it doesn't produce any error, but the result is incorrect.
    As explained, the conversion relies on the session NLS (NLS_DATE_FORMAT in this case) :
    SQL> show parameters nls_date_format
    NAME                                 TYPE        VALUE
    nls_date_format                      string      DD/MM/RR
    SQL>
    SQL> select sysdate from dual;
    SYSDATE
    16/08/13
    SQL> select x.*
      2  from
      3  xmltable('/DOC' passing xmltype('<DOC></DOC>')
      4    COLUMNS dt date default sysdate) x;
    DT
    13/08/16
    Oracle first converts SYSDATE to a string using current NLS_DATE_FORMAT, resulting in '16/08/13'
    Then this string is converted to a DATE using the xs:date format 'YYYY-MM-DD' resulting in 13/08/0016 (August 13, 0016) which is incorrect.
    The obvious workaround to this issue is to control how Oracle implicitly converts from string to date/timestamp format :
    SQL> alter session set NLS_TIMESTAMP_FORMAT= 'YYYY-MM-DD"T"HH24:MI:SS';
    Session altered.
    SQL> select x.*
      2  from
      3  xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      4    COLUMNS dt timestamp default systimestamp
      5    ) x;
    DT
    2013-08-14T15:08:31
    SQL> select x.*
      2  from
      3  xmltable('/DOC' passing xmltype('<DOC></DOC>')
      4    COLUMNS dt timestamp default systimestamp) x;
      COLUMNS dt timestamp default systimestamp) x
    ERROR at line 4:
    ORA-01861: literal does not match format string
    SQL> select x.*
      2  from
      3  xmltable('/DOC' passing xmltype('<DOC></DOC>')
      4    COLUMNS dt timestamp default cast(systimestamp as timestamp)) x;
    DT
    2013-08-16T12:32:58

  • Sqlplus.exe is not a valid win32 application error

    Hi All,
    I have installed oracle 10gr2 on windows xp.
    if i type sqlplus in command prompt i get this error
    "C:\oracle\product\10.2.0\db_1\BIN\sqlplus.exe is not a valid win32 application".
    i went to the path where sqlplus is present i observed that sqlplus.exe file was 0KB.
    how can i resolve this problem. i want to upgrade oracle 9i to 10g so i need sqlplus of 10g to work properly.
    please anyone help me out to solve this problem.
    Regards,
    Veeresh S

    You'd have to find out how and why that file became 0KB in size.
    If one file is 0KB in size, what assurance do you have that other files aren't
    also corrupted ?
    It could have been a virus-scanner wrongly attempting to quarantine the file,
    it could have been a backup-restore session that copied the file back as 0KB,
    it could have been some command that you executed in attempting the upgrade.

  • When trying to open documents, getting error as File is not a valid Win32 application

    Hi,
    I am trying to open a MPP by clicking on the name of the file. But I am getting the error as "path\filename.mpp is not a valid Wind32 application".
    I am able to save the document and open it in MPP, but clicking on the document name is giving this error "File is not a valid Win32 application".
    I have tried to repair "Microsoft Project". But still the same issue. I am using Office 2010. SharePoint site is SP 2010.
    How to fix this?
    Thanks

    Hi Ed,
    I am sorry, but I could not understand that answer.
    I have put that answer in the below quotes:
    "You are never going to believe what I did. This is a nice ending to a very confusing situation. lol
    I uninstalled Project 2007 and rebooted my laptop and reinstalled Project 2007. No Difference at all. Same thing happened. I just couldn't stop thinking about how 2007 Microsoft Office Component kept showing up in default programs. This has bugged me for days.
    I went browsing in my program files. I typed in Microsoft Office Project. The only thing I found was WINPROJ. I decided to check it out. I checked it's properties, size, location, etc.. What did I have to lose at this point? I clicked on it and it went into
    my default programs as Microsoft Office Project 2007. This doesn't make any sense to me. But, don't try to fix anything else if it isn't broken, right? It's working and I am so relieved. I mean, YAAAAY!!! Another mystery solved...
    Thanks for hanging in there with me to help solve this mystery. You have been of great assistance to me. You made me think outside the box and it worked.
    Laura"
    Does it mean MPP Should be a 2007 version?
    Thanks

  • UnsatisfiedLinkError: ocijdbc10.dll: %1 is not a valid Win32 application

    we are running 64-bit Oracle client and getting the following exception in JDBC application when trying to use OCI JDBC URL:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\oracle\product\10.2.0\db_1\BIN\ocijdbc10.dll: %1 is not a valid Win32 application
    Obviously this is an incompatibility with Oracle 64-bit and JRE 32-bit. Should we install JRE 64-bit? We use Intel's hardware, but on Sun's site it looks like JRE 64-bit is for AMD only - name of the file is jre-1_5_0_09-windows-<b>amd64</b>.exe.

    humm,
    AFAIK these kind of %1... errors refer to some kind of a missing dependency situation, so I'd suspect the librfc32.dll to be broken, missing, or something like that.
    Maybe in the context of th IIS there is a path problem. Could it be that you have a path variable containing a path to another librfc32.dll with a space in it (like in Program Files). If this is in the path before the system directories, the php-cgi is called like
    'execute' C:Program Filespath_to_sapguilibrfc32.dll
    In this case the program called (%1) were C:\Program and not the whole stuff. 'Files\path_to_sapgui\librfc32.dll' is then considered to be an additional parameter to.
    Unfortunately there's a lot of different situations which lead to such errors.
    Me personally, I do often end up to put the php base directory on the path, set the PHPRC env variable to the system dirs and (definitely reduntantly) copy the php5apache2.dll, phpisapi.dll, etc from the php base dir to the system directories and scan the whole system for eventual alternate php.ini files.
    Inever found (myself or in any php forum) a pattern common to this problems.
    regards,
    anton

Maybe you are looking for

  • How Do I see components

    I have a series of components that I assign various values (text) to.  We added a TabNavigator to reduce the vertical space that was being taken and now the components within it are null and won't accept the values that they did before the TabNavigat

  • IPod classic 160gb recognized in itunes but not Windows

    Bought this week and I have spent the last 3 hours trying to get this to work. Windows says that the "hardware is installed and ready to use", but the iPod is not found in "My Computer". Device Manager -> Apple mobile device usb driver says it is wor

  • HP LaserJet 3380 Scanning Software for Win 7

    Hi, I own two HP LaserJet 3380 Devices, one is connected to a machine that runs Win XP, the other to a Win 7 computer. On the Win XP, I am using a scanning software, that is super fast and works excellently. I have a shortcut on my desktop on which I

  • I can't open my bookmarks

    When I was downloading Firefox I was not asked if I wanted to import my bookmarks from IE, but after the download was finished most of the bookmarks were there in the toolbar. The problem is, none of them will open for me.

  • Selecting spreadshee​t rows to expand by columb informatio​n

    Hello everyone, I am writing a number of rows of test data to a spreadsheet with a unique serial number in columb 1.  I need to revisit each row at a later stage to add additional test data to that row using the serial number as the reference. I also