File not Opening in KM

Hi Experts,<br>
Can helpme ASAP plz,<br>
I'm Uploading file in to KM using FileUpload UI in WDJ, affter click on submit button (any of the file) is storing in KM, but My Problem is <br> when am opeing file @KM am not able to C the data on th file, file is blak and some time its diplaying PopUp box like ConvertFile.<br> so am not sure bout this what to do?
Can u tell me Exactly where i have cahnge plz. am attaching my code on ActionImpl Button also .<br>
     IPrivateTendersUploadView.IFileElement fileelement = wdContext.currentFileElement();//createFileElement();<br>
     try<br>
     {<br>
      IWDAttributeInfo attributeInfo  = wdContext.nodeFile().getNodeInfo().getAttribute("Filedata") ;<br>
      IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attributeInfo.getModifiableSimpleType();<br>      byte[] fileByteArray = wdContext.currentFileElement().getFiledata();<br>
      IWDClientUser wdClientUser = WDClientUser.getCurrentUser();<br>
      com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser(); <br>
      IUser ep5User =WPUMFactory.getUserFactory().getEP5User(sapUser); <br>
      ResourceContext context = new ResourceContext(ep5User);<br>
      RID rid = RID.getRID("/documents/MCGM Department/City Eng/");<br>
      IResourceFactory factory = ResourceFactory.getInstance();<br>
      ICollection collection = (ICollection) factory.getResource(rid,context);<br>
      String fileName = wdContext.currentFileElement().getResource().getResourceName();<br>
      //String location = "D:
Test
";<br>
      //ByteArrayInputStream inputStream = new ByteArrayInputStream(fileByteArray);<br>
      //wdComponentAPI.getMessageManager().reportSuccess("catch error = " + e);     <br>
      InputStream inputStream = wdContext.currentFileElement().getResource().read(false);<br>
      File destfile = new File(fileName);//fileName <br>
      FileOutputStream out = new FileOutputStream(destfile);<br>
      if (inputStream != null)<br>
      {<br>
      out.write(inputStream.read());      <br>
      }<br>
      out.close();<br>
      FileInputStream fin = new FileInputStream(fileName);//fileName<br>
      fin.read(); <br>
      BufferedInputStream bufInStream = new BufferedInputStream(new FileInputStream(destfile));<br>
      BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));<br>
                      Content content = new Content(inputStream,"application/octer-stream",-1L,"UTF-16");<br>
      IResource newResource = collection.createResource(fileName, null, content);//IResource newResource = collection.createResource("NDGD.pdf",null,content);<br>
      long contentLen = newResource.getContent().getContentLength();<br>
      if (contentLen < 0) <br>
      {<br>
      } <br>
                  else<br>
        {<br>
      IWDControllerInfo controllerInfo1 = wdControllerAPI.getViewInfo().getViewController();<br>
      String first1 = "File uploaded Successfully!!! ";<br>
      IWDConfirmationDialog dialog1 = wdComponentAPI.getWindowManager().createConfirmationWindow(first1, controllerInfo1.findInEventHandlers("Ok"),"Ok");<br>
      dialog1.open();<br>
      } //else<br>
     }<br>
                catch (Exception e) <br>
                {<br>
     //wdComponentAPI.getMessageManager().reportSuccess(" First Select a File From Your Loal System" + e);<br>
      IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();<br>
      String dialogText = "The given File Alreday Exists Please Change File Name OR Do you want to create New version of this file";<br>
      IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,controllerInfo.findInEventHandlers("Yes"),"Yes");<br>
      dialog.addChoice(controllerInfo.findInEventHandlers("No"), "No");<br>
      dialog.open();<br>
      }<br>
ThanQ
Edited by: vRichard on Sep 24, 2009 9:14 AM

Hi,
Seems as a problem with the mimetype of the uploaded file - check this line:
Content content = new Content(inputStream,"application/octer-stream",-1L,"UTF-16");
should't be:
Content content = new Content(inputStream,"application/octet-stream",-1L,"UTF-16");
I think, the best would be to get the mimetype from the file element...
Romano

