Client cant show file

Hi, I'm trying to do basic things in Adobe Drive SDK. I don't have implemented any server, but I want Adobe Drive Client to show me some "Files" (which in fact doesnt exists). I implemented a GetChildrenHandler and was successfull tu create my own root folder or folder under root folder and so on, but it doesn't work with files. There is a condition in the code, that if a parent is the root, client should create new folder under this root (that works fine). Then, if the folder is not root, I want to tell to client, that it has to show me a file, but this is the part, which doenst work to me. Can you, please, help me? Here is the part of code, which should be done, if parent folder is not root. Thanks
String assetId =  parentPath.toString() + "/test.png"
                String parentId = parentPath.toString();
                    Path path = Path.newInstance(assetId);
                UpdateRecipe recipe = response.createFileUpdateRecipe(
                        assetId,
                        path,
                        parentId,
                        1,
                        new ETags());
                long lastModified = System.currentTimeMillis();
                long j = 123456;
                Long fileSize = j;
                String comment = null;
                String modificationUser = "User";
                Flags flags = null;
                MimeType mimeType = MimeType.IMAGE_PNG;
                long eTagValue = System.currentTimeMillis();
                recipe.getIdentificationData().getETags().put(DataType.BASIC, new ETag(eTagValue));
                recipe.createBasicData(
                        lastModified,
                        lastModified,
                        fileSize,
                        comment,
                        new User(modificationUser),
                        Visibility.VISIBLE,
                        flags,
                        mimeType,
                        null);
And this if from log:
2013/12/11 18:04:13,147 [IFSConnection-1] FATAL IFSConnection - NASTY Runtime exception for Request: CREATE
com.adobe.drive.biz.filesystem.FileSystemException: com.adobe.drive.data.persistence.PersistenceException: query did not return a unique result: 2
at com.adobe.drive.internal.biz.filesystem.FileSystemService.runWithTransaction(FileSystemSe rvice.java:1762)
at com.adobe.drive.internal.biz.filesystem.FileSystemService.runWithTransaction(FileSystemSe rvice.java:1727)
at com.adobe.drive.internal.biz.filesystem.FileSystemService.lookupByPath(FileSystemService. java:562)
at com.adobe.drive.internal.biz.filesystem.FileSystemService.lookupByPath(FileSystemService. java:555)
at com.adobe.drive.ifs.job.CreateHandler$1.call(CreateHandler.java:122)
at com.adobe.drive.ifs.job.CreateHandler$1.call(CreateHandler.java:1)
at com.adobe.drive.model.context.Context.run(Context.java:88)
at com.adobe.drive.ifs.internal.IFSConnection.dispatch(IFSConnection.java:187)
at com.adobe.drive.ifs.internal.IFSConnection.run(IFSConnection.java:142)
Caused by: com.adobe.drive.data.persistence.PersistenceException: query did not return a unique result: 2
at com.adobe.drive.data.persistence.PersistenceExceptionFactory.newPersistenceException(Pers istenceExceptionFactory.java:53)
at com.adobe.drive.data.internal.persistence.Query.get(Query.java:67)
at com.adobe.drive.data.persistence.factories.AssetFactory.findAssetByParentIdAndName(AssetF actory.java:880)
at com.adobe.drive.data.persistence.factories.AssetFactory.findAssetByPath(AssetFactory.java :372)
at com.adobe.drive.data.model.asset.AssetFactory.findAssetByPath(AssetFactory.java:131)
at com.adobe.drive.internal.data.manager.DataManager.getAsset(DataManager.java:1612)
at com.adobe.drive.internal.biz.filesystem.FileSystemService$6.execute(FileSystemService.jav a:573)
at com.adobe.drive.internal.biz.filesystem.FileSystemService$6.execute(FileSystemService.jav a:1)
at com.adobe.drive.internal.biz.filesystem.FileSystemService$FSCallable.run(FileSystemServic e.java:1793)
at com.adobe.drive.data.internal.persistence.PersistenceRunner$2.runWithTransaction(Persiste nceRunner.java:186)
at com.adobe.drive.data.internal.persistence.PersistenceModificationCallable.run(Persistence ModificationCallable.java:71)
at com.adobe.drive.data.internal.persistence.PersistenceRunner.run(PersistenceRunner.java:11 9)
at com.adobe.drive.data.internal.persistence.PersistenceRunner.runWithTransaction(Persistenc eRunner.java:181)
at com.adobe.drive.internal.biz.filesystem.FileSystemService.runWithTransaction(FileSystemSe rvice.java:1748)
... 8 more
Caused by: org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:820)
at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
at com.adobe.drive.data.internal.persistence.Query.get(Query.java:63)
... 20 more

