java.lang.IllegalArgumentException: interface org.springframework.jdbc.datasource.ConnectionProxy is not visible from class loader

Spring JIRA | Rhett Sutphin | 1 decade ago
  1. 0

    In version 1.1 of spring, it is not possible to use SingleConnectionDataSource in an ant task due to a classloader issue. On construction of the SingleConnectionDataSource an IllegalArgumentException is thrown. Example: java.lang.IllegalArgumentException: interface org.springframework.jdbc.datasource.ConnectionProxy is not visible from class loader at java.lang.reflect.Proxy.getProxyClass(Proxy.java:331) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:552) at org.springframework.jdbc.datasource.SingleConnectionDataSource.getCloseSuppressingConnectionProxy(SingleConnectionDataSource.java:190) at org.springframework.jdbc.datasource.SingleConnectionDataSource.init(SingleConnectionDataSource.java:134) at org.springframework.jdbc.datasource.SingleConnectionDataSource.<init>(SingleConnectionDataSource.java:93) at ScdsProblem.<init>(ScdsProblem.java:17) at ScdsProblemTask.execute(ScdsProblemTask.java:10) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:301) at org.apache.tools.ant.Target.performTasks(Target.java:328) at org.apache.tools.ant.Project.executeTarget(Project.java:1215) at org.apache.tools.ant.Project.executeTargets(Project.java:1063) at org.apache.tools.ant.Main.runBuild(Main.java:632) at org.apache.tools.ant.Main.startAnt(Main.java:183) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) This does not occur in spring 1.0.2. I will attach the code for the (simple, example) ant task from which this stacktrace is derived.

    Spring JIRA | 1 decade ago | Rhett Sutphin
    java.lang.IllegalArgumentException: interface org.springframework.jdbc.datasource.ConnectionProxy is not visible from class loader
  2. 0

    In version 1.1 of spring, it is not possible to use SingleConnectionDataSource in an ant task due to a classloader issue. On construction of the SingleConnectionDataSource an IllegalArgumentException is thrown. Example: java.lang.IllegalArgumentException: interface org.springframework.jdbc.datasource.ConnectionProxy is not visible from class loader at java.lang.reflect.Proxy.getProxyClass(Proxy.java:331) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:552) at org.springframework.jdbc.datasource.SingleConnectionDataSource.getCloseSuppressingConnectionProxy(SingleConnectionDataSource.java:190) at org.springframework.jdbc.datasource.SingleConnectionDataSource.init(SingleConnectionDataSource.java:134) at org.springframework.jdbc.datasource.SingleConnectionDataSource.<init>(SingleConnectionDataSource.java:93) at ScdsProblem.<init>(ScdsProblem.java:17) at ScdsProblemTask.execute(ScdsProblemTask.java:10) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:301) at org.apache.tools.ant.Target.performTasks(Target.java:328) at org.apache.tools.ant.Project.executeTarget(Project.java:1215) at org.apache.tools.ant.Project.executeTargets(Project.java:1063) at org.apache.tools.ant.Main.runBuild(Main.java:632) at org.apache.tools.ant.Main.startAnt(Main.java:183) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) This does not occur in spring 1.0.2. I will attach the code for the (simple, example) ant task from which this stacktrace is derived.

    Spring JIRA | 1 decade ago | Rhett Sutphin
    java.lang.IllegalArgumentException: interface org.springframework.jdbc.datasource.ConnectionProxy is not visible from class loader
  3. 0

    Spring OSGI transaction management

    Google Groups | 10 years ago | xluo
    java.lang.IllegalArgumentException: interface springserverbundle1.services.Service1 is not visible from class loader
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JBoss EJB Deployment Problem

    Oracle Community | 1 decade ago | 843830
    java.lang.IllegalArgumentException: interface org.jboss.proxy.IClientContainer is not visible from class loader
  6. 0

    JMX Problem

    Oracle Community | 1 decade ago | 3004
    java.lang.IllegalArgumentException: void is not visible from class loader

    17 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.lang.IllegalArgumentException

      interface org.springframework.jdbc.datasource.ConnectionProxy is not visible from class loader

      at java.lang.reflect.Proxy.getProxyClass()
    2. Java RT
      Proxy.newProxyInstance
      1. java.lang.reflect.Proxy.getProxyClass(Proxy.java:331)
      2. java.lang.reflect.Proxy.newProxyInstance(Proxy.java:552)
      2 frames
    3. Spring Framework
      SingleConnectionDataSource.<init>
      1. org.springframework.jdbc.datasource.SingleConnectionDataSource.getCloseSuppressingConnectionProxy(SingleConnectionDataSource.java:190)
      2. org.springframework.jdbc.datasource.SingleConnectionDataSource.init(SingleConnectionDataSource.java:134)
      3. org.springframework.jdbc.datasource.SingleConnectionDataSource.<init>(SingleConnectionDataSource.java:93)
      3 frames
    4. Unknown
      ScdsProblemTask.execute
      1. ScdsProblem.<init>(ScdsProblem.java:17)
      2. ScdsProblemTask.execute(ScdsProblemTask.java:10)
      2 frames
    5. Ant
      Main.startAnt
      1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
      2. org.apache.tools.ant.Task.perform(Task.java:364)
      3. org.apache.tools.ant.Target.execute(Target.java:301)
      4. org.apache.tools.ant.Target.performTasks(Target.java:328)
      5. org.apache.tools.ant.Project.executeTarget(Project.java:1215)
      6. org.apache.tools.ant.Project.executeTargets(Project.java:1063)
      7. org.apache.tools.ant.Main.runBuild(Main.java:632)
      8. org.apache.tools.ant.Main.startAnt(Main.java:183)
      8 frames
    6. Apache Ant Launcher
      Launcher.main
      1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
      2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
      2 frames