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

Get parent-child relationship between tables through application
Eclipse:How to Detect a Project is Part of the Workspace
Spring MVC uri mapping with percent encoded characters
How to round to the nearest cent in Java
JWS not working after updating my system from Java7 to Java8
Grails app, with access to DB from Java DAO services - How to access services in Controller?
Why can I not rename the directory of my file?
Using OutputStreamWriter to write binary char array
instantiate object with array elements as parameters java
How to discard messages from queue using Java/JMS?
How to know length and width to set?
Changing your production source code location
Date Validation Java when user inputs 3 integers (MM, dd, yyyy)
Is there a java monitoring/alerts framework for a cluster?
My Constructor won't construct or “return” what should be returned
Projection matrix OpenGL/GLSL issue

Categories

HOME
image
bluetooth
date
react-virtualized
iterator
tesseract
jsp-tags
bookshelf.js
maven-3
survey
kibana-4
windows-10-universal
fancybox-3
midi
spring-xd
postgres-xl
windows-server-2012
clojurescript
swingx
conemu
clickonce
cloudhub
mustache.php
numerical-methods
fish
typo3-6.2.x
buck
windowbuilder
vision
srcset
fabric8
react-chartjs
directx-10
bcd
karaf
openoffice.org
azure-sql-database
accelerate-framework
bower-install
impersonation
fakeiteasy
no-www
vao
tizen-native-app
boost-preprocessor
hittest
webdriverjs
specrun
pycaffe
objective-c-swift-bridge
color-picker
dstu2-fhir
pcf
fadeout
dataview
rhino-servicebus
asp.net5
independentsoft
jfugue
prerequisites
citrus-pay
wyam
varargs
ideamart
sniffer
nstableviewcell
codeigniter-url
asp.net-dynamic-data
tld
aapt
xceed-datagrid
sitemesh
dataadapter
enterprisedb
bluepill
broken-links
gdata-api
datawindow
asyncfileupload
joyent
gdlib
jmock
sudzc
icanhaz.js
sef
temporal-database
zend-decorators

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