I would suggest getting assistance from the Adobe Developer Support team for this inquiry if you don’t get a response. This team helps address questions/issues folks are having related to the Adobe Drive SDK. Developer Support is available via membership to the Adobe Technology Partner Program or via an Adobe Developer Support single support incident or bundle of incidents: http://www.adobe.com/support/programs/developer
Are you in the process of creating a custom connector for Adobe Drive that will connect to a particular DAM server or?

Similar Messages

  • Convert Danish PDF files cant show the Danish letters

    Hvordan indstiller jeg Adobe convert til at skrive de Danske bogstaver æ, ø og å når der konverteres til en Word fil?

    Tak, (thanks),
    God jul og godt nytår…
    Cosy youl and a nice new year…
    Fra: Sara.Forsberg 
    Sendt: 16. december 2014 20:38
    Til: Emil Eiberg-Jensen
    Emne:  Convert Danish PDF files cant show the Danish letters
    Prioritet: Lav
    Convert Danish PDF files cant show the Danish letters
    created by Sara.Forsberg <https://forums.adobe.com/people/Sara.Forsberg>  n Adobe Acrobat.com Services - View the full discussion <https://forums.adobe.com/message/7020535#7020535>

  • Hp 1007 laser printer cant show only in pdf file print order que

    hp 1007 laser printer cant show only in pdf file print order que

    Hi @amoldixit, 
    Please clarify your issue and what I can do to help you.
    What operating system are you using? How to Find the Windows Edition and Version on Your Computer.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Possible to show file upload progress for web form submission?

    I just made a simple form as a test. There are 3 files being submitted here via a "web form".
    Files being uploaded in this case are of these sizes:
    110MB
    9MB
    24MB
    I'm testing functionality that will let a print shop's clients upload their files. For larger files they'll use FTP but this "order form" does a lot of business for them so we're trying to replicate in BC.
    My problem is that I am wondering if there is a way to show the "upload progress" as a total %. Such as a visual status bar, etc.
    As of now the only way it's showing is in the default browser status bar (chrome in this case):
    http://cl.ly/image/1d3U0S1h2521
    I read somewhere that the limit is 150MB for an upload. Wondering if that means 150MB TOTAL as in 3 files combined in my case. Or If I chose to allow 3 files to be attached would it allow for 450MB?
    Also, if you do a user submitted web app instead and allow people to attach files that way, does the same file limit apply?
    My second issue is that the upload speed seems to be SLOW. I know it's not my connection because on my non BC site as well as another with the same form, the files upload fairly fast. But on BC it just crawls and on a few tests I get this:
    http://cl.ly/image/2T2q160M1R1n
    Any help or suggestions with the file upload progress as well as file upload speed would be appreciated.
    Thanks!

    So if i have 3 files to be uploaded, the max allowed is 750MB correct? (just wondering if when uploading its 250mb total or per file).
    Guess i'll do something fake to make it appear its working with a loading graphic or something.
    My web browser (chrome in this case) shows the % uploaded. I wonder if all web browsers do the same. I havent tested yet.
    If only there were a way to have javascript or something grab that same #% from the web browser itself and just format it to appear where I want on the form along with the % uploading.
    Anyone know if that's possible?
    Here's where Chrome for mac shows it:
    http://cl.ly/image/1c3i3x25262j
    If I could grab that (uploading 19%) from the browser and format it into css/html i'd be gold.
    Then find if similar browsers do the same and write some js for each browser specifically to grab it.
    In a perfect world at least....

  • I connect my ipod to the computer, but itunes doesnt recognize it therefore i cant add files to my ipod, any solution ?

    i connect my ipod to the computer, but itunes doesnt recognize it therefore i cant add files to my ipod, any solution ? ( the ipod display shows that it is connected )

    Try force rebooting it, hold down the power and home button for 10 seconds until the apple boot logo comes up. If that doesn't work, try rebooting your computer.

  • Where are the actual files of Photos? "Show file in Finder" doesnt work!

    Hi,
    in the file menu, i cant click "show file in finder" – the menu entry is grey and not clickable.
    And i cant drag and drop photos from the photos app into another app.
    Both options work properly in iPhoto. And i really need them everyday.
    But i want to use photos and not two apps for one purpose.
    Anyone got a clue, whats wrong with photos?

    You should be able to do this - attacking the Tm drive to another computer (M2) is very similar to attaching any other disk - and you *should be* able to browse and copy files. Time machine uses a folder on the drive, so at the top level you'll see a folder named Backups.backupdb and navigate inside and the machine name (M2), hard drive name and the rest of the file structure should be there. You can click on the "latest" and go from there to copy the files. I'd suggest not writing anything inside that folder (Backups.backupdb) when using the other machine (M1), lest Time Machine et confused when it is back to it's old machine (M1).
    As for why you are getting the error, I don't have an answer. Does that happen when you navigate to every subdirectory and try to copy anything?

  • Cant change file type.

    I have really enjoyed edge code, except for one thing.  If i am creating a .module file for a drupal module, I can not change the editor to realize it PHP that i am writting.  I might as well code this thing in word or text edit.  Its usless when you cant change the editor to display php coloring. Is there any way to override this without having to save out a .php file?

    Yup! Edge Code is a distribution of the Brackets project - http://brackets.io.
    You *should* be able to right click on Edge Code CC.app, show file contents, and then browse to the src/languages directory. Inside that directory is a languages.json file (you can see it here). Scroll down to PHP and then add "module" to the fileExtensions list.
    You'll need to use TextEdit or another editor to do it because it's a locked file and you'll need admin privileges to change it. Edge Code doesn't currently let you change those files.
    =Ryan
    [email protected]

  • My mac disk is full and i cant transfer files from Mac to USB. saying the format is not good, how can i change the format and what happened to the files i have on USB?

    my mac disk is full and i cant transfer files from Mac to USB. saying the format is not good, how can i change the format and what happened to the files i have on USB?

    Once something similar happened to me. The external drives I had set up for FCP to use for some reason were not mounted, and FCP put all its render files on the main drive and I couldn't find them anywhere.
    Go to applications, and control-click (and hold down) on your FCP icon; you should get a pop up menu that says "show package contents". Select that, select the "contents" folder, then the "mac OS" folder. See if your quicktime file is in there, or if you've got render files in the "render" folder or audio render files in the "audio render" folder that don't belong there.
    That's where FCP sticks stuff when your documents FCP project folders are not available or when external drives you've selected aren't available.

  • CUPC client not showing softphone but showing up under presence viewer on CUP server

    Hello,
    Having a strange issue where the presence client wont show the softphone configured for them but when you go to the presence server and use the presence viewer to see what the client should be seeing, it shows up there. From that it looks like the UPC phone in call manager is being seen ok by the CUPS server but for some reason not by the client. Tried fully shutting down the client and also restarting the re-sync service on CUPS but no such luck.
    thanks

    Please check if TFTP is configured on CUPS (CUPS > Application > Settings)
    Also trying pulling the softphone manually from CUPC client workstation
    Command (from windows command prompt)
    tftp -i GET .cnf.xml
    If this doesn't successfully downloads the file there is firewall issue in the network or on the workstation over tftp.
    (Note: Windows 7 doesn't have tftp client installed by default, need to install it from Control Panel > Programs and Features > Add/Remove Windows Feature)

  • Conntrans u2013 initialization error and Client console show no inbound queue

    Hallo,
    I installed Communication station and Client application to two computers. Test from Communication station to CRM is OK, test from client to Communication station is OK too. When I run Conntrans it show: u201CError during Conntrans initalizatin; contact system administratoru201D. In log file is:
    Exception in CGUIDlg::CreateComObjects_AltThread . Was comerror exception (Neplatný ukazatel hr:80004003); technical hint: Create InitPar NamedCollection</SESS_LOG_TEXT>
    </SESSION_ENTRY>
    Client console show me, that I have u201CNo unprocessed messages available in the queueu201D. But in transaction smq1 I have 923 entries to send to Mobile Client.
    I regenerate metadata, reassign siteID and did transaction table again, but still no messages in inbound queue.
    Configuration: CRM 2007, CRM Mobile Client 6.0 SP02.
    Can anyone help me please with these problems.
    Thank you very much.
    Jiri

    Hallo Wolfhard,
    thank you very much for your help and fast reply. I uninstall .NET 1.1 on client side (I had both .NET 1.1 and 2.0). Now I can run Conntrans. When I try synchronizaiton, it wrote "initializing transfer process" and after few second Conntrans fell down. In log is no error - everything have succeeded. I include ending part of log. In Client console inbound queue is the same.
    <SESSION_ENTRY>
      <SESS_LOG_ENTRY_ID>43090EC6134E43479082B5043DD7E18F</SESS_LOG_ENTRY_ID>
      <SESS_LOG_SERVICE_NAME>GUI</SESS_LOG_SERVICE_NAME>
      <SESS_LOG_TYPE>I</SESS_LOG_TYPE>
      <SESS_LOG_DATETIME>8.7.2008 15:04:19</SESS_LOG_DATETIME>
      <SESS_LOG_TEXT>Returning from CGUIDlg::OnInitDialog...</SESS_LOG_TEXT>
      </SESSION_ENTRY>
    - <SESSION_ENTRY>
      <SESS_LOG_ENTRY_ID>A49BAA7D177D463491F635F8A64591E6</SESS_LOG_ENTRY_ID>
      <SESS_LOG_SERVICE_NAME>GUI</SESS_LOG_SERVICE_NAME>
      <SESS_LOG_TYPE>I</SESS_LOG_TYPE>
      <SESS_LOG_DATETIME>8.7.2008 15:04:20</SESS_LOG_DATETIME>
      <SESS_LOG_TEXT>Call to CGUIDlg::OnInitDialog in CTSDialog::OnInitDialog succeeded</SESS_LOG_TEXT>
      </SESSION_ENTRY>
    - <SESSION_ENTRY>
      <SESS_LOG_ENTRY_ID>F5AE51A961664408830DDF07DA60C1F5</SESS_LOG_ENTRY_ID>
      <SESS_LOG_SERVICE_NAME>GUI</SESS_LOG_SERVICE_NAME>
      <SESS_LOG_TYPE>I</SESS_LOG_TYPE>
      <SESS_LOG_DATETIME>8.7.2008 15:04:20</SESS_LOG_DATETIME>
      <SESS_LOG_TEXT>Call to GetConfigurationDetails in CTSDialog::OnInitDialog succeeded</SESS_LOG_TEXT>
      </SESSION_ENTRY>
    - <SESSION_ENTRY>
      <SESS_LOG_ENTRY_ID>1163EBE1ABB249ECAE0D3B230E6CCBB8</SESS_LOG_ENTRY_ID>
      <SESS_LOG_SERVICE_NAME>GUI</SESS_LOG_SERVICE_NAME>
      <SESS_LOG_TYPE>I</SESS_LOG_TYPE>
      <SESS_LOG_DATETIME>8.7.2008 15:04:20</SESS_LOG_DATETIME>
      <SESS_LOG_TEXT>Call to InitConfiguration in CTSDialog::OnInitDialog succeeded</SESS_LOG_TEXT>
      </SESSION_ENTRY>
    - <SESSION_ENTRY>
      <SESS_LOG_ENTRY_ID>BE6FFFFE896D410A80D58C020195B56D</SESS_LOG_ENTRY_ID>
      <SESS_LOG_SERVICE_NAME>GUI</SESS_LOG_SERVICE_NAME>
      <SESS_LOG_TYPE>I</SESS_LOG_TYPE>
      <SESS_LOG_DATETIME>8.7.2008 15:04:20</SESS_LOG_DATETIME>
      <SESS_LOG_TEXT>Call to CreateAndPlaceControls in CTSDialog::OnInitDialog succeeded</SESS_LOG_TEXT>
      </SESSION_ENTRY>
    - <SESSION_ENTRY>
      <SESS_LOG_ENTRY_ID>FD53890701BA40AE8DADB1F9701FDCFC</SESS_LOG_ENTRY_ID>
      <SESS_LOG_SERVICE_NAME>GUI</SESS_LOG_SERVICE_NAME>
      <SESS_LOG_TYPE>I</SESS_LOG_TYPE>
      <SESS_LOG_DATETIME>8.7.2008 15:04:20</SESS_LOG_DATETIME>
      <SESS_LOG_TEXT>Call to TaskBarCreateIcon in CTSDialog::OnInitDialog succeeded</SESS_LOG_TEXT>
      </SESSION_ENTRY>
      </SESSION_ENTRIES>
    After I applied  note 1071267 on Client 6.0 SP02 I could not run Client Console. When I run it, I got "Failed to load control sbtstatus. Your version may be outdated. Make sure you are using the version of the control that was provided with your application". Conntrans after fix I can run, but it is the same as above - it will fell down after few second of synchronization.
    My version of librfc32.dll is newer, so I did not applied note 1074669.
    I will try to uninstall client side and apply note again to clean installation if it helps.
    Thank you very much. With regards
    Jirka

  • When l plug my ipad into my computer it just shows files from the ipad. And doesn't open itunes.

    When l plug my ipad into my computer it just shows files from the ipad. And doesn't open itunes...Help???

    Check for Update (tap to enlarge image)

  • How to make Finder NOT to show files from a specific folder in "All My Files"?

    Hello!
    Can someone please advice how to make finder NOT to show files from a specific folder in "All My Files"? See the attach - I recently installed Civilization 5 from Steam and now I have a lot of unneeded files (*.log and *.ini) shown in  All My Files colder in Finder.
    I don't want to see them. Any advise?

    Using "All my Files" was very handy before all this rubbish popped up. =(

  • I ran a disk verify & disk repair on my macbook.. both said my system was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error. Help

    m was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error when ever trying to install a driver or update. Help

    Hi,
    Here's an article for that:
    http://support.apple.com/kb/ts1901

  • I have a Seagate Slim Portable 500 GB USB 3.0 external hard drive that worked great with my Macbook Pro 13" Retina but gets ejected and won't show files on any iMac.

    I have a Seagate Slim Portable 500 GB USB 3.0 external hard drive that worked great with my Macbook Pro 13" Retina but gets ejected and won't show files on any iMac. My Macbook Pro and the two different iMacs I tried it on were all using Mountain Lion, so the only difference was the iMac versus Macbook Pro.

    I just tried this, no luck...
    I connected a different USB cable, still the same problem. Tried both cables with the problematic hard drive on two different computers, still the same problem.
    At this point I assume I'll probably need professional help in saving the files, thanks for the assistance.

  • Bridge does not shows file info, just thumbnails, what's going on? already adjusted in preferences, but still only thumbnails and not the info of the file

    Bridge 8.5 does not shows file info, already adjusted in preferences but still just showing thumbnails only.
    Can anyone please help?
    Thanks

    The single download means that you won't be able to redownload it from the store without paying, either on a computer's iTunes or an iOS device - it doesn't stop you from copying the audiobook to your other computers or syncing it to your iOS devices, you just can't redownload it. (I believe that they are all supplied to Apple by audible.com, so I assume that it's them requiring the one-time download.)
    You can download audiobooks on your computer's iTunes and sync them to iOS devices, you do not have to buy them directly on the device (if you do then you can copy them back to your computer's iTunes library by connecting the device and using the File > Devices > Transfer Purchases menu option on your computer's iTunes).
    What you are doing to sync them should work i.e.
    - connecting the iPad to your Mac
    - selecting the iPad on your Mac's iTunes
    - selecting its Books tab and selecting the audiobooks that you want to sync to the iPad and syncing/applying that selection.
    You should then get an audiobooks option in the Music app on your iPad. If they aren't appearing there  then do they show in Settings > General > Usage > Music on the device - if you have audiobooks on the iPad then they should be listed there under an 'audiobooks' heading.
    By 'restart the iPad' do you mean a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    You could also try closing its Music app via the iPad's taskbar : Force an app to close in iOS.
    And do a soft-reset and retry syncing.
    I assume that music and other items sync ok ?

Maybe you are looking for