test
authorKatja Luther <k.luther@bgbm.org>
Tue, 5 Jul 2022 07:44:52 +0000 (09:44 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 5 Jul 2022 07:46:04 +0000 (09:46 +0200)
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationState.java

index 33ebd9822deec6e56229f1600ef66ee33e50b2af..b8754d1cf69b3679983fd05926b5963bb4ed561a 100644 (file)
@@ -214,6 +214,7 @@ public class CdmApplicationState {
                     File file = null;
                     try {
                         String urlString = FileLocator.resolve(fileURL).toExternalForm().replace(" ", "%20");
+                        
                         file = new File(new URI(urlString).getJavaUri());
                         JarFile jarFile = new JarFile(file);
                         Manifest manifest = jarFile.getManifest();
@@ -233,7 +234,10 @@ public class CdmApplicationState {
                         throw new IllegalStateException(urise);
                     } catch (IOException ioe) {
                         throw new IllegalStateException(ioe);
-                    }
+                    } catch (IllegalArgumentException iae) {
+                       String message = iae.getMessage().concat("uri" + jar);
+                       throw new IllegalStateException(message);
+                       }
                 }
             }
         } catch (BundleException e) {