A light-weight and dynamic dependency injection framework

Related tags

Spring Boot hk2
Overview

⚠️ This project is now part of the EE4J initiative. This repository has been archived as all activities are now happening in the corresponding Eclipse repository. See here for the overall EE4J transition status.


hk2

A light-weight and dynamic dependency injection framework

Comments
  • Guice-servlet integration

    Guice-servlet integration

    org.jvnet.hk2.guice.bridge.test.bidirectional.BiDirectionalBridgeTest tests basic Guice injection but it fails to take Guice-Servlet into consideration.

    Please add a unit test for a bi-directional HK2 <--> Guice Servlet bridge.

    Affected Versions

    [2.2.0]

    Priority: Major Type: Task 
    opened by glassfishrobot 33
  • Build fails during javadoc task

    Build fails during javadoc task

    [INFO] ------------------------------------------------------------------------ [INFO] Building HK2 2.4.0-b24 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — xmvn-mojo:2.4.0:install (default-cli) @ hk2-parent — [INFO] [INFO] >>> maven-javadoc-plugin:2.10.3:aggregate (default-cli) > generate-sources @ hk2-parent >>> [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-resources-plugin:2.7:copy-resources (copy-resources) @ hk2-parent — [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-parent — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking OSGiVersion Maven Plugin 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ osgiversion-maven-plugin — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Implementation Utilities 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-utils — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-utils — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 API module 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-api — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-api — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking ServiceLocator Default Implementation 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-locator — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-locator — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 core module 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-core — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-core — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Module system maven support 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-maven — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Inhabitant Generator 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-inhabitant-generator — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Metadata Generator Subsystem 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-metadata-generator-parent — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Metadata Generator 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-metadata-generator — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Metadata Generator Test One 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-metadata-generator-test1 — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking consolidated bundle Maven plugin 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ consolidatedbundle-maven-plugin — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Junit Runner 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-junitrunner — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-junitrunner — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Run Level Service 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-runlevel — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-runlevel — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Class Model for Hk2 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ class-model — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ class-model — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking OSGi code 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ osgi — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 OSGi Adapter 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ osgi-adapter — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ osgi-adapter — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking osgi-adapter-tests-parent 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ osgi-adapter-tests-parent — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Holds test contracts 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ contract-bundle — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ contract-bundle — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Simulates a bundle 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ faux-sdp-bundle — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ faux-sdp-bundle — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Manages the faux sdp management bundle 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ sdp-management-bundle — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ sdp-management-bundle — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking a test module startup 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ test-module-startup — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ test-module-startup — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking A bundle with no hk2 dependencies 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ no-hk2-bundle — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ no-hk2-bundle — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Static Analyser for verifying module dependency 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-dependency-verifier — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking hk2-dependency-visualizer 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-dependency-visualizer — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Ant Inhabitant Generator Test 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-ant-test — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Locator unit tests 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-locator-extras — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-locator-extras — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 extras module 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-extras — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-extras — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 TestNG runner 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-testng — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 RunLevel unit tests 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-runlevel-extras — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Locator No Proxy Unit tests 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-locator-no-proxies — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-locator-no-proxies — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Locator No Proxy Unit tests (2) 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-locator-no-proxies2 — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-locator-no-proxies2 — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Utilities for testing with HK2 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-testing — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Interceptor/Eventing Test Suite 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ interceptor-events — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Mockito 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-mockito — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking Collections Tests 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-collections-tests — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-collections-tests — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Guice Bridge 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ guice-bridge — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ guice-bridge — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Spring Bridge 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ spring-bridge — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ spring-bridge — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 JMX module 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-jmx — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-jmx — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Configuration Subsystem 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-configuration — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Configuration Persistence Modules 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-configuration-persistence — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 Dom Based XML Parser 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-xml-dom — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 configuration module 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ hk2-config — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ hk2-config — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 configuration reader generator module 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ config-generator — [INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] Forking HK2 config types 2.4.0-b24 [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [INFO] [INFO] — osgiversion-maven-plugin:2.4.0-b24:compute-osgi-version (compute-osgi-version) @ config-types — [INFO] [INFO] — maven-enforcer-plugin:1.4:enforce (enforce-versions) @ config-types — [INFO] [INFO] — config-generator:2.4.0-b24:generate-injectors (default) @ config-types — [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] HK2 Bom Pom ........................................ SUCCESS [ 0.003 s] [INFO] HK2 ................................................ FAILURE [ 0.889 s] [INFO] OSGiVersion Maven Plugin ........................... SUCCESS [ 2.436 s] [INFO] HK2 Implementation Utilities ....................... SUCCESS [ 2.049 s] [INFO] HK2 API module ..................................... SUCCESS [ 2.019 s] [INFO] ServiceLocator Default Implementation .............. SUCCESS [ 6.833 s] [INFO] HK2 core module .................................... SUCCESS [ 1.268 s] [INFO] Module system maven support ........................ SUCCESS [ 0.162 s] [INFO] Inhabitant Generator ............................... SUCCESS [ 1.039 s] [INFO] HK2 Metadata Generator Subsystem ................... SUCCESS [ 0.002 s] [INFO] HK2 Metadata Generator ............................. SUCCESS [ 0.081 s] [INFO] HK2 Metadata Generator Test One .................... SUCCESS [ 0.646 s] [INFO] consolidated bundle Maven plugin ................... SUCCESS [ 1.135 s] [INFO] HK2 Junit Runner ................................... SUCCESS [ 0.872 s] [INFO] Run Level Service .................................. SUCCESS [ 10.815 s] [INFO] Class Model for Hk2 ................................ SUCCESS [ 0.710 s] [INFO] OSGi code .......................................... SUCCESS [ 0.003 s] [INFO] HK2 OSGi Adapter ................................... SUCCESS [ 0.340 s] [INFO] osgi-adapter-tests-parent .......................... SUCCESS [ 0.001 s] [INFO] Holds test contracts ............................... SUCCESS [ 0.095 s] [INFO] Simulates a bundle ................................. SUCCESS [ 0.098 s] [INFO] Manages the faux sdp management bundle ............. SUCCESS [ 0.073 s] [INFO] a test module startup .............................. SUCCESS [ 0.107 s] [INFO] A bundle with no hk2 dependencies .................. SUCCESS [ 0.063 s] [INFO] Static Analyser for verifying module dependency .... SUCCESS [ 0.225 s] [INFO] hk2-dependency-visualizer .......................... SUCCESS [ 0.048 s] [INFO] HK2 Ant Inhabitant Generator Test .................. SUCCESS [ 1.054 s] [INFO] HK2 Locator unit tests ............................. SUCCESS [ 0.515 s] [INFO] HK2 extras module .................................. SUCCESS [ 1.399 s] [INFO] HK2 TestNG runner .................................. SUCCESS [ 0.084 s] [INFO] HK2 RunLevel unit tests ............................ SUCCESS [ 0.057 s] [INFO] HK2 Locator No Proxy Unit tests .................... SUCCESS [ 0.517 s] [INFO] HK2 Locator No Proxy Unit tests (2) ................ SUCCESS [ 0.491 s] [INFO] Utilities for testing with HK2 ..................... SUCCESS [ 0.001 s] [INFO] Interceptor/Eventing Test Suite .................... SUCCESS [ 0.671 s] [INFO] HK2 Mockito ........................................ SUCCESS [ 0.081 s] [INFO] Collections Tests .................................. SUCCESS [ 0.626 s] [INFO] HK2 Guice Bridge ................................... SUCCESS [ 0.827 s] [INFO] HK2 Spring Bridge .................................. SUCCESS [ 0.973 s] [INFO] HK2 JMX module ..................................... SUCCESS [ 0.070 s] [INFO] HK2 Configuration Subsystem ........................ SUCCESS [ 0.003 s] [INFO] HK2 Configuration Persistence Modules .............. SUCCESS [ 0.003 s] [INFO] HK2 Dom Based XML Parser ........................... SUCCESS [ 0.004 s] [INFO] HK2 configuration module ........................... SUCCESS [ 1.650 s] [INFO] HK2 configuration reader generator module .......... SUCCESS [ 1.267 s] [INFO] HK2 config types ................................... SUCCESS [ 0.717 s] [INFO] HK2 module of HK2 itself ........................... SUCCESS [ 0.113 s] [INFO] HK2 Configuration Hub .............................. SUCCESS [ 0.749 s] [INFO] HK2 Configuration Integration ...................... SUCCESS [ 1.118 s] [INFO] hk2-config Hub integration ......................... SUCCESS [ 1.612 s] [INFO] HK2 Configuration Property File Reader ............. SUCCESS [ 0.663 s] [INFO] HK2 XML Parser using JAXB .......................... SUCCESS [ 0.001 s] [INFO] HK2 XML Reader using JAXB .......................... SUCCESS [ 1.872 s] [INFO] HK2 XML Reader Test ................................ SUCCESS [ 1.101 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 52.286 s [INFO] Finished at: 2015-05-25T11:22:03+00:00 [INFO] Final Memory: 95M/826M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.glassfish.hk2:config-generator:2.4.0-b24:generate-injectors (default) on project config-types: Unable to create directory /builddir/build/BUILD/hk2-2.4.0-b24/hk2-configuration/persistence/hk2-xml-dom/config-types/target/generated-sources/hk2-config-generator/src/main/java -> [Help 1]

    the directory already exist any ideas?

    thanks in advance

    Priority: Major Type: Bug 
    opened by glassfishrobot 29
  • bean constraint violation error during upgrade

    bean constraint violation error during upgrade

    Testing GlassFish V3.1 b32

    Performed and upgrade of cluster profile of V2.1.1 with 2 deployed apps to V3.1.

    The following error is in upgrade.log:

    asadmin: SEVERE: class com.sun.hk2.component.LazyInhabitant upgrading domain.xml failed java.lang.RuntimeException: org.jvnet.hk2.config.TransactionFailure: Constraints for this bean violated. asadmin: Message = gmsMulticastAddress may not be nullgmsMulticastPort may not be null asadmin: Dec 8, 2010 12:10:24 PM com.sun.enterprise.v3.admin.cluster.SecureAdminConfigUpgrade postConstruct

    The folloiwng occurs in DAS server.log

    [#|2010-12-08T12:10:25.538-0500|SEVERE|null|javax.enterprise.system.core.com.sun.enterprise.server.logging|_ThreadID=22;_ThreadName=Thread-1;|This message was emitted before the logging service started:class com.sun.hk2.component.LazyInhabitant upgrading domain.xml failed java.lang.RuntimeException: org.jvnet.hk2.config.TransactionFailure: Constraints for this bean violated. Message = gmsMulticastAddress may not be nullgmsMulticastPort may not be null|#]

    Affected Versions

    [2.1.*]

    Type: Bug Priority: Critical ERR: Assignee 3_1-upgrade 
    opened by glassfishrobot 18
  • Use of ThreadLocal in HK2

    Use of ThreadLocal in HK2

    HK2 can sometimes be deployed and undeployed in an application server that uses thread pools. If this is done then the use of ThreadLocal variables in HK2 can cause memory leaks (and class leaks etc) in the application server, as the threads created by the appserver will go back into the pool and the ThreadLocals will not be cleaned up.

    Therefor the use of ThreadLocal variables should be minimized except where absolutely necessary (for example in PerThread context). Some warning should be given in the PerThread cases that its use in appservers can cause memory leaks.

    Affected Versions

    [2.2.0]

    Priority: Major Type: Bug 
    opened by glassfishrobot 16
  • Classloader leak in Locator

    Classloader leak in Locator

    but during troubleshooting a classloader-leak seemingly related to jersey and com.fasterxml.jackson, I found the following class-loader leak:

    Inside org.jvnet.hk2.internal.Utilities class we find a methodKeyCache field, which is a WeakHashMap. The key is a Class (and so far so good), but the value is HashSet of MemberKey, where backingMember is a method instance, but which (in this case unfortunately), contains a hard-reference to a Class instance (which happens to be the same as the key).

    This seems therefore a clear violation of the guideline described in the docs: Implementation note: The value objects in a WeakHashMap are held by ordinary strong references. Thus care should be taken to ensure that value objects do not strongly refer to their own keys, either directly or indirectly, since that will prevent the keys from being discarded.

    Environment

    Glassfish 4, windows 7

    Affected Versions

    [2.2.0]

    Priority: Major Type: Bug 
    opened by glassfishrobot 16
  • Not clear how to bind JSR 330 provider

    Not clear how to bind JSR 330 provider

    org.glassfish.hk2.utilities.binding.AbstractBinder has bindFactory() but no bindProvider(). It's not clear what the following Guice code translates into in HK2:

    bind(ScheduledExecutorService.class).toProvider(provider);
    

    Please add any missing methods, and/or documentation for this use-case.

    Affected Versions

    [2.1.*]

    Priority: Major Type: Improvement 
    opened by glassfishrobot 15
  • Upgrade asm-all-repackaged dependency

    Upgrade asm-all-repackaged dependency

    hk2 depends on asm-all-repackaged-2.2.0-b21.jar.

    It's not clear:

    1. Why you need a repackaged dependency.
    2. Whether you really depend on ASM 2.2.0 when the latest version is 4.0.

    This is a problem because my code depends on Findbugs which depends on ASM 3.3 so now I've got two different versions of ASM in my classpath.

    Please stick to the original artifacts (if possible) and upgrade to the latest version.

    Affected Versions

    [2.1.*]

    Priority: Major Type: Improvement 
    opened by glassfishrobot 14
  • IllegalArgumentException: not a proxy instance with @Proxiable @Scope config beans

    IllegalArgumentException: not a proxy instance with @Proxiable @Scope config beans

    Problem is that for @Proxiable @Scope CGlib is used but hk2.config does not expect this.

    Problem is that for @Proxiable @Scope CGlib is used but hk2.config does not expect this.

    Attached changes for ctm-example to reproduce the problem:

    ConfigSupport.apply throws: java.lang.IllegalArgumentException: not a proxy instance at java.lang.reflect.Proxy.getInvocationHandler(Proxy.java:657) at org.jvnet.hk2.config.Dom.unwrap(Dom.java:401) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:133) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:113) at org.glassfish.examples.ctm.runme.CTMTest.testProviderEngineUsesCorrectTenant(CTMTest.java:112)

    Transactions.enroll() throws: java.lang.IllegalArgumentException: not a proxy instance at java.lang.reflect.Proxy.getInvocationHandler(Proxy.java:657) at org.jvnet.hk2.config.Transaction.enroll(Transaction.java:155) at org.glassfish.examples.ctm.runme.CTMTest.testProviderEngineUsesCorrectTenant(CTMTest.java:124)

    Affected Versions

    [2.1.*]

    Priority: Major Type: Bug ERR: Assignee 
    opened by glassfishrobot 14
  • Memory leak in Hk2ThreadLocal

    Memory leak in Hk2ThreadLocal

    We (myself and @laazik and others) are tracking down a memory leak, and it seems to be related to the switching out of ThreadLocal for Hk2ThreadLocal in PerLocatorUtilities: https://github.com/hk2-project/hk2/commit/4fa6c59581b5d8dbdf9fbd1da0cd643169734ba9

    Hk2ThreadLocal appears to have fewer protections, such as the ThreadLocalMap used in ThreadLocal.

    Would it be possible to switch back to ThreadLocal while we work on a more complete Hk2ThreadLocal?

    Here is an example heap histogram from one of our crashed instances. You can see the number of WeakHashMap, WeakHashMap.Entry, HashMap.Node, and Long instances are highly correlated and massive.

    heap histogram 2016-12-15 11-37-17

    I would be happy to work with you on this. Please advise.

    opened by swenson 14
  • Guice-Bridge Named Injection

    Guice-Bridge Named Injection

    org.jvnet.hk2.guice.bridge.internal.GuiceServiceHk2Bean assumes a name descriptor will always be null which will later prevent HK2 from doing a named injection.

    Affected Versions

    [2.2.0]

    Priority: Major Type: Bug guice 
    opened by glassfishrobot 13
  • @Hk2Inject does not work on the constructors of Guice services

    @Hk2Inject does not work on the constructors of Guice services

    The Guice bridge fails to inject the following code:

    @javax.inject.Inject
    public DepartmentsResource(com.google.inject.Injector injector, javax.ws.rs.core.UriInfo uriInfo)
    

    Guice understands @Inject, Injector but not UriInfo. The bridge never kicks in for UriInfo, so HK2 never gets asked to supply a value. Guice fails, saying that UriInfo is not bound to an implementation.

    @HK2Inject is not applicable on class constructors so it can't be used. I'm not sure it would help even if we could annotate the constructor this way.

    This is reproducible always.

    Affected Versions

    [2.2.0]

    Priority: Major Type: Bug 
    opened by glassfishrobot 12
Owner
Java EE
Java Enterprise Edition
Java EE
Spring Kurulumundan Başlayarak, Spring IOC ve Dependency Injection, Hibernate, Maven ve Spring Boot Konularına Giriş Yapıyoruz.

Spring Tutorial for Beginners File Directory Apache Tomcat Apache Tomcat - Eclipse Bağlantısı Spring Paketlerinin İndirilmesi ve Projeye Entegrasyonu

İbrahim Can Erdoğan 11 Apr 11, 2022
Light Chinese Bible is a Mobile app created by Android and SQLite.

About Light Chinese Bible Light Chinese Bible is a Mobile app created by Android and SQLite. It allows you to read the bible on your phone or devices

Pankun (Dennis) Lin 1 Feb 10, 2022
Customize your device even more by having two separate sets of wallpapers for light and dark mode.

DualWallpaper You can help me out with translations here. Customize your device even more by having two separate sets of wallpapers for light and dark

Yann 18 Dec 25, 2022
The universally-compatible ultra-light mod loader.

NilLoader NilLoader (ØL or 0L) is a minimal, easy-to-install, application-independent system for applying runtime patches to programs written in Java,

Una 21 Nov 29, 2022
A lightweight, mixin like injection lib using ASM

ClassTransform A lightweight, mixin like injection lib using ASM. The usage is like Mixins. You can almost copy-paste mixins code and it works. Why? I

Lenni0451 15 Dec 22, 2022
Zero-Dependency RFC 8252 OAuth 2.0 Authorization Flow

Tiny OAuth2 Client This is a minimal zero-dependency implementation of the RFC 8252 OAuth 2.0 for Native Apps, relying on Loopback Interface Redirecti

Coffee Libs ☕️ 4 Jun 17, 2022
💡极致性能的企业级Java服务器框架,RPC,游戏服务器框架,web应用服务器框架。(Extreme fast enterprise Java server framework, can be RPC, game server framework, web server framework.)

?? 为性能而生的万能服务器框架 ?? Ⅰ. zfoo简介 ?? 性能炸裂,天生异步,Actor设计思想,无锁化设计,基于Spring的MVC式用法的万能RPC框架 极致序列化,原生集成的目前二进制序列化和反序列化速度最快的 zfoo protocol 作为网络通讯协议 高可拓展性,单台服务器部署,

null 1k Jan 1, 2023
🔥 强大的动态线程池,并附带监控报警功能(没有依赖中间件),完全遵循阿里巴巴编码规范。Powerful dynamic thread pool, does not rely on any middleware, with monitoring and alarm function.

?? 动态线程池(DTP)系统,包含 Server 端及 SpringBoot Client 端需引入的 Starter. 这个项目做什么? 动态线程池(Dynamic-ThreadPool),下面简称 DTP 系统 美团线程池文章 介绍中,因为业务对线程池参数没有合理配置,触发过几起生产事故,进而

longtai 3.4k Dec 30, 2022
ReDoSHunter: A Combined Static and Dynamic Approach for Regular Expression DoS Detection

ReDoSHunter ReDoSHunter is a combined static and dynamic approach for regular expression DoS detection. LATEST NOTE (updated at 2021.09.13): ReDoSHunt

Yeting Li 43 Dec 23, 2022
A quiz app with great layout design, dynamic questions using firebase and what not....

AndroidQuizApp An android quiz app created using Android Studio with our language JAVA that has great layout design, dynamic questions using firebase

Ejaz Mahmood 4 Dec 30, 2022
The KubeJS data dumper and dynamic typing generator.

ProbeJS A data dumper and typing generator for the KubeJS functions, constants and classes. Great thanks to @DAmNRelentless, @LatvianModder and @yeste

Li Junyu 22 Dec 8, 2022
dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务

一个基于springboot的快速集成多数据源的启动器 简介 dynamic-datasource-spring-boot-starter 是一个基于springboot的快速集成多数据源的启动器。 其支持 Jdk 1.7+, SpringBoot 1.4.x 1.5.x 2.x.x。 文档 | D

baomidou 3.8k Dec 31, 2022
Dynamic Configuration Capability for SpringBoot Application

Spring Boot Dynamic Config Hot-reload your SpringBoot configurations, with just a '@DynamicConfig' annotation, the simplest solution, ever. English 简体

Joey Yang 153 Jan 3, 2023
Generate a dynamic PAC script that will route traffic to your Burp proxy only if it matches the scope defined in your Burp target.

Burp PAC Server This Burp Extension generates a dynamic Proxy Auto-Configuration (PAC) script that will route traffic to your Burp proxy only if it ma

null 30 Jun 13, 2022
This is the VapeCloud project, it is a Minecraft Dynamic CloudSystem based on Nio-Networking.

This is the VapeCloud project, it is a Minecraft Dynamic CloudSystem based on Nio-Networking. IMPORTENT: this Cloudsystem is still in Development Requ

RauchigesEtwas 2 Dec 19, 2022
Dynamic detection of likely invariants

This is the distribution of the Daikon invariant detector, Daikon version 5.8.11, released November 2, 2021. If you are working with a Daikon distrib

null 159 Dec 28, 2022
Dynamic Reports using Jasper Reports

DynamicJasper DynamicJasper (DJ) is an API that hides the complexity of JasperReports, it helps developers to save time when designing simple/medium c

intive-FDV 218 Dec 28, 2022
A Fully Code Integrated Dynamic DataBase Management System for the Java Platform

dynamic-database A fully code integrated minimal database management system for Java, Scala, Kotlin or Groovy projects. It is written in Java and can

omega ui 2 Jun 8, 2022
Lattice is a powerful, lightweight business extension invoke framework. By using the Lattice framework, complex business customization can be efficiently organized and managed.

Lattice Framework Introduction Lattice is a powerful, lightweight business extension invoke framework. By using the Lattice framework, complex busines

null 41 Dec 30, 2022