java.lang.reflect.InvocationTargetException

SpringSource Issue Tracker | Peter Gardfjäll | 8 years ago
  1. 0

    The spring DM server crashes on startup when the Apache CXF bundle is placed in the server repository. To reproduce: (1) Download the attached pom file (2) Run "mvn clean package". This will collect CXF and all its dependent bundles in the target/dependencies directory (3) Copy these bundles to the dm server repository. cp target/dependencies/*.jar ${DMS_HOME}/repository/bundles/usr (4) Start the server via startup.sh -clean This will cause the spring dm server to crash with the following stack trace: Launch failed: caught exception. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.springsource.server.launch.harness.LaunchHarness.main(LaunchHarness.java:63) Caused by: org.osgi.framework.BundleException: Exception in com.springsource.kernel.repository.internal.RepositoryActivator.start() of bundle com.springsource.kernel.repository. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:830) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:779) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:177) at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160) at com.springsource.osgi.launcher.Launcher.main(Launcher.java:45) ... 5 more Caused by: com.springsource.repository.RepositoryCreationException: Failed persist depository for repository 'bundles-usr' at com.springsource.repository.internal.ExternalStorageRepository.<init>(ExternalStorageRepository.java:76) at com.springsource.repository.internal.StandardRepositoryFactory.createRepository(StandardRepositoryFactory.java:75) at com.springsource.repository.internal.StandardRepositoryFactory.createRepository(StandardRepositoryFactory.java:55) at com.springsource.kernel.repository.internal.RepositoryActivator.createAndPublishBundleRepository(RepositoryActivator.java:116) at com.springsource.kernel.repository.internal.RepositoryActivator.start(RepositoryActivator.java:70) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:807) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:798) ... 12 more Caused by: com.springsource.repository.internal.IndexFormatException: Failed to convert to supplied artifacts into binary form at com.springsource.repository.internal.ArtifactDescriptorSerializer.toBinaryForm(ArtifactDescriptorSerializer.java:79) at com.springsource.repository.internal.SerializingArtifactDescriptorPersister.persistArtifactDescriptors(SerializingArtifactDescriptorPersister.java:68) at com.springsource.repository.internal.StandardArtifactDescriptorDepository.persist(StandardArtifactDescriptorDepository.java:154) at com.springsource.repository.internal.ExternalStorageRepository.<init>(ExternalStorageRepository.java:74) ... 19 more Caused by: java.io.UTFDataFormatException: encoded string too long: 86722 bytes at java.io.DataOutputStream.writeUTF(DataOutputStream.java:347) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.springsource.repository.internal.ArtifactDescriptorSerializer.writeAttribute(ArtifactDescriptorSerializer.java:141) at com.springsource.repository.internal.ArtifactDescriptorSerializer.writeArtefact(ArtifactDescriptorSerializer.java:128) at com.springsource.repository.internal.ArtifactDescriptorSerializer.toBinaryForm(ArtifactDescriptorSerializer.java:74) ... 22 more

    SpringSource Issue Tracker | 8 years ago | Peter Gardfjäll
    java.lang.reflect.InvocationTargetException
  2. 0

    The spring DM server crashes on startup when the Apache CXF bundle is placed in the server repository. To reproduce: (1) Download the attached pom file (2) Run "mvn clean package". This will collect CXF and all its dependent bundles in the target/dependencies directory (3) Copy these bundles to the dm server repository. cp target/dependencies/*.jar ${DMS_HOME}/repository/bundles/usr (4) Start the server via startup.sh -clean This will cause the spring dm server to crash with the following stack trace: Launch failed: caught exception. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.springsource.server.launch.harness.LaunchHarness.main(LaunchHarness.java:63) Caused by: org.osgi.framework.BundleException: Exception in com.springsource.kernel.repository.internal.RepositoryActivator.start() of bundle com.springsource.kernel.repository. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:830) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:779) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:177) at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160) at com.springsource.osgi.launcher.Launcher.main(Launcher.java:45) ... 5 more Caused by: com.springsource.repository.RepositoryCreationException: Failed persist depository for repository 'bundles-usr' at com.springsource.repository.internal.ExternalStorageRepository.<init>(ExternalStorageRepository.java:76) at com.springsource.repository.internal.StandardRepositoryFactory.createRepository(StandardRepositoryFactory.java:75) at com.springsource.repository.internal.StandardRepositoryFactory.createRepository(StandardRepositoryFactory.java:55) at com.springsource.kernel.repository.internal.RepositoryActivator.createAndPublishBundleRepository(RepositoryActivator.java:116) at com.springsource.kernel.repository.internal.RepositoryActivator.start(RepositoryActivator.java:70) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:807) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:798) ... 12 more Caused by: com.springsource.repository.internal.IndexFormatException: Failed to convert to supplied artifacts into binary form at com.springsource.repository.internal.ArtifactDescriptorSerializer.toBinaryForm(ArtifactDescriptorSerializer.java:79) at com.springsource.repository.internal.SerializingArtifactDescriptorPersister.persistArtifactDescriptors(SerializingArtifactDescriptorPersister.java:68) at com.springsource.repository.internal.StandardArtifactDescriptorDepository.persist(StandardArtifactDescriptorDepository.java:154) at com.springsource.repository.internal.ExternalStorageRepository.<init>(ExternalStorageRepository.java:74) ... 19 more Caused by: java.io.UTFDataFormatException: encoded string too long: 86722 bytes at java.io.DataOutputStream.writeUTF(DataOutputStream.java:347) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.springsource.repository.internal.ArtifactDescriptorSerializer.writeAttribute(ArtifactDescriptorSerializer.java:141) at com.springsource.repository.internal.ArtifactDescriptorSerializer.writeArtefact(ArtifactDescriptorSerializer.java:128) at com.springsource.repository.internal.ArtifactDescriptorSerializer.toBinaryForm(ArtifactDescriptorSerializer.java:74) ... 22 more

    SpringSource Issue Tracker | 8 years ago | Peter Gardfjäll
    java.lang.reflect.InvocationTargetException
  3. 0

    Long projected schemas break Pig loader

    GitHub | 3 years ago | dvryaboy
    java.io.UTFDataFormatException: encoded string too long: 69938 bytes
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug 139632 – java.io.UTFDataFormatException: encoded string too long: 400012 bytes

    netbeans.org | 8 months ago
    java.io.UTFDataFormatException: encoded string too long: 400012 bytes
  6. 0

    64KB String limit in Java data streams

    drillio.com | 1 year ago
    java.io.UTFDataFormatException: encoded string too long: 100000 bytes

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.UTFDataFormatException

      encoded string too long: 86722 bytes

      at java.io.DataOutputStream.writeUTF()
    2. Java RT
      DataOutputStream.writeUTF
      1. java.io.DataOutputStream.writeUTF(DataOutputStream.java:347)
      2. java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
      2 frames
    3. com.springsource.repository
      StandardRepositoryFactory.createRepository
      1. com.springsource.repository.internal.ArtifactDescriptorSerializer.writeAttribute(ArtifactDescriptorSerializer.java:141)
      2. com.springsource.repository.internal.ArtifactDescriptorSerializer.writeArtefact(ArtifactDescriptorSerializer.java:128)
      3. com.springsource.repository.internal.ArtifactDescriptorSerializer.toBinaryForm(ArtifactDescriptorSerializer.java:74)
      4. com.springsource.repository.internal.SerializingArtifactDescriptorPersister.persistArtifactDescriptors(SerializingArtifactDescriptorPersister.java:68)
      5. com.springsource.repository.internal.StandardArtifactDescriptorDepository.persist(StandardArtifactDescriptorDepository.java:154)
      6. com.springsource.repository.internal.ExternalStorageRepository.<init>(ExternalStorageRepository.java:74)
      7. com.springsource.repository.internal.StandardRepositoryFactory.createRepository(StandardRepositoryFactory.java:75)
      8. com.springsource.repository.internal.StandardRepositoryFactory.createRepository(StandardRepositoryFactory.java:55)
      8 frames
    4. com.springsource.kernel
      RepositoryActivator.start
      1. com.springsource.kernel.repository.internal.RepositoryActivator.createAndPublishBundleRepository(RepositoryActivator.java:116)
      2. com.springsource.kernel.repository.internal.RepositoryActivator.start(RepositoryActivator.java:70)
      2 frames
    5. Eclipse OSGi
      BundleContextImpl$1.run
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:807)
      1 frame
    6. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    7. Eclipse OSGi
      AbstractBundle.start
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:798)
      2. org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:779)
      3. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
      4. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
      5. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272)
      5 frames
    8. com.springsource.osgi
      Launcher.main
      1. com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:177)
      2. com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160)
      3. com.springsource.osgi.launcher.Launcher.main(Launcher.java:45)
      3 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    10. com.springsource.server
      LaunchHarness.main
      1. com.springsource.server.launch.harness.LaunchHarness.main(LaunchHarness.java:63)
      1 frame