Announcement Announcement Module
Collapse
No announcement yet.
Uses Violation in RC1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Uses Violation in RC1

    I'm still unable to successfully install my bundle using the latest dm server. I got a new uses violation error message in RC1 and CI-518:

    --- Error message START ---------

    [2009-12-21 16:37:34.015] http-8080-2 com.springsource.osgi.medic.eventlog.default DE0500E Unable to install application from URI 'file:/C:/packages/SPRING~1.RC1/work/com.springsource.region.user_0.0.0/upload/com.apress.prodmserver.vehicle-1.0.0.par'. Cannot satisfy constraints for bundle 'com.apress.prodmserver.vehicle-1-com.apress.prodmserver.vehicle.repository.jpa' version '1.0.0'. Cannot resolve: com.apress.prodmserver.vehicle-1-com.apress.prodmserver.vehicle.repository.jpa
    Resolver report:
    Uses violation: <Import-Package: org.springframework.mock.staticmock; version="0.0.0"> in bundle <com.apress.prodmserver.vehicle-1-com.apress.prodmserver.vehicle.repository.jpa_1.0. 0>
    Uses conflict reported, but no conflicts detected.
    . com.springsource.kernel.osgi.framework.UnableToSat isfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.apress.prodmserver.vehicle-1-com.apress.prodmserver.vehicle.repository.jpa' at version '1.0.0': Cannot resolve: com.apress.prodmserver.vehicle-1-com.apress.prodmserver.vehicle.repository.jpa
    Resolver report:
    Uses violation: <Import-Package: org.springframework.mock.staticmock; version="0.0.0"> in bundle <com.apress.prodmserver.vehicle-1-com.apress.prodmserver.vehicle.repository.jpa_1.0. 0>
    Uses conflict reported, but no conflicts detected.

    at com.springsource.kernel.install.pipeline.stage.res olve.internal.QuasiResolveStage.process(QuasiResol veStage.java:54)
    at com.springsource.kernel.install.pipeline.internal. StandardPipeline.doProcessTree(StandardPipeline.ja va:71)
    at com.springsource.kernel.install.pipeline.internal. CompensatingPipeline.doProcessTree(CompensatingPip eline.java:81)
    at com.springsource.kernel.install.pipeline.stage.Abs tractPipelineStage.process(AbstractPipelineStage.j ava:50)
    at com.springsource.kernel.install.pipeline.internal. StandardPipeline.doProcessTree(StandardPipeline.ja va:71)
    at com.springsource.kernel.install.pipeline.stage.Abs tractPipelineStage.process(AbstractPipelineStage.j ava:50)
    at com.springsource.kernel.deployer.core.internal.Pip elinedApplicationDeployer.driveInstallPipeline(Pip elinedApplicationDeployer.java:277)
    at com.springsource.kernel.deployer.core.internal.Pip elinedApplicationDeployer.doInstall(PipelinedAppli cationDeployer.java:160)
    at com.springsource.kernel.deployer.core.internal.Pip elinedApplicationDeployer.install(PipelinedApplica tionDeployer.java:132)
    at com.springsource.kernel.deployer.core.internal.Pip elinedApplicationDeployer.deploy(PipelinedApplicat ionDeployer.java:196)
    at com.springsource.kernel.deployer.core.internal.Pip elinedApplicationDeployer.deploy(PipelinedApplicat ionDeployer.java:110)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:307)
    at org.springframework.osgi.service.importer.support. internal.aop.ServiceInvoker.doInvoke(ServiceInvoke r.java:58)
    at org.springframework.osgi.service.importer.support. internal.aop.ServiceInvoker.invoke(ServiceInvoker. java:62)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.doProceed(DelegatingIntroductionIn terceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.invoke(DelegatingIntroductionInter ceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.osgi.service.importer.support. LocalBundleContextAdvice.invoke(LocalBundleContext Advice.java:59)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.doProceed(DelegatingIntroductionIn terceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.invoke(DelegatingIntroductionInter ceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy129.deploy(Unknown Source)
    at com.springsource.server.admin.content.artifact.Sta ndardArtifactService.deploy(StandardArtifactServic e.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:307)
    at org.springframework.osgi.service.importer.support. internal.aop.ServiceInvoker.doInvoke(ServiceInvoke r.java:58)
    at org.springframework.osgi.service.importer.support. internal.aop.ServiceInvoker.invoke(ServiceInvoker. java:62)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.doProceed(DelegatingIntroductionIn terceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.invoke(DelegatingIntroductionInter ceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.osgi.service.util.internal.aop .ServiceTCCLInterceptor.invokeUnprivileged(Service TCCLInterceptor.java:56)
    at org.springframework.osgi.service.util.internal.aop .ServiceTCCLInterceptor.invoke(ServiceTCCLIntercep tor.java:39)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.osgi.service.importer.support. LocalBundleContextAdvice.invoke(LocalBundleContext Advice.java:59)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.doProceed(DelegatingIntroductionIn terceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.invoke(DelegatingIntroductionInter ceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy135.deploy(Unknown Source)
    at com.springsource.server.admin.web.ArtifactControll er.deployFile(ArtifactController.java:139)
    at com.springsource.server.admin.web.ArtifactControll er.deploy(ArtifactController.java:130)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.web.bind.annotation.support.Ha ndlerMethodInvoker.doInvokeMethod(HandlerMethodInv oker.java:710)
    at org.springframework.web.bind.annotation.support.Ha ndlerMethodInvoker.invokeHandlerMethod(HandlerMeth odInvoker.java:167)
    at org.springframework.web.servlet.mvc.annotation.Ann otationMethodHandlerAdapter.invokeHandlerMethod(An notationMethodHandlerAdapter.java:414)
    at org.springframework.web.servlet.mvc.annotation.Ann otationMethodHandlerAdapter.handle(AnnotationMetho dHandlerAdapter.java:402)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:771)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:716)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:647)
    at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:563)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:525)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)

    --- Error message END ---------

  • #2
    Hi,
    Is this related to your previous post about uses constraint violations? I think we improved the diagnostics in that case, but it seems that the analysis isn't sufficient to be helpful always.

    Can you supply the bundle that fails, and any dependencies, and I'll look into why it is failing.

    We currently have two jira issues open that relate to transitive uses failures: DMS-2170 and DMS-2260; you may like to track them.

    Steve Powell

    Comment


    • #3
      steve, attached please find my bundles. they are the same as before except for a mirror change in the spring bundle versions. please change the extension to .7z before unzipping.

      list of files under repository/usr:
      com.springsource.javax.persistence-1.99.0.jar
      com.springsource.org.apache.commons.dbcp-1.2.2.osgi.jar
      com.springsource.org.apache.commons.pool-1.3.0.jar
      com.springsource.org.apache.derby.client-10.5.1000001.764942.jar
      com.springsource.org.eclipse.persistence-1.1.0.jar
      com.springsource.org.eclipse.persistence.antlr-1.1.0.jar
      com.springsource.org.eclipse.persistence.asm-1.1.0.jar
      com.springsource.org.eclipse.persistence.jpa-1.1.0.jar
      org.eclipse.persistence-library-1.1.0.libd

      I uploaded both the my bundles and the lib bundles to DMS-2260.

      thank you. let me know if you need other information.
      Last edited by candy.chiu.ad; Dec 22nd, 2009, 05:59 PM.

      Comment


      • #4
        Have reproduced your symptoms; and hand-analysed the problem.

        I have put a note in jira DMS-2260 for you.

        It appears to be to do with the import-bundle of aspectj.weaver in repository-jpa. This exports aspectj packages which are also exported by region.user (bundle id 1 in the user region when it is set up). Other packages of region.user use them, and mock.staticmock uses them, but faulting in aspectj.weaver bundle (because of your import-bundle in repository-jpa) means that wiring to the exports of aspectj.weaver insists on using the other packages of that bundle.

        I have put more detail in the jira. Please respond there.

        Comment

        Working...
        X