Similar Messages

  • Getting Message as "File not open", when I ran background Job

    Hi,
    I developed a Migration Program, Which reads the data from Application serever and procced with further process in back ground mode.
    Same program is workind fine in Development System in Back ground mode (SY-BATCH = 'X', Scheduled a batch Job). So I transported to Quality system.
    Now When I run the program in background mode (SY-BATCH = 'X', Scheduled a batch Job), getting Message as "File is not Open" at Quality system. So I debugged the Batch job  through "JDBG", and found file opening and reading the content sucessfully.
    But its not working without debugging mode and getting message as "File not open".
    Is there any Authorizations required for background mode (without debugging).
    So can you please help me on this how to solve this issue.

    Try this code:
    DATA: PATH_NAME(80) TYPE C,
            LV_FILENAME TYPE STRING.
      DATA: LW_XSTRING         TYPE XSTRING,
            X_LEN             TYPE I.
      DATA: FILE_AUTH_ERR TYPE REF TO CX_SY_FILE_AUTHORITY,
            FILE_OPEN_ERR TYPE REF TO CX_SY_FILE_OPEN,
            FILE_OPEN_MODE_ERR TYPE REF TO CX_SY_FILE_OPEN_MODE,
            FILE_CLOSE_ERR TYPE REF TO CX_SY_FILE_CLOSE,
            FILE_CONVERSION_ERR TYPE REF TO CX_SY_CONVERSION_CODEPAGE,
            FILE_TOO_MANY_ERR TYPE REF TO CX_SY_TOO_MANY_FILES,
            MESS TYPE STRING,
            W_TEXT TYPE STRING.
      DATA: L_RC TYPE INT4.
    concatenate pathname lv_filename into lv_filename.
    TRY.
          OPEN DATASET LV_FILENAME FOR INPUT IN BINARY MODE MESSAGE MESS.
        CATCH CX_SY_FILE_OPEN_MODE INTO FILE_OPEN_MODE_ERR.
          W_TEXT = FILE_OPEN_MODE_ERR->GET_TEXT( ).
          L_RC = 1.
        CATCH CX_SY_FILE_AUTHORITY INTO FILE_AUTH_ERR.
          W_TEXT = FILE_AUTH_ERR->GET_TEXT( ).
          L_RC = 2.
        CATCH CX_SY_CONVERSION_CODEPAGE INTO FILE_CONVERSION_ERR.
          L_RC = 3.
          W_TEXT = FILE_CONVERSION_ERR->GET_TEXT( ).
        CATCH CX_SY_TOO_MANY_FILES INTO FILE_TOO_MANY_ERR.
          L_RC = 4.
          W_TEXT = FILE_TOO_MANY_ERR->GET_TEXT( ).
        CATCH CX_SY_FILE_OPEN INTO FILE_OPEN_ERR.  "File already open
          L_RC = 5.
          W_TEXT = FILE_OPEN_ERR->GET_TEXT( ).
      ENDTRY.
      IF L_RC = 0.
        L_RC = SY-SUBRC.
      ENDIF.
      IF L_RC <> 0 OR SY-SUBRC NE 0.
    Issue Error message in open file.
       CONCATENATE MESS 'Open dataset failed'  w_text INTO MESS SEPARATED BY SPACE.
       message Exx(yyy) with mess.
          ELSE.        "file exists and can be opened
      ENDIF.

  • PDF File not opening in browser for sharepoint 2010

    Recently we have moved our web application from one server to another in Sharepoint 2010. Back up of entire web application was taken and restored in another server. But in the new server , the PDF files in the document library is not getting opened in browser.
    it always open in browser
    I have already made following changes but didn,t work
    Set browser file handling to Permissive from central admin
    Set "open in browser" in setting s of doc library
    Set the doc library file handling property using $docLib = $web.lists["Your Document Library Title"] $docLib.BrowserFileHandling = "Permissive" $docLib.Update()
    Added "AllowedInlineDownloadedMimeType.Add("Application/Pdf") in web app
    Installed Adober eader in client machine
    Even after trying all these, the PDF files are still opening in Client application(Adobe reader) but not in the browser
    It would have been great help if anybody provide a solution for this. I have been banging head on this for two days

    It would be handy if you didn't double post too.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/81ed0362-4033-4a31-b265-c1aba43c3d14/pdf-file-not-opening-in-browser-for-sharepoint-2010?forum=sharepointadminprevious
    To answer your question, you've tried most things that I normally see working, but there may be an extra solution here for you.  The solution 2 Powershell that deals with updating the Inline MimeType may help.
    http://www.pdfshareforms.com/sharepoint-2010-and-pdf-integration-series-part-1/
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • JNLP file not opening in Windows 8 and IE 10

    I am trying to launch the ROES ordering tool through WHCC prints and it has always worked on my other IE 10 through Windows 7 but on my new computer with Win 8 I cannot get it to launch because of the JNLP file not opening... and it won't work on desktop
    mode either... What do I need to do??

    Hi,
    Have you installed the java Runtime Environment?
    If not, I would also suggest you to refer to the link to install the latest version of Java:
    http://www.java.com/en/
    Please note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Then follow the link to set default programs as Java for the file:
    Choose the programs
    Windows uses by default
    http://windows.microsoft.com/en-US/windows-8/choose-programs-windows-uses-default
    Hope this helps,
    Ada Liu
    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.

  • Pdf file not opening on pushing fdf file with F key in Adobe  Reader

    Well i am a novice developer in case of PDF Development.
    The problem which i am facing is:-
    In our application a PDF document submits the data to server and server sends back FDF to client with f key as http path of PDF which is present on web server.
    This all works well in acrobat professional 7.0 but in abobe reader 8.0 the PDF file doesn't open up on pushing FDF.
    On debugging the problem i found out that if server sends response within 480 milliseconds then reader is showing the pdf otherwise it don't shows up.Since in our application it will always take more than this time because of several operation performed to serve the request posted to server,So the
    PDF will never show up in case of reader.
    I was unable to understand what make it special in acrobat professional that session lasts more than 480 milliseconds whereas in reader the session doesn't last that long.
    I really need uregent help on this.
    Thanks in advance for help.

    It would be handy if you didn't double post too.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/81ed0362-4033-4a31-b265-c1aba43c3d14/pdf-file-not-opening-in-browser-for-sharepoint-2010?forum=sharepointadminprevious
    To answer your question, you've tried most things that I normally see working, but there may be an extra solution here for you.  The solution 2 Powershell that deals with updating the Inline MimeType may help.
    http://www.pdfshareforms.com/sharepoint-2010-and-pdf-integration-series-part-1/
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Quick Time file not opening

    Suddenly QuickTime 7.5.5 stopped opening the movies stored in one Hard Disc.
    Here are descriptions of how problem occurs:
    1) The preview in finder +column view+ shows only blank space, but not a movie.
    2) Instead of opening the file QT claims that "This is not a movie file"
    3) Not all the movies in the disk are injured but about 80 % of them. There might be in same folder movies that behaves normally and movies that behaves as described above.
    I have restarted the machine few times and repaired the disk with disk utility, with not any couraging results...
    If there were any ideas what the problem might be, and how to fix it, advices would be very much appreciated.
    Screenshots of the problem:
    http://koti.welho.com/tsuonio1/File-not-open.jpg

    Two possibilities spring to mind. One is that the HD itself has been damaged somehow. Try copying one of the "bad" video files to your boot drive and opening from there. If it won't copy, your HD is clearly bad, if it copies and plays then something weirder is going on with the drive.
    The other possibility has to do with the h264 codec you used. Apple's implementation of the H264 standard is a work in progress, they've been gradually adding features that are part of the full standard and may have broken something. If you recently upgraded QT that may be the problem. If you created the files using a third party H264 codec that might explain the playback problems. Also, you should install Perian (www.perian.org) and see if that helps, their codec plays back many formats that Apple doesn't support out of the box.
    You may need to upload one of the bad files to an filesharing website of some kind so that other folks here can download and look at it themselves.

  • .indd files not opening with recently installed Indesign CS3

    The .indd files don't have the Indesign icon next to them, instead they have the win32 icon. When I double click on one of the files an error message appears telling me that...
    "this file is not a valid win32 application"
    Even when I right-click on the file and choose to open with Indesign, it tells me the same thing. Also in this options menu, Indesign is not shown with the Indesign logo next to it, but rather the windows generic 'unknown file type' logo.
    If I open Indesign first however, and then choose file>open and choose the file. It opens fine.

    Exactly my situation yesterday, with the icon disappearing and INDD files not opening within InDesign from Explorer.
    I'm using an early XP Pro, which I guess qualifies it as 32 bit.
    The steps to rebuilding everything using the Folder Options in Windows Explorer are:
    Tools > Folder Options > File Types
    If INDD is not listed, click the New button to creat an entry, otherwise select it and click the Advanced button.
    You have an option to change the icon, so navigate to C:\Program Files\Adobe\Adobe InDesign CS3 and select the InDesign icon.
    Then under actions you need to create four actions that will relate to the context menu choices when you right click an INDD files, so click New and add actions for edit, open, preview and print.
    In the Application used to perform action box enter "C:\Program Files\Adobe\Adobe InDesign CS3\InDesign.exe" "%1"
    Those quote marks are important. Just browsing to InDesign.exe will fill the box for you, but for some reason - for me at least - it creates the %1 indicating to open the file you selected, but it doesn't wrap it in quotes. And without those quotes (at least on my machine) InDesign will start but won't load the file.
    There is also a check box to use DDE. I don't know what's appropriate here, but I ticked the box and it works OK.
    k

  • Software Updates Missing and File Not opening in Final Cut Pro

    Hi Experts,
    I am having trouble with Final Cut Pro. Here goes:-
    I tried to load up a FCP file called "Overview" in Lesson One of the Apple Pro Training Series book called "Color". The file would not open and I got the following message alert in FCP:
    "File's format is too new for this version of the application".
    I am running FCP 6.0.1 and so went to check for software updates. I could not find any listed for FCP. I did a quick internet search to make sure and found there were indeed updates to 6.0.1.
    So I guess I have 2 problems:
    1. Why won't a file from a book that was published before I bought FCP work on my app?
    2. Why can't I see updates for FCP in the Software Update application?
    I am mega stuck with this. I have read of similar problems to mine on the internet but have found no solution. I hope that you will be able to help me out.
    Thank you all,
    Bob

    Hi Nick!
    Thanks for your reply. I feel kinda silly now but I have been continuously checking Software Update for 24hrs and I just got a new addition to the list which was called "Pro Applications Update 2008-05".
    Seeing something new, I installed it and it upgraded my Final Cut Applications including FCP to version 6.0.5.
    The file then opened.
    I am truly sorry to have taken your time up. As when I posted last time Nick, you were very prompt and helpful.
    All the best,
    This problem is solved for me and I hope all the other people having this problem find this update as luckily as I just did.
    Bob

  • IWeb "Domain" File Not Opening in Mavericks

    I just bought a new Mac Pro and converted everything over from my early 2008 Mac Pro.  However, my iWeb Domain file will not open in the new Mac.  It defaults to the start up iWeb page asking me to choose a new template. 
    Facts:
    1- Both systems are running same version of Mavericks.
    2- Both systems are running same version of iWeb.
    3- In the Early Mac system, when I open iWeb, the Domain automatically opens.  In new Mac it opens to the "choose a template for your webpage" option.  Same result if I double click on the actual Domain file.
    Troubleshooting already done:
    1- Confirmed this is the only Domain file on the system
    2- Opened same file on old system to ensure it is a valid Domain file
    3- Re saved in old system and transferred over to new system.  Same result when opening.
    Thank you in advance for any insights on this.

    To open your domain file in Lion or Mountain Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file in your Home/Library/Application Support/iWeb folder that you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    NOTE: In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible in Lion or Mt. Lion enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder.
    For Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Optionsmenu to bring the this window:
    OT

  • .pdf file not opening in Illustrator CS5

    All of a sudden, I cannot get ,pdf files to open in Illustrator CS5. what would cause this?
    Thanks

    Jeremy,
    Or you may go further down the list.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save curent artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html
    Edit: Hi Steve. Whatever was white is less so now.

  • .doc File not opening in SAP

    Hi,
         I am a Network Engineer & i am a noob in SAP.
    One of our Customers is implementing SAP in their Enterprise & they are learning it.
    Today, there is an error came in the SAP.Some users are not able to open a .doc File from the SAP Window.SAP expert is saying that its a PC Error.We have re formatted the PC & re installed the Microsoft Office in it.Still, the error is coming in 3 PCs.
    Due to this, they (Users) are not able to download the reports.
      I am attaching a Screen Shot which will give you  the exact type of Error it is showing.Please help me step by step if you know the solution.
    Thanks in Advance!!
    Click on the Link for the Screen Shot:
    [SAP Error|http://i357.photobucket.com/albums/oo15/rajeevpayal/SAP_Error.jpg]
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Sep 28, 2011 3:42 PM

    Hi,
    EXECUTE I18N TRANSACTION CODE--> EXPAND I18N CUSTOMIZING > DOUBLE CLICK ON MS WORD EDITOR--> SELECT BOTH CHECK BOX FOR SCRIP AND SMARTFORMS AND CLICK ON ACTIVE...........
    NOW YOUR FILE CAN OPEN IN SAP...
    ABOVE MENTION STEPS ONLY WORK IN ECC VERSION...
    REGARDS,
    KRISHNA

  • Project file not opening in my system

    I have installed a new LabVIEW 8.2 and all the drivers resourses also, i am not able to open th project file, sometimes the NIMax is not opening and keeps me installing again and again but not working properly.even after formating the system i am not able to install labview propely, there is no antivirus software installed in it. any one faced this problem earlier...

    Hi Kodeeswaran,
    There could many reasons why this is happening. I would suggest the following steps.
    1) Check to see if LabVIEW is properly activated or not.
    2) Check if you are an administrator of that particular machine.
    3) Try out the steps provided in this KnowledgeBase
    4) Has the same set of CDs worked on any other machine where you've tried installing the software. There is every possibility you have a bad installation disk.
    Thank you and have a nice day.

  • PDF file Not opening in Main Table

    Hi,
    I have added PDF lookup field in my main Table in console.
    I m able to import PDF file in PDF table ( after making Allow Invalid PDFs as YES)
    I have also imported PDF file in Main table field.
    But here PDF file is not opening.
    I m able to open PDF file only in PDF table & not in main table.
    Also i am not able to Generate Thumbnail.
    I m getting error:
    Regenerating thumbnail for 'Mahi.pdf'...failed.
    Regeneration of thumbnails complete.
    Can anybody tell me what could be the problem?
    Thanks,
    Mahi

    Hi Maheshwari,
    I have added PDF lookup field in my main Table in console.
    I m able to import PDF file in PDF table ( after making Allow Invalid PDFs as YES)
    I have also imported PDF file in Main table field.
    But here PDF file is not opening.
    You can link the pdf to the Main tabel record by two ways:
    1. Using Import Manager
    2. Using Data Manager itself.
    I have just tried it by the second way and I am able to open the Pdf in the Main Table itself.
    PLease follow these step below:
    1. Import the Pdf in the Pdf table and store the Pdf in the repository itself by choosing the Option - +Store in Repository+
    2.Go to Main Table and double click on the Look up field on the right side. GO to the Data Group Tab and add the Data Group you have created.
    3. Then choose the pdf you want to choose for that particular main table record. You will find the PDf getting attached in the Main Table Record.
    4. Now try and open the Pdf, HopefullyYou will find it opening in the Main Table itself .
    Hope it helps.
    Thanks and Regards
    Nitin jain

  • Mwp file not opening in jdev

    Hi
    We are using 10.1.3.4 SOA n JDev. The MWP files are not opening in Jdev and while opening the project we are getting errors with the following log:
    java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String
    at oracle.toplink.addin.manager.MWJDeveloperMediator.openTopLinkProject(MWJDeveloperMediator.java:328)
    at oracle.toplink.addin.manager.MWJDeveloperMediator.openTopLinkProjects(MWJDeveloperMediator.java:271)
    at oracle.toplink.addin.appnav.TopLinkProjectChangeListener.projectOpened(TopLinkProjectChangeListener.java:93)
    at oracle.ide.model.Project$StorageListener.fireProjectOpened(Project.java:1168)
    at oracle.ide.model.Project$StorageListener.mav$fireProjectOpened(Project.java:1135)
    at oracle.ide.model.Project$NL.nodeOpened(Project.java:1127)
    at oracle.ide.model.Node.fireNodeOpened(Node.java:1139)
    at oracle.ide.model.Node.open(Node.java:573)
    at oracle.ide.model.Node.ensureOpen(Node.java:976)
    at oracle.ide.model.DataContainer$2.run(DataContainer.java:147)
    at oracle.ide.model.Node.runWhileSynchronized(Node.java:809)
    at oracle.ide.model.DataContainer.getSharedPropertiesOnly(DataContainer.java:152)
    at oracle.ide.model.Project.getPropertiesImpl(Project.java:1097)
    at oracle.ide.model.Project.getProperties(Project.java:323)
    at oracle.ide.model.ProjectContent.getInstance(ProjectContent.java:122)
    at oracle.ide.model.ContentLevel.initChildren(ContentLevel.java:88)
    at oracle.ide.model.ContentSetFilter.initChildren(ContentSetFilter.java:28)
    at oracle.ide.model.ContentFilter.getChildrenImpl(ContentFilter.java:121)
    at oracle.ide.model.ContentFilter.getChildren(ContentFilter.java:64)
    at oracle.ideimpl.explorer.BaseTreeExplorer.addChildren(BaseTreeExplorer.java:360)
    at oracle.ideimpl.explorer.BaseTreeExplorer.open(BaseTreeExplorer.java:872)
    at oracle.ideimpl.explorer.BaseTreeExplorer$2.run(BaseTreeExplorer.java:1788)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: java.lang.ClassCastException: java.lang.String
    at oracle.toplink.mappings.foundation.AbstractCompositeCollectionMapping.valueFromRow(AbstractCompositeCollectionMapping.java:727)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1045)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:244)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:525)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:381)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:677)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:142)
    at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:483)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:812)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:780)
    at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:451)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2089)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
    at oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolicy.java:262)
    at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java:1151)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1045)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:244)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:525)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:381)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:456)
    at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:424)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:812)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
    at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:780)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:388)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2089)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:950)
    at oracle.toplink.publicinterface.Session.readObject(Session.java:2591)
    at oracle.toplink.workbench.ui.WorkbenchSession.getMWProjectNamed(WorkbenchSession.java:76)
    at oracle.toplink.addin.persistence.MWJDeveloperPersistence.open(MWJDeveloperPersistence.java:234)
    at oracle.toplink.addin.manager.MWJDeveloperMediator.openTopLinkProject(MWJDeveloperMediator.java:323)
    ... 28 more
    Please provide inputs for the resolution of this as the DB Adapter wizards are not showing proper configuration and we want to do some changes in the DB adapter setup.
    Thanks

    Better post this on the SOA Suite forum.
    Is this something that happens on various laptops - or just on one?

  • .ics file not opening in iCal and entourgae

    Hi, this is the format of my .ics file, When i open it it gives the error 'iCal can't read this calendar file. No events saves to the calendar' This is the firs time i am trying to open the calendar attachment sent via an email. Its not opening in entourage also. any input in highly appreciated.
    BEGIN:VCALENDAR
    VERSION:2.0
    BEGIN:VEVENT
    DTSTART:20100518T200000Z
    DTEND:20100518T210000Z
    LOCATION;ENCODING=QUOTED-PRINTABLE:xxxxxxx
    DESCRIPTION;ENCODING=QUOTED-PRINTABLE: xxxxxxx
    PRIORITY:3
    END:VEVENT
    END:VCALENDAR

    I'm having the same problem with .ics files when importing calendars from Tiger to Snow Leopard. It worked for some of them, but my two most important .ics will not open. I keep getting the same error message.
    Any ideas what I can do?

  • Photoshop CS1 files not opening with a double click?

    I'm not sure if this is an Adobe related issue, but I recently installed Tiger on my 2005(white/1.33ghz/PPC G4) ibook. With Panther, and with every other OS/application, I was able to double a Photoshop File and have Photoshop open along with the file. Here's what happens now: I double click the photoshop file (any photoshop cs1 file), Photoshop opens, but my file doesn't open. I have to find the file and open it from the menu bar in order to access it. This is very annoying for me as I open Photoshop files more than anything. Here's what I've done: I got info on the Photoshop file to make sure Photoshop CS1 is selected as the host application. Check preferences and settings in Photoshop, (didn't find anything related though, but everything is the way they were when I was on Panther. Possible Obstructions: I also have Photoshop 6 on 0S 9 installed on my computer. I have many filters on this version that I don't on CS1. I don't think this is the reason but I could be wrong. Any help with this issue would be greatly appreciated. Thank you in advance.
    -Ellz

    Except Adobe tells you to reinstall Photoshop (or least that has been their recommendation), which is completely unnecessary. The problem is that this is missing when you do a system upgrade:
    "/Library/ScriptingAdditions/Adobe Unit Types"
    Reinstalling Photohop will, of course, create the ScriptingAdditions folder and place the "Adobe Unit Types" file inside it. If you still have your Previous System folder, or a backup of it, or access to another machine with Photohop installed, you can simply put the ScriptingAdditions folder into your /Library folder. If not you can create the ScriptingAdditions folder yourself (note there is NO space in the name), then download and unzip this:
    http://homepage.mac.com/francines/pdfs/AdobeTypes.zip
    and put the "Adobe Unit Types" into the ScriptingAdditions folder.
    Francine
    Francine
    Schwieder

Maybe you are looking for