java


Catastrophic Error trying to use com4j to add artwork form file to iTunes IITrack object


Using Com4j with iTunes, no problem adding various text values to a IITrack object but if I try and add artwork with
if(iTunesTrack.artwork().count()==0)
{
String path = new File(new File(song.getFilename()).getParent(),"folder.jpg").getPath();
if(Files.exists(Paths.get(path)))
{
iTunesTrack.addArtworkFromFile(path);
}
}
it fails with
11/05/2017 18.24.56:BST:com.jthink.songkong.ituneshelper.WindowsUpdateItunesWithChanges:updateITunesLibTrackFromSong:SEVERE: Unable to update ItunesTrack C:\Users\Paul\Desktop\TestMusic\WAV\Music\Choir of Trinity College\Carols From Trinity\27 - In Dulci Jubilo (organ solo).wav:8000ffff Catastrophic failure : Catastrophic failure
com4j.ComException: 8000ffff Catastrophic failure : Catastrophic failure : .\invoke.cpp:517
at com4j.Wrapper.invoke(Wrapper.java:187)
at com.sun.proxy.$Proxy57.addArtworkFromFile(Unknown Source)
at com.jthink.songkong.ituneshelper.WindowsUpdateItunesWithChanges.updateITunesLibTrackFromSong(WindowsUpdateItunesWithChanges.java:611)
at com.jthink.songkong.ituneshelper.WindowsUpdateItunesWithChanges.addEditedTrack(WindowsUpdateItunesWithChanges.java:646)
at com.jthink.songkong.ituneshelper.WindowsUpdateItunesWithChanges.analyseFiles(WindowsUpdateItunesWithChanges.java:277)
at com.jthink.songkong.ituneshelper.WindowsUpdateItunesWithChanges.updateItunes(WindowsUpdateItunesWithChanges.java:180)
at com.jthink.songkong.ituneshelper.UpdateItunesWithChanges.call(UpdateItunesWithChanges.java:182)
at com.jthink.songkong.ituneshelper.UpdateItunesWithChanges.call(UpdateItunesWithChanges.java:32)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com4j.ComException: 8000ffff Catastrophic failure : Catastrophic failure : .\invoke.cpp:517
at com4j.Native.invoke(Native Method)
at com4j.StandardComMethod.invoke(StandardComMethod.java:35)
at com4j.Wrapper$InvocationThunk.call(Wrapper.java:356)
at com4j.Task.invoke(Task.java:50)
at com4j.ComThread.run0(ComThread.java:172)
at com4j.ComThread.run(ComThread.java:153)
The COM4j interfaces were built from my version of iTunes so they exist, I don't know if I am doing anything wrong or if its broken, I ve had tried on a number of jpogs all with the same result. I check the files exist and indeed the error is different if try to add a nonexistent file.

Related Links

Print only 10 outputs per line
Action listener, to change images on click.
Why does my new input into an array keep getting overwritten? [duplicate]
Is it possible to reload the same FXML/Controller instance?
Dynamic form generation in jenkins plugins
Why Eclipse duplicate folders and files?
Saving an object with eager loaded parameters and OptimisticLockException
Androind Lint / Exporting code inspection in HTML returns java.lang.NullPointerException
Too many mq connections for a server connection channel which are not created by queue
InputStream of socket not closing on peer loss
In Selenium Webdriver, click button once the text is entered in text box
How to tell protostuff to pack property to fixed32 and not int32
Selenium ExpectedConditions NOT elementToBeClickable
Spring Boot 1.5: accept “multipart/*” in file upload
Not able to load javax.imageio.ImageIO class in WAS 8.5
How do I use this API code in my app?

Categories

HOME
testng
netsuite
gremlin
programming-languages
analysis
paw-app
callback
baqend
fingerprint
echarts
python-unittest
gorm
user-input
mapserver
windows-phone-7
quickfix
hapi
django-admin
highlight.js
ef-migrations
oxyplot
introduction
dbext
xlsxwriter
riot.js
cloudhub
ehcache
mps
kvc
core-text
trading
android-widget
xpages-ssjs
javacv
pepper
selectedindexchanged
windows-error-reporting
elasticsearch-ruby
saas
compatibility
atlassian-crucible
objectanimator
google-cloud-nl
microsoft-chart-controls
lxd
file-format
stacked
dosbox
espeak
theano.scan
unobtrusive-validation
broadcastreceiver
android-tabhost
bootstrap-dialog
http-redirect
businessworks
long-polling
logparser
celery-task
alphabet
knockout-components
linode
eventkit
pintos
url-pattern
android-fonts
prettytensor
natvis
t4mvc
content-length
0xdbe
apache-commons-net
kineticjs
nsmutabledictionary
website-monitoring
android-nested-fragment
socketexception
dml
monomac
farseer
quantlib-swig
cdc
rabl
plasma
mhtml
jquery-knob
rdoc
dbproviderfactories
regsvr32
bubble-chart
reddot
dotnethighcharts
punbb
work-stealing
tomcat-valve
sproutcore-2
backcolor

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App