[GLASSFISH-18941] [PERF] additional regression in startup/deployment benchmark due to latest HK2 integration Created: 25/Jul/12  Updated: 19/Sep/14

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: 4.0_b45
Fix Version/s: 4.1

Type: Bug Priority: Critical
Reporter: amitagarwal Assignee: jwells
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Dependency
depends on GLASSFISH-20206 Boot GlassFish startup services in pa... Closed
blocks GLASSFISH-18693 [PERF] regression in startup/deployme... Resolved
Tags: PSRBUG, devx_web

 Description   

Recent HK2 integration has caused an additional regression in startup/deployment benchmark.
Before integration total elapsed time for startup/benchmark was already 22% down, now its 33% down. Footprint has gone up by additional 16 MB. Startup time has gone up over a second.

Will add more info once I collect profiles.



 Comments   
Comment by matt_so [ 20/Aug/12 ]

New result using:
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

Retained Heap Different between Glassfish b39 to b45:
1) org.jvnet.hk2.component.MultiMap
B39: 3,669 Objects, 6,994,112 bytes
B45: 4,264 Objects, 8,132,384 bytes

2) org.jvnet.hk2.component.DescriptorImpl
B39: 3121 Objects, 6,426,808 bytes
B45: 3702 Objects, 7,337,352 bytes

3) org.jvnet.hk2.component.Habitat
B39: 1 Object, 4,756,520 bytes
B45: 3 Objects, 5,838,024 bytes

Comment by jwells [ 20/Aug/12 ]

Is there any way to see what are the extra objects created? Like some sort of graph or something?

I'm most freaked out about the MultiMaps, which really should be going away...

Comment by Tom Mueller [ 15/Feb/13 ]

Assigning back to John. If you need help collecting more data on this part of the regression, please contact me, but do not assign the issue back to Amit. Eliminating the regression in the developer benchmark is a release criteria for the Java EE 7 release, so this is a high priority issue.

Comment by jwells [ 21/Feb/13 ]

I have made a change to the HK2 initialization files (hk2-locator/default etc) such that they are smaller in size. In theory this should help with boot time. Can we get another measurement on startup time?

Comment by Tom Mueller [ 21/Feb/13 ]

John, the startup time is measured daily via this hudson job:

http://hudson-sca.us.oracle.com/job/as-dev-benchmark-trunk-win/ (internal link)

There is no need to reassign this issue back to Scott to get a measurement.
Another option is to run this benchmark yourself. The procedure for running it is in the configuration of the hudson job.

From the latest results it looks like you change may have produced an improvement.

Comment by Tom Mueller [ 22/Feb/13 ]

This must be fixed for 4.0.

Comment by jwells [ 26/Apr/13 ]

We have made many fixes, some of which have been rejected for stability reasons. Deferring this to 4.0.1

Comment by pbelbin [ 23/Jul/13 ]

does the parallel startup functionality apply also to the parallel startup of deployed apps?

this is a pain point for me with some of the GF 3.1.2 servers I look after.





[GLASSFISH-18921] Allow configuration of Service Registry, e.g., dropping/replacing services Created: 19/Jul/12  Updated: 19/Sep/14

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: None
Fix Version/s: 4.1

Type: Improvement Priority: Critical
Reporter: Sanjeeb Sahoo Assignee: mtaube
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We need a better way to configure the service registry without entering too far into the territory of "config driven services" model. I have not looked at the code post HK2 2.x integration, but earlier HK2 API exposed methods in InhabitantParser to customize the service registry. The customization supported replacing/removing of services. I don't think they are written carefully enough to take care of timing issues, but I would expect them to work if those methods are called before any service is actually active. As part of HK2 2.x effort, they may have been improved as well. We do have some code (which I don't actually like) that actually uses those methods to drop/replace services at system bootstrapping time. This is mostly done in the embedded code path. By now you must have come across those files as part of HK2 2.x integration. e.g., nucleus/core/kernel/src/main/java/org/glassfish/kernel/embedded/EmbeddedInhabitantsParser.java. There has to be a better way to do this. I don't like the system property based check that's going on in this file or the getName() based matching. What I am hoping for is a way to provide some service customization information as part of domain.xml so that we can get rid of InhabitantParserDecorators. We could have an entry like:

<hk2-service-registry-customization>
<dropped-service>
</dropped-service>
<replace-service></replace-service>
</hk2-service-registry-customization>

This can even be used to add ranks to services to control service selection when multiple ones are present.

Don't read too much into these XML descriptor, they are just a discussion starter. We could read this from a different file, but why invent another configuration source instead of using domain.xml?

Thanks,
Sahoo






[GLASSFISH-20937] loadClass from org.jvnet.hk2.osgiadapter.OsgiPopulatorPostProcessor needs to be improved Created: 19/Dec/13  Updated: 19/Dec/13

Status: Open
Project: glassfish
Component/s: hk2, OSGi
Affects Version/s: 3.1.2, 3.1.2.2, 4.0
Fix Version/s: None

Type: Improvement Priority: Critical
Reporter: TangYong Assignee: Sanjeeb Sahoo
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently, loading class way from org.jvnet.hk2.osgiadapter.OsgiPopulatorPostProcessor is directly starting OSGi bundle, then loading class.

OsgiPopulatorPostProcessor(OSGiModuleImpl paramOsgiModule) {
this.osgiModule = paramOsgiModule;

loader = new HK2Loader() {

@SuppressWarnings(

{ "unchecked", "rawtypes" }

)
@Override
public Class<?> loadClass(final String className)
throws MultiException {
osgiModule.start();
return (Class<?>) AccessController.doPrivileged(new PrivilegedAction() {
public java.lang.Object run() {
try

{ return osgiModule.getBundle().loadClass(className); }

catch (Throwable e) {
...

A question is as following,

Why not directly calling Bundle.loadClass?

According to API Doc,

If this bundle's state is INSTALLED, this method must attempt to resolve this bundle before attempting to load the class.

So, we only wish the bundle state is changed into Resolved rather than Active, right?



 Comments   
Comment by TangYong [ 19/Dec/13 ]

The same improvement also happened in the following method,

[Class] org.jvnet.hk2.osgiadapter.OSGiModuleImpl

public synchronized void resolve() throws ResolveError

{ // Since OSGi bundle does not have a separate resolve method, // we use the same implementation as start(); start(); }
Comment by TangYong [ 19/Dec/13 ]

I am sorry that things is not really simple,

I have known why you firstly start the bundle. For some cases, eg. While kernel is starting, it will proceed to some higher hk2 start level, and attempt to start these bundles, if removing osgiModule.start(), these bundles will stay in Resolved state rather than active state.

However, for general case(using @Service or getService), this will be Brute Force because we only want to load classes rather than starting the bundle.

Right?





[GLASSFISH-20934]  "org.osgi.framework.BundleException: Unable to acquire global lock for resolve" happened while executing "asadmin start-cluster" Created: 18/Dec/13  Updated: 18/Dec/13

Status: Open
Project: glassfish
Component/s: hk2, jms, jts, OSGi
Affects Version/s: 3.1.2, 3.1.2.2, 4.0
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: TangYong Assignee: paul_parkinson
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File GLASSFISH-20934.patch    

 Description   

While executing "asadmin start-cluster" in an environment with heavy-load, sometimes, the following exception happened in server.log

...
[#|2013-12-04T16:46:56.553+0900|SEVERE|||_ThreadID=68;_ThreadName=Recovery Helper Thread;|Exception in thread "Recovery Helper Thread" |#]

[#|2013-12-04T16:46:56.558+0900|SEVERE|||_ThreadID=68;_ThreadName=Recovery Helper Thread;|com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [40] State [INSTALLED] [org.glassfish.main.connectors.inbound-runtime(Connectors Inbound Support):3.1.2.2-XXX-SNAPSHOT]
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl$2$1$1.loadClass(OSGiModuleImpl.java:344)
at com.sun.hk2.component.LazyInhabitant.loadClass(LazyInhabitant.java:124)
at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:111)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:135)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
at org.jvnet.hk2.component.Habitat$5.get(Habitat.java:703)
at java.util.AbstractList$Itr.next(AbstractList.java:358)
at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
at java.util.ArrayList.<init>(ArrayList.java:164)
at com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.configure(ResourceRecoveryManagerImpl.java:339)
at com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.recoverXAResources(ResourceRecoveryManagerImpl.java:231)
at com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.recoverXAResources(ResourceRecoveryManagerImpl.java:331)
at com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.postConstruct(ResourceRecoveryManagerImpl.java:106)
at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
at org.jvnet.hk2.component.Habitat.getByContract(Habitat.java:1050)
at com.sun.jts.jta.TransactionServiceProperties$RecoveryHelperThread.run(TransactionServiceProperties.java:358)
Caused by: org.osgi.framework.BundleException: Unable to acquire global lock for resolve.
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3832)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169)
... 21 more

#]
...

Among the above, [40] is org.glassfish.main.connectors.inbound-runtime bundle.

This issue maybe also happened on 4.0 based on my source analyze.

About "Component/s", firstly, I selected HK2, OSGi and JMS. About why selecting JMS, I will say the reason in the following comment. secondly, I firstly assign to Sahoo to evaluate.



 Comments   
Comment by TangYong [ 18/Dec/13 ]

[My investigation]

In starting cluster process, there are two threads which all influence org.glassfish.main.connectors.inbound-runtime module's state. The two threads are:

1) Recovery Helper Thread
The thread will auto-start org.glassfish.main.connectors.inbound-runtime module while the following from org.glassfish.main.transaction.jts module is executed:

ResourceRecoveryManager recoveryManager = serviceLocator.getService(ResourceRecoveryManager.class)

By a series of calling, finally, executing logic will search the implementation or service of com.sun.enterprise.transaction.spi.RecoveryResourceHandler interface. And InboundRecoveryHandler class from org.glassfish.main.connectors.inbound-runtime module will be a candidate.

2) RunLevelController Thread
The thread comes from HK2. And the thread is produced because while gf kernel is starting, the following from com.sun.enterprise.v3.server.AppServerStartup will make effect,

if (!proceedTo(PostStartupRunLevel.VAL))

{ … }

Well, hk2 will filter all descriptors meeting run level equaling with PostStartupRunLevel.VAL(20) and then starting these modules. Because JmsProviderLifecycle class from org.glassfish.main.jms.core defines @RunLevel(value=PostStartupRunLevel.VAL, mode=RunLevel.RUNLEVEL_MODE_NON_VALIDATING), so it is a candidate. Deeply, while starting org.glassfish.main.jms.core, because org.glassfish.main.jms.core depends on org.glassfish.main.connectors.inbound-runtime module[1], firstly, OSGi runtime will resolve org.glassfish.main.connectors.inbound-runtime module.

[1]: only ActiveJmsResourceAdapter class depends on org.glassfish.main.connectors.inbound-runtime.

Based on the above analyze, if the two threads are in cross running, Recovery Helper Thread will be interrupted by felix because it can not obtain global lock, about the issue, pl. seeing [2].

Richard says:
"This is not necessarily a bug. That can happen if your bundle is holding a bundle lock and you try to acquire the global lock, which in this case the thread holds the bundle lock for the bundle it is trying to start and it needs the global lock to resolve it. If someone else already has the global lock and needs a bundle lock, then it will interrupt the other thread only holding the bundle lock. This avoids deadlocks."

[2]:http://mail-archives.apache.org/mod_mbox/felix-users/201102.mbox/%3C4D498058.7080104@ungoverned.org%3E

So, this is why I selected HK2, OSGi and JMS.

Comment by TangYong [ 18/Dec/13 ]

Deeply, I have some new finding as following:

Recovery Helper Thread is triggered by the following from com.sun.enterprise.v3.server.AppServerStartup,

if (!postStartupJob())

{ ... }

And RunLevelControllerThread running PostStartupRunLevel.VAL(20) is triggered by the following:

if (!proceedTo(PostStartupRunLevel.VAL))

{ ... }

Apparently, if postStartupJob has not truly been finished and RunLevelControllerThread running PostStartupRunLevel.VAL(20) starts to run, then, the issue or similar issues(module state changing) can happen.

Tang

Comment by TangYong [ 18/Dec/13 ]

A fixing way is delaying Recovery Helper Thread's running and after PostStartupRunLevel has been finished, by sending event, running Recovery Helper Thread.

about detailed fixing way, pl. seeing and confirming the patch.

Thanks
Tang

Comment by TangYong [ 18/Dec/13 ]

Adding JTS component and request JTS leader to confirm the patch and evaluate the issue.





[GLASSFISH-20322] Configuration parsing (domain.xml) slows down server startup Created: 16/Apr/13  Updated: 19/Sep/14

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: 4.0_b84_RC1
Fix Version/s: 4.1

Type: Bug Priority: Critical
Reporter: Tom Mueller Assignee: Mahesh Kannan
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: devx_web

 Description   

Parsing the domain.xml during server startup takes about 420 ms for 271 elements using 88 config bean classes. On the system where this was measured, system startup takes about 3400 ms, so domain.xml parsing is about 8% of the startup time. Of this 420 ms, about 275 is spent in DomainXml.parseDomainXml.

Much of the DomainXml.parseDomainXml time is spent loading the classes. Just the parsing part (based on measuring MiniXmlParser) takes about 25 ms. The current parser is tightly coupled to the use of the model, which is derived from the config bean class. To make this parallel, this would need to be separated. The XML document would need to be parsed to determine the list of needed config bean models and the data to populate the Dom objects (stored in a form that is independent of the model). Then, using multiple threads, the config bean classes could be loaded and the Dom objects created. In addition to class loading, whenever a config bean is created, there is a call to the GlassFishConfigBean.initializationCompleted method which calls the AMX PendingConfigBeans class to add the config bean to a queue that is used by AMX if/when it initializes.

The time outside of parseDomainXml (about 145 ms) is spent in the decorate method which adds indices to the service locator for various config objects.

This issue is for exploring and implementing ways to reduce the time needed to parse the domain.xml with the goal of improving the server startup time.



 Comments   
Comment by Tom Mueller [ 18/Apr/13 ]

For comparison, 3.1.2 parses 251 elements using 71 config bean classes. The time to do this using the same system as before is 166 ms total with 85 ms of that being in DomainXml.parseDomainXml.

If parsing scaled linearly with either the number of elements or the number of classes, we would expect the time in 4.0 to be about 180-205 ms (not the 420 that is being measure currently). So there seems to be an opportunity here for about 200 ms of improvement.

Comment by Tom Mueller [ 19/Apr/13 ]

One source of the slow down is in the GlassFishConfigBean.initializationCompleted method. In 4.0, this code was changed from:

habitat.getComponent(CageBuilder.class, "PendingConfigBeans");

to

getServiceLocator().<ConfigBeanListener>getAllServices(ConfigBeanListener.class)

The latter code is much more complex resulting in many more intermediate objects being created that the former. However, this only accounts for about 6 ms of difference.

Comment by Tom Mueller [ 19/Apr/13 ]

Another data point. I copied a 3.1.2 domain.xml into a 4.0 domain and measured the time: 362 ms with 234 in parseDomainXml (compares with 166/85).

Comment by Tom Mueller [ 23/Apr/13 ]

Here is some additional timing data for the DomainXml.run method.

The DomDocument.buildModel shows calls to the ConfigModel constructor with the time (in usecs).
The Configparser.handleElement lines show the breakdown of the time spent in the ConfigParser.handleElement method as follows:

make = document.make
fill = fill attributes
children = parse the child elements - NOTE: this includes the complete handleElement time for the all the children
reg = dom.register
con = dom.ensureConstraints(children)
ic = dom.setChildren(children) (if nec.) and dom.initializationCompleted()

All times are in usec.

DomDocument.buildModel com.sun.enterprise.config.serverbeans.SystemPropertyInjector 210
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ResourceRefInjector 31
DomDocument.buildModel org.jvnet.hk2.config.types.PropertyInjector 35
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ApplicationRefInjector 41
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ServerInjector 312
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ServersInjector 370
DomDocument.buildModel org.glassfish.api.admin.config.ApplicationNameInjector 22
DomDocument.buildModel com.sun.enterprise.config.serverbeans.SystemApplicationsInjector 76
DomDocument.buildModel com.sun.enterprise.config.serverbeans.HealthCheckerInjector 31
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ServerRefInjector 107
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ClusterExtensionInjector 34
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ClusterInjector 342
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ClustersInjector 403
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ResourceInjector 23
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ResourcesInjector 77
DomDocument.buildModel com.sun.enterprise.config.serverbeans.AuthRealmInjector 42
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ModuleLogLevelsInjector 179
DomDocument.buildModel com.sun.enterprise.config.serverbeans.LogServiceInjector 304
DomDocument.buildModel org.glassfish.grizzly.config.dom.SslInjector 168
DomDocument.buildModel com.sun.enterprise.config.serverbeans.JmxConnectorInjector 294
DomDocument.buildModel com.sun.enterprise.config.serverbeans.NodeAgentInjector 809
DomDocument.buildModel com.sun.enterprise.config.serverbeans.NodeAgentsInjector 861
DomDocument.buildModel com.sun.enterprise.config.serverbeans.SecureAdminInternalUserInjector 30
DomDocument.buildModel com.sun.enterprise.config.serverbeans.SecureAdminPrincipalInjector 34
DomDocument.buildModel com.sun.enterprise.config.serverbeans.SecureAdminInjector 170
DomDocument.buildModel com.sun.enterprise.config.serverbeans.DomainExtensionInjector 13
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ApplicationsInjector 28
DomDocument.buildModel com.sun.enterprise.config.serverbeans.SshAuthInjector 35
DomDocument.buildModel com.sun.enterprise.config.serverbeans.SshConnectorInjector 95
DomDocument.buildModel com.sun.enterprise.config.serverbeans.NodeInjector 210
DomDocument.buildModel com.sun.enterprise.config.serverbeans.NodesInjector 272
DomDocument.buildModel org.glassfish.grizzly.config.dom.ThreadPoolInjector 65
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ThreadPoolsInjector 121
DomDocument.buildModel org.glassfish.api.monitoring.ContainerMonitoringInjector 27
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ModuleMonitoringLevelsInjector 132
DomDocument.buildModel com.sun.enterprise.config.serverbeans.MonitoringServiceInjector 300
DomDocument.buildModel com.sun.enterprise.config.serverbeans.AccessLogInjector 70
DomDocument.buildModel com.sun.enterprise.config.serverbeans.HttpAccessLogInjector 24
DomDocument.buildModel com.sun.enterprise.config.serverbeans.VirtualServerInjector 163
DomDocument.buildModel com.sun.enterprise.config.serverbeans.HttpServiceInjector 363
DomDocument.buildModel com.sun.enterprise.config.serverbeans.AvailabilityServiceExtensionInjector 17
DomDocument.buildModel com.sun.enterprise.config.serverbeans.AvailabilityServiceInjector 125
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ProfilerInjector 53
DomDocument.buildModel com.sun.enterprise.config.serverbeans.JavaConfigInjector 275
DomDocument.buildModel com.sun.enterprise.config.serverbeans.DiagnosticServiceExtensionInjector 24
DomDocument.buildModel com.sun.enterprise.config.serverbeans.DiagnosticServiceInjector 128
DomDocument.buildModel com.sun.enterprise.config.serverbeans.FailureDetectionInjector 35
DomDocument.buildModel com.sun.enterprise.config.serverbeans.GroupManagementServiceInjector 137
DomDocument.buildModel org.glassfish.grizzly.config.dom.SelectionKeyHandlerInjector 39
DomDocument.buildModel org.glassfish.grizzly.config.dom.TransportInjector 129
DomDocument.buildModel org.glassfish.grizzly.config.dom.TransportsInjector 293
DomDocument.buildModel org.glassfish.grizzly.config.dom.FileCacheInjector 49
DomDocument.buildModel org.glassfish.grizzly.config.dom.SpdyInjector 58
DomDocument.buildModel org.glassfish.grizzly.config.dom.HttpInjector 434
DomDocument.buildModel org.glassfish.grizzly.config.dom.ProtocolFinderInjector 45
DomDocument.buildModel org.glassfish.grizzly.config.dom.PortUnificationInjector 124
DomDocument.buildModel org.glassfish.grizzly.config.dom.HttpRedirectInjector 39
DomDocument.buildModel org.glassfish.grizzly.config.dom.ProtocolFilterInjector 42
DomDocument.buildModel org.glassfish.grizzly.config.dom.ProtocolChainInjector 119
DomDocument.buildModel org.glassfish.grizzly.config.dom.ProtocolChainInstanceHandlerInjector 192
DomDocument.buildModel org.glassfish.grizzly.config.dom.ProtocolInjector 1041
DomDocument.buildModel org.glassfish.grizzly.config.dom.ProtocolsInjector 1110
DomDocument.buildModel org.glassfish.grizzly.config.dom.NetworkListenerInjector 75
DomDocument.buildModel org.glassfish.grizzly.config.dom.NetworkListenersInjector 166
DomDocument.buildModel org.glassfish.grizzly.config.dom.NetworkConfigInjector 1705
DomDocument.buildModel com.sun.enterprise.config.serverbeans.AuditModuleInjector 43
DomDocument.buildModel com.sun.enterprise.config.serverbeans.JaccProviderInjector 46
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ResponsePolicyInjector 27
DomDocument.buildModel com.sun.enterprise.config.serverbeans.RequestPolicyInjector 25
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ProviderConfigInjector 173
DomDocument.buildModel com.sun.enterprise.config.serverbeans.MessageSecurityConfigInjector 246
DomDocument.buildModel com.sun.enterprise.config.serverbeans.SecurityServiceInjector 543
DomDocument.buildModel org.glassfish.api.admin.config.ContainerInjector 14
DomDocument.buildModel com.sun.enterprise.config.serverbeans.DasConfigInjector 78
DomDocument.buildModel com.sun.enterprise.config.serverbeans.AdminServiceInjector 186
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ConfigInjector 4457
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ConfigsInjector 4519
DomDocument.buildModel com.sun.enterprise.config.serverbeans.DomainInjector 13578
DomDocument.buildModel org.glassfish.security.services.config.SecurityProviderConfigInjector 21
DomDocument.buildModel org.glassfish.security.services.config.SecurityProviderInjector 107
DomDocument.buildModel org.glassfish.security.services.config.SecurityConfigurationInjector 186
DomDocument.buildModel org.glassfish.security.services.config.SecurityConfigurationsInjector 240
DomDocument.buildModel org.glassfish.security.services.config.AuthenticationServiceInjector 49
DomDocument.buildModel org.glassfish.security.services.config.LoginModuleConfigInjector 47
Configparser.handleElement property make=34 fill=5 children=27 reg=1875 con=16 ic=3451
Configparser.handleElement property make=39 fill=5 children=7 reg=547 con=3 ic=79
Configparser.handleElement login-module-config make=34 fill=6 children=6694 reg=736 con=18 ic=59
Configparser.handleElement security-provider make=35 fill=6 children=7749 reg=391 con=16 ic=51
Configparser.handleElement property make=34 fill=4 children=6 reg=222 con=2 ic=51
Configparser.handleElement property make=37 fill=4 children=6 reg=221 con=3 ic=50
Configparser.handleElement login-module-config make=33 fill=6 children=781 reg=220 con=4 ic=49
Configparser.handleElement security-provider make=40 fill=6 children=1208 reg=217 con=4 ic=52
Configparser.handleElement authentication-service make=34 fill=16 children=9971 reg=521 con=4 ic=49
DomDocument.buildModel org.glassfish.security.services.config.AuthorizationServiceInjector 50
DomDocument.buildModel org.glassfish.security.services.provider.authorization.AuthorizationProviderConfigInjector 71
Configparser.handleElement authorization-provider-config make=37 fill=5 children=7 reg=409 con=5 ic=56
Configparser.handleElement security-provider make=34 fill=6 children=729 reg=227 con=5 ic=49
Configparser.handleElement authorization-service make=34 fill=4 children=1142 reg=364 con=4 ic=49
Configparser.handleElement security-configurations make=28 fill=1 children=12594 reg=468 con=5 ic=52
DomDocument.buildModel com.sun.enterprise.config.serverbeans.ManagedJobConfigInjector 55
Configparser.handleElement managed-job-config make=38 fill=1 children=7 reg=576 con=7 ic=52
Configparser.handleElement system-applications make=28 fill=1 children=6 reg=451 con=4 ic=52
DomDocument.buildModel org.glassfish.jdbc.config.JdbcResourceInjector 64
Configparser.handleElement jdbc-resource make=41 fill=7 children=6 reg=27385 con=7 ic=63
Configparser.handleElement jdbc-resource make=47 fill=8 children=8 reg=230 con=5 ic=54
DomDocument.buildModel org.glassfish.jdbc.config.JdbcConnectionPoolInjector 247
Configparser.handleElement property make=31 fill=5 children=6 reg=259 con=3 ic=56
Configparser.handleElement property make=35 fill=4 children=6 reg=235 con=3 ic=50
Configparser.handleElement jdbc-connection-pool make=122 fill=8 children=857 reg=893 con=9 ic=59
Configparser.handleElement property make=35 fill=4 children=7 reg=251 con=3 ic=53
Configparser.handleElement property make=36 fill=4 children=6 reg=233 con=2 ic=50
Configparser.handleElement property make=35 fill=4 children=6 reg=235 con=4 ic=119
Configparser.handleElement property make=56 fill=7 children=9 reg=366 con=4 ic=74
Configparser.handleElement property make=52 fill=7 children=8 reg=341 con=4 ic=71
Configparser.handleElement property make=50 fill=6 children=8 reg=334 con=4 ic=74
Configparser.handleElement jdbc-connection-pool make=121 fill=10 children=3079 reg=318 con=8 ic=74
DomDocument.buildModel org.glassfish.connectors.config.BackendPrincipalInjector 39
DomDocument.buildModel org.glassfish.connectors.config.SecurityMapInjector 147
DomDocument.buildModel org.glassfish.connectors.config.ConnectorConnectionPoolInjector 437
Configparser.handleElement connector-connection-pool make=133 fill=19 children=10 reg=1269 con=7 ic=85
DomDocument.buildModel org.glassfish.connectors.config.ConnectorResourceInjector 96
Configparser.handleElement connector-resource make=79 fill=10 children=9 reg=742 con=6 ic=74
Configparser.handleElement resources make=27 fill=1 children=37912 reg=432 con=8 ic=78
Configparser.handleElement resource-ref make=48 fill=4 children=8 reg=557 con=4 ic=78
Configparser.handleElement resource-ref make=43 fill=5 children=7 reg=305 con=4 ic=70
Configparser.handleElement resource-ref make=42 fill=5 children=8 reg=308 con=4 ic=70
Configparser.handleElement server make=88 fill=7 children=1835 reg=1361 con=10 ic=74
Configparser.handleElement servers make=45 fill=1 children=3499 reg=394 con=4 ic=50
Configparser.handleElement node make=53 fill=8 children=6 reg=461 con=6 ic=50
Configparser.handleElement nodes make=32 fill=1 children=694 reg=322 con=4 ic=53
Configparser.handleElement system-property make=33 fill=6 children=6 reg=392 con=3 ic=50
Configparser.handleElement access-log make=42 fill=1 children=6 reg=337 con=4 ic=54
Configparser.handleElement virtual-server make=67 fill=6 children=6 reg=531 con=8 ic=51
Configparser.handleElement virtual-server make=63 fill=4 children=6 reg=221 con=4 ic=50
Configparser.handleElement http-service make=37 fill=1 children=1667 reg=672 con=7 ic=50
DomDocument.buildModel org.glassfish.orb.admin.config.OrbInjector 48
DomDocument.buildModel org.glassfish.orb.admin.config.IiopListenerInjector 96
DomDocument.buildModel com.sun.enterprise.config.serverbeans.SslClientConfigInjector 46
DomDocument.buildModel org.glassfish.orb.admin.config.IiopServiceInjector 355
Configparser.handleElement orb make=32 fill=4 children=6 reg=549 con=4 ic=51
Configparser.handleElement iiop-listener make=50 fill=7 children=6 reg=469 con=8 ic=52
Configparser.handleElement ssl make=87 fill=4 children=6 reg=676 con=4 ic=56
Configparser.handleElement iiop-listener make=47 fill=8 children=922 reg=253 con=5 ic=49
Configparser.handleElement ssl make=87 fill=6 children=6 reg=151 con=4 ic=50
Configparser.handleElement iiop-listener make=50 fill=7 children=399 reg=219 con=4 ic=52
Configparser.handleElement iiop-service make=36 fill=1 children=3663 reg=352 con=6 ic=53
Configparser.handleElement jmx-connector make=52 fill=9 children=6 reg=436 con=5 ic=50
Configparser.handleElement property make=34 fill=5 children=5 reg=246 con=3 ic=49
Configparser.handleElement property make=33 fill=5 children=6 reg=236 con=2 ic=53
Configparser.handleElement property make=33 fill=4 children=6 reg=239 con=2 ic=53
Configparser.handleElement das-config make=53 fill=1 children=6 reg=374 con=4 ic=54
Configparser.handleElement admin-service make=45 fill=5 children=2431 reg=21538 con=8 ic=69
DomDocument.buildModel org.glassfish.connectors.config.ConnectorServiceInjector 60
Configparser.handleElement connector-service make=33 fill=2 children=7 reg=383 con=5 ic=53
DomDocument.buildModel com.sun.enterprise.transaction.config.TransactionServiceInjector 58
Configparser.handleElement transaction-service make=35 fill=5 children=7 reg=835 con=5 ic=58
DomDocument.buildModel org.glassfish.batch.spi.impl.BatchRuntimeConfigurationInjector 28
Configparser.handleElement batch-runtime-configuration make=46 fill=2 children=11 reg=25673 con=4 ic=61
DomDocument.buildModel com.sun.enterprise.connectors.jms.config.JmsHostInjector 59
DomDocument.buildModel com.sun.enterprise.connectors.jms.config.JmsServiceInjector 209
Configparser.handleElement jms-host make=30 fill=5 children=7 reg=16884 con=6 ic=63
Configparser.handleElement jms-service make=77 fill=7 children=17130 reg=578 con=7 ic=80
DomDocument.buildModel org.glassfish.weld.connector.CDIServiceInjector 34
Configparser.handleElement cdi-service make=38 fill=2 children=9 reg=647 con=4 ic=77
DomDocument.buildModel org.glassfish.web.config.serverbeans.SessionPropertiesInjector 42
DomDocument.buildModel org.glassfish.web.config.serverbeans.ManagerPropertiesInjector 62
DomDocument.buildModel org.glassfish.web.config.serverbeans.StorePropertiesInjector 50
DomDocument.buildModel org.glassfish.web.config.serverbeans.SessionManagerInjector 244
DomDocument.buildModel org.glassfish.web.config.serverbeans.SessionConfigInjector 412
DomDocument.buildModel org.glassfish.web.config.serverbeans.WebContainerInjector 517
Configparser.handleElement manager-properties make=37 fill=1 children=9 reg=766 con=7 ic=98
Configparser.handleElement store-properties make=36 fill=1 children=9 reg=436 con=5 ic=89
Configparser.handleElement session-manager make=31 fill=1 children=1699 reg=416 con=7 ic=75
Configparser.handleElement session-properties make=36 fill=1 children=9 reg=407 con=5 ic=73
Configparser.handleElement session-config make=31 fill=2 children=2918 reg=404 con=6 ic=74
Configparser.handleElement web-container make=38 fill=2 children=3523 reg=462 con=7 ic=73
Configparser.handleElement diagnostic-service make=61 fill=2 children=8 reg=463 con=7 ic=73
Configparser.handleElement property make=39 fill=5 children=8 reg=343 con=4 ic=73
Configparser.handleElement property make=39 fill=6 children=8 reg=332 con=3 ic=73
Configparser.handleElement auth-realm make=40 fill=8 children=1150 reg=587 con=6 ic=74
Configparser.handleElement property make=37 fill=6 children=7 reg=329 con=4 ic=73
Configparser.handleElement property make=38 fill=6 children=8 reg=254 con=3 ic=49
Configparser.handleElement auth-realm make=44 fill=6 children=999 reg=198 con=4 ic=48
Configparser.handleElement auth-realm make=26 fill=4 children=6 reg=200 con=4 ic=47
Configparser.handleElement property make=23 fill=4 children=5 reg=228 con=3 ic=48
Configparser.handleElement jacc-provider make=29 fill=5 children=389 reg=616 con=6 ic=79
Configparser.handleElement jacc-provider make=47 fill=10 children=9 reg=309 con=7 ic=81
Configparser.handleElement property make=38 fill=6 children=8 reg=352 con=4 ic=80
Configparser.handleElement audit-module make=40 fill=7 children=599 reg=619 con=6 ic=79
Configparser.handleElement request-policy make=34 fill=4 children=9 reg=428 con=4 ic=81
Configparser.handleElement response-policy make=35 fill=5 children=8 reg=416 con=5 ic=80
Configparser.handleElement property make=46 fill=6 children=8 reg=352 con=4 ic=77
Configparser.handleElement property make=40 fill=6 children=8 reg=338 con=4 ic=76
Configparser.handleElement property make=43 fill=6 children=8 reg=388 con=4 ic=83
Configparser.handleElement property make=41 fill=6 children=9 reg=380 con=4 ic=74
Configparser.handleElement provider-config make=48 fill=7 children=4110 reg=677 con=8 ic=75
Configparser.handleElement request-policy make=31 fill=4 children=8 reg=209 con=4 ic=79
Configparser.handleElement response-policy make=35 fill=4 children=8 reg=218 con=4 ic=74
Configparser.handleElement property make=40 fill=6 children=8 reg=367 con=4 ic=75
Configparser.handleElement property make=39 fill=6 children=8 reg=359 con=4 ic=74
Configparser.handleElement property make=38 fill=6 children=9 reg=290 con=3 ic=54
Configparser.handleElement property make=37 fill=6 children=9 reg=287 con=3 ic=51
Configparser.handleElement property make=39 fill=7 children=8 reg=265 con=3 ic=51
Configparser.handleElement provider-config make=49 fill=8 children=3502 reg=265 con=6 ic=50
Configparser.handleElement request-policy make=20 fill=2 children=6 reg=156 con=3 ic=51
Configparser.handleElement response-policy make=35 fill=4 children=8 reg=171 con=3 ic=50
Configparser.handleElement property make=39 fill=6 children=9 reg=307 con=3 ic=51
Configparser.handleElement property make=40 fill=6 children=8 reg=269 con=3 ic=50
Configparser.handleElement property make=40 fill=6 children=8 reg=269 con=3 ic=51
Configparser.handleElement provider-config make=33 fill=5 children=2110 reg=260 con=6 ic=50
Configparser.handleElement request-policy make=22 fill=2 children=6 reg=158 con=3 ic=50
Configparser.handleElement response-policy make=36 fill=4 children=9 reg=171 con=3 ic=50
Configparser.handleElement property make=42 fill=6 children=9 reg=285 con=4 ic=51
Configparser.handleElement property make=40 fill=6 children=8 reg=272 con=3 ic=51
Configparser.handleElement property make=40 fill=7 children=8 reg=287 con=4 ic=79
Configparser.handleElement property make=39 fill=6 children=9 reg=272 con=3 ic=50
Configparser.handleElement provider-config make=48 fill=7 children=2631 reg=262 con=6 ic=50
Configparser.handleElement message-security-config make=47 fill=6 children=14822 reg=505 con=5 ic=50
Configparser.handleElement request-policy make=20 fill=3 children=7 reg=171 con=3 ic=50
Configparser.handleElement response-policy make=28 fill=1 children=6 reg=198 con=3 ic=51
Configparser.handleElement property make=40 fill=6 children=8 reg=287 con=3 ic=50
Configparser.handleElement property make=40 fill=7 children=8 reg=282 con=3 ic=51
Configparser.handleElement provider-config make=34 fill=6 children=1664 reg=239 con=5 ic=53
Configparser.handleElement message-security-config make=41 fill=3 children=2116 reg=216 con=4 ic=50
Configparser.handleElement property make=28 fill=4 children=6 reg=271 con=3 ic=49
Configparser.handleElement security-service make=68 fill=1 children=25506 reg=407 con=7 ic=50
Configparser.handleElement java-config make=48 fill=9 children=1085 reg=637 con=12 ic=57
Configparser.handleElement file-cache make=27 fill=1 children=6 reg=360 con=5 ic=56
Configparser.handleElement http make=80 fill=5 children=534 reg=518 con=5 ic=53
Configparser.handleElement protocol make=35 fill=4 children=1285 reg=405 con=7 ic=51
Configparser.handleElement file-cache make=25 fill=1 children=5 reg=151 con=4 ic=51
Configparser.handleElement http make=79 fill=4 children=295 reg=149 con=5 ic=50
Configparser.handleElement ssl make=66 fill=5 children=6 reg=151 con=4 ic=50
Configparser.handleElement protocol make=42 fill=6 children=1026 reg=211 con=6 ic=49
Configparser.handleElement file-cache make=24 fill=1 children=6 reg=155 con=3 ic=51
Configparser.handleElement http make=77 fill=5 children=301 reg=170 con=5 ic=51
Configparser.handleElement protocol make=45 fill=3 children=702 reg=213 con=7 ic=48
Configparser.handleElement protocols make=22 fill=1 children=4366 reg=352 con=5 ic=50
Configparser.handleElement network-listener make=38 fill=9 children=5 reg=427 con=4 ic=51
Configparser.handleElement network-listener make=38 fill=8 children=6 reg=209 con=4 ic=49
Configparser.handleElement network-listener make=37 fill=7 children=6 reg=210 con=4 ic=49
Configparser.handleElement network-listeners make=26 fill=1 children=1470 reg=314 con=6 ic=49
Configparser.handleElement transport make=52 fill=3 children=5 reg=474 con=4 ic=51
Configparser.handleElement transports make=25 fill=1 children=659 reg=292 con=6 ic=50
Configparser.handleElement network-config make=45 fill=2 children=7865 reg=327 con=6 ic=49
Configparser.handleElement thread-pool make=35 fill=7 children=5 reg=402 con=4 ic=50
Configparser.handleElement thread-pool make=36 fill=3 children=6 reg=209 con=4 ic=48
Configparser.handleElement thread-pool make=34 fill=4 children=6 reg=210 con=3 ic=49
Configparser.handleElement thread-pools make=23 fill=1 children=1344 reg=288 con=4 ic=49
Configparser.handleElement module-monitoring-levels make=63 fill=1 children=6 reg=375 con=5 ic=49
Configparser.handleElement monitoring-service make=29 fill=1 children=561 reg=350 con=6 ic=49
Configparser.handleElement failure-detection make=24 fill=1 children=6 reg=303 con=3 ic=49
Configparser.handleElement group-management-service make=35 fill=0 children=449 reg=328 con=5 ic=49
Configparser.handleElement availability-service make=39 fill=0 children=6 reg=374 con=5 ic=49
Configparser.handleElement config make=68 fill=4 children=124925 reg=516 con=15 ic=50
Configparser.handleElement access-log make=30 fill=0 children=6 reg=151 con=4 ic=49
Configparser.handleElement property make=25 fill=4 children=6 reg=310 con=3 ic=51
Configparser.handleElement virtual-server make=48 fill=4 children=485 reg=217 con=4 ic=50
Configparser.handleElement virtual-server make=46 fill=4 children=6 reg=213 con=4 ic=48
Configparser.handleElement http-service make=25 fill=1 children=1571 reg=148 con=5 ic=48
Configparser.handleElement orb make=23 fill=3 children=5 reg=149 con=4 ic=48
Configparser.handleElement iiop-listener make=39 fill=6 children=6 reg=222 con=5 ic=50
Configparser.handleElement ssl make=107 fill=7 children=8 reg=233 con=5 ic=56
Configparser.handleElement iiop-listener make=84 fill=11 children=543 reg=285 con=5 ic=52
Configparser.handleElement ssl make=60 fill=5 children=6 reg=162 con=5 ic=51
Configparser.handleElement iiop-listener make=59 fill=7 children=397 reg=283 con=5 ic=50
Configparser.handleElement iiop-service make=25 fill=1 children=2976 reg=198 con=5 ic=51
Configparser.handleElement jmx-connector make=42 fill=8 children=6 reg=217 con=5 ic=49
Configparser.handleElement property make=41 fill=6 children=8 reg=304 con=3 ic=50
Configparser.handleElement das-config make=63 fill=2 children=8 reg=169 con=4 ic=50
Configparser.handleElement admin-service make=44 fill=5 children=1337 reg=193 con=5 ic=49
Configparser.handleElement manager-properties make=24 fill=1 children=6 reg=154 con=4 ic=50
Configparser.handleElement store-properties make=40 fill=1 children=8 reg=175 con=4 ic=50
Configparser.handleElement session-manager make=24 fill=1 children=653 reg=193 con=4 ic=51
Configparser.handleElement session-properties make=36 fill=2 children=8 reg=188 con=6 ic=63
Configparser.handleElement session-config make=28 fill=1 children=1363 reg=195 con=5 ic=50
Configparser.handleElement web-container make=34 fill=2 children=1721 reg=192 con=5 ic=49
DomDocument.buildModel org.glassfish.ejb.config.EjbTimerServiceInjector 54
DomDocument.buildModel org.glassfish.ejb.config.EjbContainerInjector 218
Configparser.handleElement ejb-timer-service make=38 fill=1 children=6 reg=665 con=4 ic=53
Configparser.handleElement ejb-container make=66 fill=2 children=855 reg=468 con=5 ic=50
DomDocument.buildModel org.glassfish.ejb.config.MdbContainerInjector 63
Configparser.handleElement mdb-container make=43 fill=2 children=9 reg=370 con=4 ic=53
Configparser.handleElement jms-host make=31 fill=6 children=6 reg=225 con=4 ic=51
Configparser.handleElement jms-service make=56 fill=7 children=427 reg=198 con=5 ic=50
Configparser.handleElement module-log-levels make=66 fill=1 children=6 reg=487 con=4 ic=51
Configparser.handleElement log-service make=61 fill=5 children=683 reg=390 con=4 ic=50
Configparser.handleElement property make=24 fill=4 children=6 reg=304 con=3 ic=50
Configparser.handleElement property make=40 fill=6 children=8 reg=291 con=3 ic=50
Configparser.handleElement auth-realm make=28 fill=5 children=954 reg=270 con=4 ic=49
Configparser.handleElement property make=27 fill=4 children=6 reg=283 con=3 ic=49
Configparser.handleElement property make=41 fill=6 children=9 reg=289 con=3 ic=50
Configparser.handleElement auth-realm make=41 fill=6 children=940 reg=264 con=5 ic=49
Configparser.handleElement auth-realm make=42 fill=6 children=8 reg=225 con=4 ic=49
Configparser.handleElement property make=24 fill=4 children=5 reg=282 con=3 ic=50
Configparser.handleElement jacc-provider make=44 fill=6 children=452 reg=261 con=4 ic=49
Configparser.handleElement jacc-provider make=42 fill=6 children=6 reg=215 con=4 ic=49
Configparser.handleElement property make=28 fill=5 children=5 reg=322 con=2 ic=51
Configparser.handleElement audit-module make=41 fill=6 children=507 reg=262 con=4 ic=50
Configparser.handleElement request-policy make=21 fill=2 children=6 reg=174 con=3 ic=50
Configparser.handleElement response-policy make=33 fill=5 children=8 reg=178 con=3 ic=72
Configparser.handleElement property make=40 fill=5 children=8 reg=451 con=5 ic=85
Configparser.handleElement property make=44 fill=6 children=7 reg=306 con=4 ic=52
Configparser.handleElement property make=41 fill=6 children=8 reg=305 con=3 ic=50
Configparser.handleElement property make=39 fill=6 children=9 reg=300 con=2 ic=51
Configparser.handleElement provider-config make=32 fill=5 children=2879 reg=273 con=7 ic=50
Configparser.handleElement request-policy make=22 fill=3 children=6 reg=166 con=3 ic=51
Configparser.handleElement response-policy make=35 fill=5 children=8 reg=181 con=3 ic=50
Configparser.handleElement property make=47 fill=6 children=9 reg=313 con=3 ic=51
Configparser.handleElement property make=41 fill=7 children=8 reg=300 con=3 ic=70
Configparser.handleElement property make=42 fill=6 children=8 reg=458 con=4 ic=85
Configparser.handleElement property make=43 fill=6 children=8 reg=447 con=4 ic=80
Configparser.handleElement property make=40 fill=6 children=7 reg=438 con=4 ic=82
Configparser.handleElement provider-config make=54 fill=8 children=3784 reg=347 con=9 ic=82
Configparser.handleElement request-policy make=33 fill=4 children=8 reg=253 con=4 ic=77
Configparser.handleElement response-policy make=34 fill=4 children=8 reg=257 con=4 ic=83
Configparser.handleElement property make=47 fill=6 children=8 reg=474 con=4 ic=79
Configparser.handleElement property make=43 fill=6 children=8 reg=495 con=5 ic=86
Configparser.handleElement property make=45 fill=7 children=9 reg=480 con=5 ic=88
Configparser.handleElement provider-config make=56 fill=8 children=3177 reg=352 con=9 ic=80
Configparser.handleElement request-policy make=33 fill=4 children=9 reg=247 con=5 ic=85
Configparser.handleElement response-policy make=32 fill=4 children=6 reg=179 con=3 ic=52
Configparser.handleElement property make=28 fill=5 children=5 reg=349 con=3 ic=52
Configparser.handleElement property make=27 fill=4 children=5 reg=302 con=3 ic=55
Configparser.handleElement property make=27 fill=3 children=6 reg=304 con=3 ic=51
Configparser.handleElement property make=26 fill=4 children=6 reg=304 con=3 ic=52
Configparser.handleElement provider-config make=54 fill=9 children=2748 reg=295 con=6 ic=51
Configparser.handleElement message-security-config make=42 fill=5 children=14852 reg=271 con=5 ic=51
Configparser.handleElement security-service make=71 fill=2 children=20883 reg=202 con=8 ic=51
Configparser.handleElement transaction-service make=43 fill=8 children=9 reg=162 con=5 ic=49
Configparser.handleElement diagnostic-service make=60 fill=2 children=8 reg=181 con=4 ic=50
Configparser.handleElement java-config make=70 fill=6 children=902 reg=169 con=10 ic=51
DomDocument.buildModel org.glassfish.web.config.serverbeans.WebContainerAvailabilityInjector 90
Configparser.handleElement web-container-availability make=31 fill=1 children=9 reg=743 con=5 ic=62
DomDocument.buildModel org.glassfish.ejb.config.EjbContainerAvailabilityInjector 59
Configparser.handleElement ejb-container-availability make=48 fill=6 children=9 reg=417 con=4 ic=51
DomDocument.buildModel com.sun.enterprise.connectors.jms.config.JmsAvailabilityInjector 90
Configparser.handleElement jms-availability make=45 fill=1 children=14 reg=383 con=4 ic=51
Configparser.handleElement availability-service make=51 fill=2 children=2575 reg=203 con=6 ic=49
Configparser.handleElement file-cache make=27 fill=1 children=5 reg=162 con=4 ic=52
Configparser.handleElement http make=89 fill=3 children=311 reg=155 con=5 ic=50
Configparser.handleElement protocol make=35 fill=3 children=683 reg=221 con=7 ic=49
Configparser.handleElement file-cache make=24 fill=1 children=6 reg=154 con=4 ic=50
Configparser.handleElement http make=76 fill=3 children=298 reg=153 con=5 ic=49
Configparser.handleElement ssl make=64 fill=5 children=6 reg=157 con=4 ic=50
Configparser.handleElement protocol make=35 fill=4 children=1019 reg=216 con=6 ic=49
Configparser.handleElement file-cache make=23 fill=1 children=6 reg=155 con=4 ic=50
Configparser.handleElement http make=76 fill=4 children=298 reg=158 con=5 ic=49
Configparser.handleElement protocol make=35 fill=3 children=668 reg=218 con=6 ic=49
Configparser.handleElement file-cache make=23 fill=1 children=6 reg=159 con=4 ic=50
Configparser.handleElement http make=75 fill=4 children=302 reg=157 con=5 ic=49
Configparser.handleElement ssl make=61 fill=8 children=5 reg=158 con=4 ic=49
Configparser.handleElement protocol make=36 fill=4 children=1065 reg=222 con=6 ic=49
Configparser.handleElement http-redirect make=23 fill=2 children=6 reg=367 con=3 ic=51
Configparser.handleElement protocol make=36 fill=3 children=528 reg=224 con=6 ic=50
Configparser.handleElement protocol-finder make=26 fill=5 children=6 reg=396 con=4 ic=51
Configparser.handleElement protocol-finder make=28 fill=6 children=6 reg=210 con=4 ic=50
Configparser.handleElement port-unification make=24 fill=1 children=979 reg=314 con=5 ic=51
Configparser.handleElement protocol make=36 fill=3 children=1438 reg=226 con=6 ic=50
Configparser.handleElement protocols make=27 fill=1 children=7673 reg=149 con=6 ic=54
Configparser.handleElement network-listener make=39 fill=8 children=6 reg=222 con=4 ic=49
Configparser.handleElement network-listener make=38 fill=7 children=6 reg=215 con=3 ic=49
Configparser.handleElement network-listener make=38 fill=7 children=6 reg=216 con=4 ic=48
Configparser.handleElement network-listeners make=27 fill=1 children=1272 reg=149 con=6 ic=48
Configparser.handleElement transport make=55 fill=3 children=6 reg=211 con=4 ic=48
Configparser.handleElement transports make=25 fill=1 children=394 reg=148 con=5 ic=48
Configparser.handleElement network-config make=40 fill=2 children=10196 reg=148 con=6 ic=47
Configparser.handleElement thread-pool make=34 fill=3 children=5 reg=216 con=4 ic=48
Configparser.handleElement thread-pool make=35 fill=5 children=5 reg=216 con=4 ic=49
Configparser.handleElement thread-pools make=22 fill=1 children=761 reg=149 con=4 ic=47
Configparser.handleElement failure-detection make=24 fill=1 children=5 reg=150 con=3 ic=48
Configparser.handleElement group-management-service make=34 fill=1 children=288 reg=149 con=4 ic=48
Configparser.handleElement system-property make=28 fill=6 children=6 reg=216 con=3 ic=47
Configparser.handleElement system-property make=26 fill=4 children=6 reg=227 con=3 ic=47
Configparser.handleElement system-property make=27 fill=4 children=5 reg=215 con=3 ic=48
Configparser.handleElement system-property make=27 fill=4 children=6 reg=220 con=3 ic=47
Configparser.handleElement system-property make=26 fill=4 children=6 reg=218 con=2 ic=48
Configparser.handleElement system-property make=26 fill=4 children=6 reg=226 con=3 ic=47
Configparser.handleElement system-property make=26 fill=4 children=6 reg=221 con=3 ic=47
Configparser.handleElement system-property make=26 fill=4 children=6 reg=221 con=2 ic=48
Configparser.handleElement system-property make=26 fill=3 children=6 reg=224 con=2 ic=48
Configparser.handleElement system-property make=26 fill=4 children=6 reg=225 con=3 ic=47
Configparser.handleElement module-monitoring-levels make=53 fill=1 children=6 reg=149 con=4 ic=48
Configparser.handleElement monitoring-service make=29 fill=1 children=319 reg=149 con=5 ic=48
Configparser.handleElement config make=54 fill=4 children=56491 reg=213 con=17 ic=47
Configparser.handleElement configs make=29 fill=1 children=182537 reg=372 con=4 ic=48
Configparser.handleElement property make=29 fill=5 children=6 reg=344 con=3 ic=47
Configparser.handleElement secure-admin-principal make=23 fill=2 children=6 reg=386 con=3 ic=49
Configparser.handleElement secure-admin-principal make=24 fill=3 children=7 reg=212 con=2 ic=47
Configparser.handleElement secure-admin make=29 fill=3 children=917 reg=368 con=5 ic=49
Configparser.handleElement clusters make=24 fill=0 children=6 reg=311 con=4 ic=49
Configparser.handleElement applications make=23 fill=0 children=6 reg=156 con=4 ic=47
Configparser.handleElement domain make=3450 fill=44 children=244486 reg=189 con=10 ic=50
DomainXml.run 440432

Comment by Tom Mueller [ 24/Apr/13 ]

The Dom.register time is unusually long for three config beans:

Configparser.handleElement jdbc-resource make=38 fill=6 children=7 reg=28745 con=6 ic=72
Configparser.handleElement batch-runtime-configuration make=23 fill=1 children=7 reg=11790 con=6 ic=95
Configparser.handleElement jms-host make=37 fill=6 children=7 reg=11095 con=6 ic=72

Most of the registration time (> 95%) is spent in the following line:

ctrs.add(myselfReified.getImplementationClass());

If we can eliminate, delay, or rewrite this call, we could cut 30-40ms off of the domain.xml parse time.

Comment by Tom Mueller [ 01/May/13 ]

Still working on this for 4.0.

Comment by Tom Mueller [ 01/May/13 ]

A possible improvement:

The TranslatedConfigView.getProxy method (in the nucleus/admin/config-api module) creates a new proxy every time it is called even though proxies are immutable objects. If it caches proxy objects, the hit rate is fairly high. However, most of the time is spent creating a proxy the first time. Creating a proxy the second time is about 10-40 microseconds whereas creating a proxy the first time can take milliseconds. So the savings from caching proxies is only a few milliseconds for the entire startup process.

Here's a diff for adding a proxy cache:

--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -57,6 +57,9 @@
 import java.security.UnrecoverableKeyException;
 import java.security.cert.CertificateException;
 import java.io.IOException;
+import java.lang.reflect.InvocationHandler;
+import java.util.HashMap;
+import java.util.Map;
 
 /**
  * View that translate configured attributes containing properties like ${foo.bar}
@@ -67,6 +70,7 @@
 public class TranslatedConfigView implements ConfigView {
 
     final static Pattern p = Pattern.compile("([^\\$]*)\\$\\{([^\\}]*)\\}([^\\$]*)");
+    final static Map<ProxyKey,Object> proxyCache = new HashMap<ProxyKey,Object>();
 
     private static final String ALIAS_TOKEN = "ALIAS";
     private static int MAX_SUBSTITUTION_DEPTH = 100;
@@ -147,9 +151,23 @@
 
     @Override
     public <T extends ConfigBeanProxy> T getProxy(Class<T> proxyType) {
-        return proxyType.cast(Proxy.newProxyInstance(proxyType.getClassLoader(), new Class[]{proxyType},
-                 this));
+        ProxyKey pk = new ProxyKey(proxyType, this);
+        synchronized (proxyCache) {
+            Object proxy = proxyCache.get(pk);
+            if (proxy == null) {
+                //long s = System.nanoTime();
+                proxy = Proxy.newProxyInstance(proxyType.getClassLoader(), new Class[]{proxyType},
+                     this);
+                proxyCache.put(pk, proxy);
+                //long e = System.nanoTime(); 
+                //System.out.println("TranslatedConfigView.getProxy miss " + proxyType.getName() + " " + this + " " + (e-s)/1000);
+            } else {
+                //System.out.println("TranslatedConfigView.getProxy hit " + proxyType.getName() + " " + this);
     }
+            return proxyType.cast(proxy);
+        }
+    }
+    
     static ServiceLocator habitat;
     public static void setHabitat(ServiceLocator h) {
          habitat = h;
@@ -204,4 +222,39 @@
        }
 
     
+    static class ProxyKey { 
+        private Class aClass;
+        private InvocationHandler handler;
+        
+        public ProxyKey(Class c, InvocationHandler h) {
+            aClass = c;
+            handler = h;
 }
+
+        @Override
+        public boolean equals(Object obj) {
+            if (obj == null) {
+                return false;
+            }
+            if (getClass() != obj.getClass()) {
+                return false;
+            }
+            final ProxyKey other = (ProxyKey) obj;
+            if (this.aClass != other.aClass && (this.aClass == null || !this.aClass.equals(other.aClass))) {
+                return false;
+            }
+            if (this.handler != other.handler && (this.handler == null || !this.handler.equals(other.handler))) {
+                return false;
+            }
+            return true;
+        }
+        
+        @Override
+        public int hashCode() {
+            int hash = 3;
+            hash = 29 * hash + (this.aClass != null ? this.aClass.hashCode() : 0);
+            hash = 29 * hash + (this.handler != null ? this.handler.hashCode() : 0);
+            return hash;
+        }
+    }
+}

Comment by Tom Mueller [ 02/May/13 ]

Here is a summary of what we have found out so far concerning domain.xml parsing.

Of the 420 ms spent in 4.0 (254 ms more than 3.1.2):

  • 6 ms is spent calling getAllServices(ConfigBeanListener.class) rather than getComponent(CageBuilder.class, "PendingConfigBeans");
  • 58 ms is spent processing config beans that were not there in 3.1.2
  • 51 ms is spent getting the implementation class for 3 config beans (I have not confirmed this, but I expect this is not done as part of domain.xml parsing in 3.1.2)
  • 50 ms is spent calling Config.addIndex (time is spent creating proxies that were not created as part of domain.xml parsing before)

This accounts for 175 ms of the 254 ms.

Comment by Mahesh Kannan [ 06/May/13 ]

Part of the problem is that Dom.register calls:
ctrs.add(myselfReified.getImplementationClass());

Which basically loads the class and hence activates the bundle. Maybe,
we should explore if the above can be avoided. Probably we should just
store the implementation class name (as opposed to storing implementation
class itself).

Having said that, this is too risky to make any changes to the config system so
late in the release cycle.

Comment by Mahesh Kannan [ 06/May/13 ]

Since this is a risky fix, marking this for 4.0.1





[GLASSFISH-18854] Replace asadmin sub-command in HK2 registry on OSGi bundle update Created: 28/Jun/12  Updated: 28/Jun/12

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: 3.1.2
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: ancoron Assignee: shreedhar_ganapathy
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Java Archive File osgi-service-1.0.2.jar    

 Description   

Currently it is not possible to "update" an asadmin sub-command, although the OSGi bundle lifecycle is fine and a new NamedInhabitant is available inside the HK2 service registry, but it's never being used as almost every other code seems to assume that the first available Inhabitant is the right one.



 Comments   
Comment by ancoron [ 28/Jun/12 ]

Attached HK2-Jar osgi-service-1.0.2.jar as a simple test case containing the following:

  • asadmin sub-command "osgi-service"
  • plain vanilla OSGi service for interface "org.ancoron.glassfish.asadmin.samples.osgi.SomeService" that is being consumed by the sub-command


To test this install the artifact into .../autodeploy/bundles/ where FileInstall is active.

Now do the following:

  1. invoke the command:
    $ ./bin/asadmin -t osgi-service id
    org.ancoron.glassfish.asadmin.samples.osgi.impl.SomeServiceImpl@7295bc43 (class-loader: org.apache.felix.framework.BundleWiringImpl@447b0d7a)
    
  2. update the bundle (touch it) and wait for FileInstall to pick up
  3. issue the command again:
    $ ./bin/asadmin -t osgi-service id
    injection failed on org.ancoron.glassfish.asadmin.samples.osgi.OSGiServiceCommand.svc with interface org.ancoron.glassfish.asadmin.samples.osgi.SomeService
    Closest matching local and remote command(s): 
        osgi-service
    
    


Now in the server log you can see a ClassCastException: Cannot cast org.ancoron.glassfish.asadmin.samples.osgi.impl.SomeServiceImpl to org.ancoron.glassfish.asadmin.samples.osgi.SomeService





[GLASSFISH-18911] Automate generation of Class-Path entries for JAR files containing local CLI commands Created: 17/Jul/12  Updated: 19/Sep/14

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: None
Fix Version/s: 4.1

Type: Bug Priority: Major
Reporter: Tom Mueller Assignee: jwells
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Since the change to use the HK2 2.0 API, the hk2-jar maven plugin is no longer being used to generate JAR files. This means that there are no longer Class-Path entries in the manifests for JAR files. However, for the asadmin command, Class-Path entries are still required.

Specifically, the gms-adapter.jar file needs a class-path entry that points to shoal-gms-impl.jar. For now, this has been manually put into the pom.xml file gms-adapter.jar. This issue is for figuring out a way to do this automatically so that the dependencies that are already listed in the pom.xml are picked up.






[GLASSFISH-21102] Simple embedded container example fails Created: 25/Jun/14  Updated: 12/Aug/14

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: 4.0, 4.1_b07
Fix Version/s: None

Type: Bug Priority: Major
Reporter: David Delabassee Assignee: phil.zampino
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

SE 1.8.0_05-b13 / OS X Maverick



 Description   

The following EE7 Tutorial will throw the above exception when using GF 4.0 Embedded Container

<groupId>org.glassfish.main.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
<version>4.0</version>

--8<--

INFO: [EJBContainerImpl] Deploying as a ScatteredArchive
Jun 25, 2014 5:13:21 PM org.glassfish.hk2.classmodel.reflect.Parser$5 on
SEVERE: Exception while visiting sun/applet/AppletPanel.class of size 22664
java.lang.ArrayIndexOutOfBoundsException: 8449
at org.objectweb.asm.ClassReader.readClass(ClassReader.java:2015)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:469)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:362)
at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:347)
at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:67)
at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:306)
at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)



 Comments   
Comment by David Delabassee [ 27/Jun/14 ]

Source of the sample https://svn.java.net/svn/javaeetutorial~svn/trunk/examples/ejb/standalone/

Works fine on Java SE 1.7.0_51-b13
Throws the above severe exception on Java SE 1.8.0_05-b13 but sample works

Comment by Srini [ 30/Jun/14 ]

Stack trace shows HK2 failing when trying to build the class-model using byte code scanning of the application class files - reassigned to HK2 component.





[GLASSFISH-21014] Collection streams provoke java.lang.ArrayIndexOutOfBoundsException Created: 21/Mar/14  Updated: 07/Sep/14

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: 4.0_b89_RC5
Fix Version/s: None

Type: Bug Priority: Major
Reporter: wtmann Assignee: phil.zampino
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux Ubuntu 13.10 64-bit, Java 1.8.0-b132


Tags: collection, jdk8, stream

 Description   

When deploying a web application created with Netbeans 8.0 that use collections streams, the deployment fails with an ArrayIndexOutOfBounds error. When not using collections streams the deployment of the application works fine. Here's an example of working and non-working code:

WorkingCode.java
public Collection<Anaana> getFamigliaStoricoCollection() {
    Collection collFamiglia = new ArrayList();
    for (Anaana x : this.famigliaStoricoCollection) {
        if (x.getStato() >= 50L) {
            collFamiglia.add(x);
        }
    }
    return collFamiglia;
}
nonWorkingCode.java
public Collection<Anaana> getFamigliaStoricoCollection() {
    Collection collFamiglia = new ArrayList();
    this.famigliaStoricoCollection.stream().filter((x) -> (x.getStato() >= 50L)).forEach((x) -> {
        collFamiglia.add(x);
    });
    return collFamiglia;
}

The non-working code generates the following error:

ArrayIndexOutOfBoundsException
Grave:   Exception while visiting WEB-INF/classes/it/belluno/comune/persistenza/AnafamStorico.class of size 7018
java.lang.ArrayIndexOutOfBoundsException: 51966
	at org.objectweb.asm.ClassReader.readUTF8(ClassReader.java:1946)
	at org.objectweb.asm.ClassReader.readClass(ClassReader.java:2015)
	at org.objectweb.asm.ClassReader.accept(ClassReader.java:469)
	at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
	at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:362)
	at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
	at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
	at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:347)
	at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:67)
	at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:306)
	at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:295)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:744)

And since this code is in a JPA entity, the subsequent errors are:

PersistenceException
Grave:   Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
Grave:   javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [AnagrafeWebPU] failed.
Internal Exception: Exception [EclipseLink-7250] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.ValidationException
Exception Description: [class it.belluno.comune.persistenza.Anaana] uses a non-entity [class it.belluno.comune.persistenza.AnafamStorico] as target entity in the relationship attribute [field famigliaStorico].
	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:1950)
	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1941)
	at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:322)
	at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:199)
	at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:107)
	at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:223)
	at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:510)
	at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:230)
	at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:922)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:431)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
	at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
	at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
	at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
	at java.lang.Thread.run(Thread.java:744)
Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [AnagrafeWebPU] failed.
Internal Exception: Exception [EclipseLink-7250] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.ValidationException

Any insight would be appreciated.



 Comments   
Comment by reza_rahman [ 21/Mar/14 ]

In case you aren't, I would try this with the latest snapshot instead of an older release.

Comment by wtmann [ 21/Mar/14 ]

I tried the same type of code on the latest Glassfish 4.0.1 nightly and it still won't deploy. However, the ArrayIndexOutOfBoundsException has disappeared but the rest of the log remains the same. This means that it's still not handling the collection streams in functional code because Glassfish is not finding the entity that contains the offending code and therefore the exception listed below occurs.

Deployment Error Log
Severe:   Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
Severe:   javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [FunctionalTestPU] failed.
Internal Exception: Exception [EclipseLink-7250] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.ValidationException
Exception Description: [class entities.Comuni] uses a non-entity [class entities.Province] as target entity in the relationship attribute [field idprovincia].
	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:1954)
	at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1945)
	at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:322)
	at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:199)
	at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:107)
	at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:223)
	at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:510)
	at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:230)
	at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:925)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:434)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
	at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
	at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
	at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:215)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:291)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:209)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:137)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:115)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:291)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:209)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:137)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:115)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:291)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:209)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:137)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:115)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:550)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
	at java.lang.Thread.run(Thread.java:744)
Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [FunctionalTestPU] failed.

I'm really stumped on this one!

Comment by reza_rahman [ 21/Mar/14 ]

I think you might have done enough - we'll try and take a look at this.

Comment by jmanko [ 22/Jul/14 ]

I confirm this issue in GlassFish Server Open Source Edition 4.0 (build 89). We use lambdas in our entity classes, and since GF fails on processing them, JPA never registers the entities, and thus we're getting non-entity relationship errors everywhere. This is a critical bug that deserves the highest priority.

Comment by mkucinski [ 23/Jul/14 ]

The EclipseLink error with lambdas has been fixed in 2.6.0 nightly: https://bugs.eclipse.org/bugs/show_bug.cgi?id=429992 How to update with glassfish: https://blogs.oracle.com/GlassFishPersistence/entry/updating_eclipselink_bundles_in_glassfish

Glassfish has also been fixed in 4.0.1 nightly

Comment by Hamidam [ 07/Sep/14 ]

Yes, similar error here too using glassfish 4.0. Just downloaded the latest build, will see if it is resolved then. Using JDK8 and lambdas ofcourse.

Comment by Hamidam [ 07/Sep/14 ]

Yes, the error is still there in the latest build as well. Note that my application runs fine on Tomcat, here is the stacktrace:

Edit: The error seems different now though. Earlier, in 4.0 it was other errors as well.

[2014-09-07T10:20:05.547+0200] [] [INFO] [NCLS-GFLAUNCHER-00005] [javax.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1410078005547] [levelValue: 800] [[
JVM invocation command line:
/mo/projects/papapa/MoJEE/Other/software/java/jdk1.8.0_05/bin/java
-cp
/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-XX:MaxPermSize=192m
-Xmx512m
-client
-javaagent:/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/lib/monitor/flashlight-agent.jar
-Djavax.xml.accessExternalSchema=all
-Djavax.net.ssl.trustStore=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/domains/domain1/config/cacerts.jks
-Djdk.corba.allowOutputStreamSubclass=true
-Dfelix.fileinstall.dir=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/modules/autostart/
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall
-Dcom.sun.aas.installRoot=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/modules/endorsed:/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/lib/endorsed
-Djava.security.policy=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/domains/domain1/config/server.policy
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.bundles.startTransient=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dfelix.fileinstall.log.level=2
-Djavax.net.ssl.keyStore=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/domains/domain1/config/keystore.jks
-Djava.security.auth.login.config=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/domains/domain1/config/login.conf
-Dfelix.fileinstall.disableConfigSave=false
-Dfelix.fileinstall.bundles.new.start=true
-Dcom.sun.aas.instanceRoot=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/domains/domain1
-Dosgi.shell.telnet.port=6666
Dgosh.args=-nointeractive
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Dosgi.shell.telnet.ip=127.0.0.1
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.awt.headless=true
-Dcom.ctc.wstx.returnNullForDefaultNamespace=true
-Djava.ext.dirs=/mo/software/java/jdk1.8.0_05/lib/ext:/mo/software/java/jdk1.8.0_05/jre/lib/ext:/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/domains/domain1/lib/ext
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djava.library.path=/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/lib:/mo/software/intellij/idea-IU-135.909/bin:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/domains/domain1
-read-stdin
true
-asadmin-args
-host,,,localhost,,,port,,,4848,,,secure=false,,,terse=false,,,echo=false,,,interactive=false,,,start-domain,,,verbose=false,,,watchdog=false,,,debug=false,,,-domaindir,,,/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
/mo/projects/papapa/MoJEE/Other/software/glassfish/glassfish4/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]

[2014-09-07T10:20:07.479+0200] [glassfish 4.1] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=18 _ThreadName=RunLevelControllerThread-1410078007418] [timeMillis: 1410078007479] [levelValue: 800] [[
Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)]]

[2014-09-07T10:20:07.481+0200] [glassfish 4.1] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=18 _ThreadName=RunLevelControllerThread-1410078007418] [timeMillis: 1410078007481] [levelValue: 800] [[
Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]

[2014-09-07T10:20:07.583+0200] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1410078007423] [timeMillis: 1410078007583] [levelValue: 800] [[
Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2014-09-07T10:20:07.585+0200] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1410078007423] [timeMillis: 1410078007585] [levelValue: 800] [[
Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2014-09-07T10:20:07.589+0200] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1410078007423] [timeMillis: 1410078007589] [levelValue: 800] [[
Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]

[2014-09-07T10:20:07.645+0200] [glassfish 4.1] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1410078007423] [timeMillis: 1410078007645] [levelValue: 800] [[
Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]

[2014-09-07T10:20:07.678+0200] [glassfish 4.1] [INFO] [SEC-SVCS-00100] [javax.enterprise.security.services] [tid: _ThreadID=18 _ThreadName=RunLevelControllerThread-1410078007418] [timeMillis: 1410078007678] [levelValue: 800] [[
Authorization Service has successfully initialized.]]

[2014-09-07T10:20:07.734+0200] [glassfish 4.1] [INFO] [] [org.hibernate.validator.internal.util.Version] [tid: _ThreadID=18 _ThreadName=RunLevelControllerThread-1410078007418] [timeMillis: 1410078007734] [levelValue: 800] [[
HV000001: Hibernate Validator 5.0.0.Final]]

[2014-09-07T10:20:08.002+0200] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=17 _ThreadName=RunLevelControllerThread-1410078007418] [timeMillis: 1410078008002] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 13ms - bound to [/0.0.0.0:8080]]]

[2014-09-07T10:20:08.021+0200] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=17 _ThreadName=RunLevelControllerThread-1410078007418] [timeMillis: 1410078008021] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 4ms - bound to [/0.0.0.0:8181]]]

[2014-09-07T10:20:08.033+0200] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=17 _ThreadName=RunLevelControllerThread-1410078007418] [timeMillis: 1410078008033] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 1ms - bound to [/0.0.0.0:4848]]]

[2014-09-07T10:20:08.064+0200] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=19 _ThreadName=RunLevelControllerThread-1410078007423] [timeMillis: 1410078008064] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:3700]]]

[2014-09-07T10:20:08.093+0200] [glassfish 4.1] [INFO] [NCLS-CORE-00017] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1410078008093] [levelValue: 800] [[
GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (1,705ms), startup services(681ms), total(2,386ms)]]

[2014-09-07T10:20:08.291+0200] [glassfish 4.1] [INFO] [NCLS-JMX-00005] [javax.enterprise.system.jmx] [tid: _ThreadID=65 _ThreadName=Thread-14] [timeMillis: 1410078008291] [levelValue: 800] [[
JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://molaptop:8686/jndi/rmi://molaptop:8686/jmxrmi]]

[2014-09-07T10:20:08.405+0200] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1410078007423] [timeMillis: 1410078008405] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:7676]]]

[2014-09-07T10:20:08.408+0200] [glassfish 4.1] [INFO] [NCLS-BOOTSTRAP-00027] [javax.enterprise.bootstrap] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1410078008408] [levelValue: 800] [[
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@1984212d as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@7885776b.]]

[2014-09-07T10:20:09.851+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078009851] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:10.841+0200] [glassfish 4.1] [INFO] [NCLS-SECURITY-01002] [javax.enterprise.system.core.security] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078010841] [levelValue: 800] [[
Java security manager is disabled.]]

[2014-09-07T10:20:10.842+0200] [glassfish 4.1] [INFO] [NCLS-SECURITY-01010] [javax.enterprise.system.core.security] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078010842] [levelValue: 800] [[
Entering Security Startup Service.]]

[2014-09-07T10:20:10.845+0200] [glassfish 4.1] [INFO] [NCLS-SECURITY-01143] [javax.enterprise.system.core.security] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078010845] [levelValue: 800] [[
Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.]]

[2014-09-07T10:20:10.872+0200] [glassfish 4.1] [INFO] [NCLS-SECURITY-01011] [javax.enterprise.system.core.security] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078010872] [levelValue: 800] [[
Security Service(s) started successfully.]]

[2014-09-07T10:20:11.022+0200] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011022] [levelValue: 800] [[
Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080]]

[2014-09-07T10:20:11.028+0200] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011028] [levelValue: 800] [[
Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181]]

[2014-09-07T10:20:11.030+0200] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011030] [levelValue: 800] [[
Created HTTP listener admin-listener on host/port 0.0.0.0:4848]]

[2014-09-07T10:20:11.045+0200] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011045] [levelValue: 800] [[
Created virtual server server]]

[2014-09-07T10:20:11.046+0200] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011046] [levelValue: 800] [[
Created virtual server __asadmin]]

[2014-09-07T10:20:11.173+0200] [glassfish 4.1] [INFO] [AS-WEB-CORE-00306] [javax.enterprise.web.core] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011173] [levelValue: 800] [[
Setting JAAS app name glassfish-web]]

[2014-09-07T10:20:11.173+0200] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00201] [javax.enterprise.web] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011173] [levelValue: 800] [[
Virtual server server loaded default web module ]]

[2014-09-07T10:20:11.485+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011485] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.547+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011547] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.548+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011548] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.598+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011598] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.599+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011599] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.600+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011600] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.600+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011600] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.615+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011615] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.616+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011616] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.656+0200] [glassfish 4.1] [SEVERE] [] [global] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011656] [levelValue: 1000] [[
Class [ com/mysema/query/dml/UpdateClause ] not found. Error while loading [ class org.springframework.data.jpa.repository.support.QueryDslRepositorySupport ]]]

[2014-09-07T10:20:11.657+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011657] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.657+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011657] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.658+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011658] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.693+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011693] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.694+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011694] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.695+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011695] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.695+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011695] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.696+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011696] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.697+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011697] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.697+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011697] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.698+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011698] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.698+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011698] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.699+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011699] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.699+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011699] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.747+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011747] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.747+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011747] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.748+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011748] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.748+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011748] [levelValue: 800] [[
visiting unvisited references]]

[2014-09-07T10:20:11.770+0200] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.dol] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011770] [levelValue: 1000] [[
The lifecycle method [initialize] must not throw a checked exception]]

[2014-09-07T10:20:11.772+0200] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011772] [levelValue: 1000] [[
Exception while deploying the app [App-1.0]]]

[2014-09-07T10:20:11.772+0200] [glassfish 4.1] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011772] [levelValue: 1000] [[
Exception during lifecycle processing
java.lang.IllegalStateException: The lifecycle method [initialize] must not throw a checked exception. Related annotation information: annotation [@javax.annotation.PostConstruct()] on annotated element [public void org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer.initialize() throws java.lang.Exception] of type [METHOD]
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:518)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:446)
at org.glassfish.web.deployment.archivist.WebArchivist.postAnnotationProcess(WebArchivist.java:338)
at org.glassfish.web.deployment.archivist.WebArchivist.postAnnotationProcess(WebArchivist.java:91)
at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:420)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:396)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:271)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:280)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:241)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:161)
at org.glassfish.javaee.core.deployment.DolProvider.processDOL(DolProvider.java:203)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:227)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:96)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:881)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:821)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:377)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)
Caused by: The lifecycle method [initialize] must not throw a checked exception. Related annotation information: annotation [@javax.annotation.PostConstruct()] on annotated element [public void org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer.initialize() throws java.lang.Exception] of type [METHOD]
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:367)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:375)
at org.glassfish.apf.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:289)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:217)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:134)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:626)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:462)
... 53 more
Caused by: java.lang.IllegalArgumentException: The lifecycle method [initialize] must not throw a checked exception
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.validateAnnotatedLifecycleMethod(AbstractResourceHandler.java:186)
at com.sun.enterprise.deployment.annotation.handlers.PostConstructHandler.processAnnotation(PostConstructHandler.java:72)
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:142)
at com.sun.enterprise.deployment.annotation.factory.SJSASFactory$LazyAnnotationHandler.processAnnotation(SJSASFactory.java:148)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:344)
... 59 more
]]

[2014-09-07T10:20:11.823+0200] [glassfish 4.1] [WARNING] [] [javax.enterprise.web.util] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011823] [levelValue: 900] [[
The web application [unknown] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.]]

[2014-09-07T10:20:11.829+0200] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1410078011829] [levelValue: 1000] [[
Exception while deploying the app [App-1.0] : The lifecycle method [initialize] must not throw a checked exception. Related annotation information: annotation [@javax.annotation.PostConstruct()] on annotated element [public void org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer.initialize() throws java.lang.Exception] of type [METHOD]
The lifecycle method [initialize] must not throw a checked exception. Related annotation information: annotation [@javax.annotation.PostConstruct()] on annotated element [public void org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer.initialize() throws java.lang.Exception] of type [METHOD]
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:367)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:375)
at org.glassfish.apf.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:289)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:217)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:134)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:626)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:462)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:446)
at org.glassfish.web.deployment.archivist.WebArchivist.postAnnotationProcess(WebArchivist.java:338)
at org.glassfish.web.deployment.archivist.WebArchivist.postAnnotationProcess(WebArchivist.java:91)
at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:420)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:396)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:271)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:280)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:241)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:161)
at org.glassfish.javaee.core.deployment.DolProvider.processDOL(DolProvider.java:203)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:227)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:96)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:881)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:821)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:377)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: The lifecycle method [initialize] must not throw a checked exception
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.validateAnnotatedLifecycleMethod(AbstractResourceHandler.java:186)
at com.sun.enterprise.deployment.annotation.handlers.PostConstructHandler.processAnnotation(PostConstructHandler.java:72)
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:142)
at com.sun.enterprise.deployment.annotation.factory.SJSASFactory$LazyAnnotationHandler.processAnnotation(SJSASFactory.java:148)
at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:344)
... 59 more
]]





[GLASSFISH-20903] setting "org.jvnet.hk2.osgiadapter.level=FINER" in logging.properties caused GF domain starting failed Created: 19/Nov/13  Updated: 19/Sep/14

Status: Open
Project: glassfish
Component/s: hk2, logging
Affects Version/s: 4.0
Fix Version/s: 4.1

Type: Bug Priority: Major
Reporter: TangYong Assignee: jwells
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Setting "org.jvnet.hk2.osgiadapter.level=FINER" in logging.properties caused GF domain starting failed.

This issue is a regression of 3.1.2.2.

[GF 4.0 scene]
Modifying glassfish4/glassfish\domains\domain1/config/logging.properties and setting the following,

org.jvnet.hk2.osgiadapter.level=FINER

Then, starting GF domain failed, and the following error happened on cmd shell,

Waiting for domain1 to start .............Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:

...
Launching GlassFish on Felix platform
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@1ead03b in service registry.
Registry Info:: Total repositories: 1, Total modules = 293
Attached repository: []
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.services [239]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.glassfish-mbeanserver [100]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.transaction.jta [191]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.security.auth.message-api [145]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.containers.jersey-container-servlet-core [166]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.entitybean-container [76]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.resources.runtime [233]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-jca-plugin [54]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.registration.registration-api [230]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.connectors.admin [42]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.javax.json [140]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.metro.webservices-osgi [271]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.external.asm-all-repackaged [18]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.orb.enabler [206]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.config [114]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-javaee-base [289]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.web.javax.servlet.jsp.jstl [151]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.backup [19]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.common [222]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.gf-jpa-connector [85]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.transaction.jts [192]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [stax2-api [248]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.external.bean-validator [21]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.dataprovider [63]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.corba.glassfish-corba-orb [96]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.enhancer [28]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-ejb-container [287]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.batch-api [130]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.external.dbschema-repackaged [64]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.ha.shoal-cache-bootstrap [111]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-corba-plugin [51]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.apache.felix.fileinstall [280]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.gf-web-connector [88]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.deployment-client [67]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.google.guava [108]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.scattered-archive-api [236]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.api [113]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.apache.felix.gogo.command [281]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.enterprise.deploy-api [135]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.resource-api [144]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-web-plugin [60]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.core.glassfish-extra-jre-packages [98]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.tyrus.container-glassfish-cdi [252]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.jms.admin [181]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.tyrus.container-grizzly [253]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.oracle [217]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.gf-weld-connector [89]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.registration.glassfish-registration [103]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.internal-api [120]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.gmbal.gmbal [105]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.connectors.internal-api [44]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.config-types [41]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.ext.jersey-mvc [178]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.webservices.jsr109-impl [189]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.websecurity [268]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.ejb.security [75]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.util [8]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.jspcaching-connector [188]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.jsf-connector [185]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-community-branding-plugin [49]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.ha.ha-file-store [110]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.ibm.jbatch-ri-spi [35]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.core.jersey-server [179]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.management.j2ee-api [142]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.core.glassfish [104]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.concurrent.connector [38]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.persistence [143]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.ha [265]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.external.cglib [22]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.apache.felix.bundlerepository [208]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.glassfish-ee-api [97]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.jaspic.provider.framework [126]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.jpa-container [184]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.registration.registration-impl [231]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.transaction-api [152]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.web.javax.servlet.jsp [149]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.jpa.modelgen [215]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.glassfish-api [90]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [jackson-core-asl [122]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.tyrus.websocket-core [258]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.naming [266]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-jpa [291]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.flashlight.flashlight-extra-jdk-packages [77]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.javax.enterprise.concurrent [134]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.gf-restadmin-connector [87]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.glassfish-naming [101]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.media.jersey-media-json-jackson [170]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.model [31]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security [240]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.jms.core [182]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-jts-plugin [57]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [woodstox-core-asl [276]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.osgi-platforms.osgi-cli-remote [219]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.ejb.ejb-container [72]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.metro.webservices-api-osgi [3]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.weld-integration-fragment [273]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.core [211]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.core.jersey-common [164]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.simple-glassfish-api [244]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.jdbc.config [160]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.external.j-interop-repackaged [121]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.shoal.cache [241]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.jstl-connector [190]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.core.kernel [193]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.core [7]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-web-container [293]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-cdi [285]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jsonp-jaxrs [187]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.external.management-api [199]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.batch.glassfish-batch-commands [91]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.media.jersey-media-sse [175]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.ext.jersey-bean-validation [162]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-ejb-plugin [53]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-common-full-plugin [47]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-concurrent-plugin [50]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-common [48]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.tyrus.spi [257]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.config-api [40]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.ee [238]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.webservices.metro-glue [200]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.loadbalancer.load-balancer-admin [197]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [jackson-jaxrs [123]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.jms.gf-jms-injection [84]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.common [68]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.jms-api [139]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.corba.glassfish-corba-csiv2-idl [93]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.pfl.pfl-dynamic [226]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.osgi-resource-locator [4]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.dbws [212]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.loadbalancer.gf-load-balancer-connector [86]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.containers.glassfish.jersey-gf-ejb [169]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.tyrus.container-servlet [254]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.cli [260]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.external.jmxremote_optional-repackaged [183]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.grizzly.glassfish-grizzly-extra-all [99]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.class-model [23]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.pfl.pfl-tf-tools [227]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.javaee-full [70]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.media.jersey-media-multipart [174]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.webservices.security [272]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.annotation-api [1]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.resources.javamail-runtime [129]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.moxy [216]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.osgi-adapter [218]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.ws.rs-api [154]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.sun.pkg.client [229]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.sse [267]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.rest-client [234]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.cli [6]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.servlet-api [147]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.glue [263]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.ejb.gf-ejb-connector [82]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.amx-core [9]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.amx-javaee [10]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-jms-plugin [56]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.gui-plugin-common [264]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-cluster-plugin [46]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.concurrent.impl [39]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.cluster.common [25]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.locator [115]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.ibm.jbatch-ri-runtime [36]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.osgi-platforms.osgi-container [220]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.jboss.weld.osgi-bundle [275]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.runlevel [116]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.sun.el.javax.el [132]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.apache.felix.scr [284]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.corba.glassfish-corba-internal-api [94]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.external.ldapbp-repackaged [195]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.cluster.gms-adapter [106]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.connectors.runtime [45]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.servlet.jsp.jstl-api [150]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.external.javax.inject [137]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-jpa-extension [221]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.annotation-framework [11]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.external.trilead-ssh2-repackaged [250]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.external.ant [12]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.core.jersey-client [163]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.javaee-core [69]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.jdbc.admin [159]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.orb.iiop [207]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.appclient.gf-client-module [80]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-ejb-lite-plugin [52]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.container-common [61]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-plugin-service [58]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [GlassFish-Application-Common-Module [14]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.orb.connector [205]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.containers.jersey-container-servlet [167]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.external.bean-validator-cdi [20]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.ssl-impl [246]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-http [288]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.grizzly.nucleus-grizzly-all [203]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.ejb-api [131]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.xml.registry-api [155]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.ha.shoal-cache-store [112]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.apache.felix.gogo.runtime [282]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.cluster.admin [24]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.connectors.inbound-runtime [43]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.resources.connector [232]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.utils [117]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.ejb.ejb-full-container [73]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.shoal.gms-api [242]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.core [62]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.enterprise.concurrent-api [133]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.pfl.pfl-tf [228]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.resourcebase.resources.nucleus-resources [204]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.resources.javamail-connector [128]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.appclient.server.appclient-connector [15]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.appclient.server.appclient-server-core [16]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.appclient.acc-config [5]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.interceptor-api [138]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.core.javaee-kernel [127]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.stats77 [247]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-updatecenter-plugin [59]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.pfl.pfl-basic-tools [224]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.websocket-api [153]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.hk2.hk2 [118]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.common.util [37]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.shoal.gms-impl [243]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-jdbc [290]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.tyrus.core [255]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.pfl.pfl-basic [225]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.tyrus.server [256]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.appclient.security [17]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.cluster.ssh [26]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.xml.rpc-api [156]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.rest-service [235]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.external.antlr-repackaged [13]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.connectors.work-management [277]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.jvnet.mimepull [201]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.batch.glassfish-batch-connector [92]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.jdbc.runtime [161]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.monitoring-core [202]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-ee-resources [286]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.external.schema2beans-repackaged [237]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.media.jersey-media-moxy [173]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.cluster.gms-bootstrap [107]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.sun.mail.javax.mail [141]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.generator-database [29]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.webservices.soap-tcp [245]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.sun.jsftemplating [186]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.internal-api [30]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.apache.felix.eventadmin [279]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.embed-api [262]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.transaction.internal-api [249]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.tyrus.client [251]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.jpa [213]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.glassfish-oracle-jdbc-driver-packages [102]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.support-ejb [32]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.media.jersey-media-json-jettison [171]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [jaxb-api [2]], State = [READY]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.core.logging [198]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.webservices.connector [269]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.ext.jersey-mvc-jsp [177]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.metro.webservices-extra-jdk-packages [270]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.war-util [259]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.jersey-mvc-connector [176]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.apache.felix.gogo.shell [283]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.security.inmemory.jacc.provider [119]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.ha.ha-api [109]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.media.jersey-media-json-processing [172]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.fighterfish.osgi-jta [292]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.core [261]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.external.libpam4j-repackaged [196]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.apache.felix.configadmin [278]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.support-sqlstore [33]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [jackson-mapper-asl [124]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.dol [71]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.ejb-mapping [27]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.console-jdbc-plugin [55]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.sun.xml.bind [158]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admin.launcher [194]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.flashlight.framework [78]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.pfl.pfl-asm [223]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.javax.faces [136]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.security.jacc-api [146]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.asm [210]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.containers.glassfish.jersey-gf-cdi [168]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.jms.gf-jms-connector [83]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.corba.glassfish-corba-omgapi [95]], State = [RESOLVED]]
Registered Module: [OSGiModuleImpl:: Bundle = [jackson-xc [125]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.antlr [209]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.ejb.internal-api [74]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.codehaus.jettison.jettison [180]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [com.sun.xml.bind.extra [157]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.autodeploy [66]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.utility [34]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.connector.gf-admingui-connector [79]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.containers.jersey-container-grizzly2-http [165]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.connectors.gf-connectors-connector [81]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.servlet.jsp-api [148]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.weld-integration [274]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.admin [65]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.jpa.jpql [214]], State = [NEW]]

Found populator: com.sun.enterprise.v3.server.GFDomainXml

#!## LogManagerService.postConstruct : rootFolder=E:\NanjingJUG\qcon_fighterfish\glassfish-4.0\glassfish4\glassfish
#!## LogManagerService.postConstruct : templateDir=E:\NanjingJUG\qcon_fighterfish\glassfish-4.0\glassfish4\glassfish\lib\templates
#!## LogManagerService.postConstruct : src=E:\NanjingJUG\qcon_fighterfish\glassfish-4.0\glassfish4\glassfish\lib\templates\logging.properties
#!## LogManagerService.postConstruct : dest=E:\NanjingJUG\qcon_fighterfish\glassfish-4.0\glassfish4\glassfish\domains\domain1\config\logging.properties
Completed shutdown of GlassFish runtime
We are in non-embedded mode, so org.glassfish.main.core.glassfish [104] has nothing to do.
Nov 19, 2013 3:45:22 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
情報: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Nov 19, 2013 3:45:22 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Nov 19, 2013 3:45:22 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Nov 19, 2013 3:45:31 PM OSGiModuleImpl start
FINER: Ignoring start of bundle org.glassfish.main.admin.config-api [40] as it is in ACTIVE state
Nov 19, 2013 3:45:31 PM OSGiModuleImpl start
FINER: Ignoring start of bundle org.glassfish.main.admin.config-api [40] as it is in ACTIVE state
Nov 19, 2013 3:45:31 PM OSGiModuleImpl start
FINER: Ignoring start of bundle org.glassfish.main.admin.config-api [40] as it is in ACTIVE state
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: java.lang.NoClassDefFoundError: java/util/LinkedList
at org.glassfish.hk2.api.MultiException.<init>(MultiException.java:62)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneJob.fail(CurrentTaskFuture.java:496)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneJob.access$2000(CurrentTaskFuture.java:430)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:677)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:660)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneJob.run(CurrentTaskFuture.java:490)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpAllTheWay.go(CurrentTaskFuture.java:362)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpAllTheWay.access$100(CurrentTaskFuture.java:279)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture.go(CurrentTaskFuture.java:113)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.proceedTo(AsyncRunLevelContext.java:296)
at org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl.proceedTo(RunLevelControllerImpl.java:66)
at com.sun.enterprise.v3.server.AppServerStartup.proceedTo(AppServerStartup.java:532)
at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:313)
at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:226)
at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:217)
at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl.start(EmbeddedOSGiGlassFishImpl.java:75)
at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:71)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
... 6 more

Command start-domain failed.

[GF 4.0.1 scene]
Here, I used glassfish-4.0.1-b04-11_16_2013 nightly building version. while starting GF domain, cmd shell always display

"Waiting for domain1 to start ................................................................................................"

Then, after a long time, the following is displayed and in server.log, no any valuable info.

>asadmin start-domain
Waiting for domain1 to start ............................................................................................................................................................................................................................................................................................................................................................................
serverNoStart
Command start-domain failed.

However, this issue can not happen in GF 3.1.2.2.

From 4.0 scene, I felt that this seems to be related to HK2 layer. So, firstly requesting HK2 team to investigate it.






[GLASSFISH-20948] GlasFish HK2 load class have concurent problem, NullPointException occured while loading class. Created: 09/Jan/14  Updated: 27/Jan/14

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: future release
Fix Version/s: None

Type: Bug Priority: Major
Reporter: hapinwater Assignee: phil.zampino
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

GlassFish 3.1.2



 Description   

GlasFish HK2 load class have concurent problem, NullPointException occured while loading class:
Exception while visiting org/glassfish/gjc/spi/jdbc30/ProfiledConnectionWrapper30.class of size 11160
java.lang.NullPointerException
at org.glassfish.hk2.classmodel.reflect.impl.TypesImpl.getType(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor.visit(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.util.JarArchive.onSelectedEntries(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive.parse(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive.onSelectedEntries(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Unknown Source)
at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)

The class org.glassfish.hk2.classmodel.reflect.impl.TypesCtr's getHolder method may have concurrent problem, <code>if (unknownTypesStorage.containsKey(name)) </code> is not synchronized, but <code>typeProxy = unknownTypesStorage.remove(name);</code> is synchronized:
synchronized (unknownTypesStorage)

{ typeProxy = unknownTypesStorage.remove(name); }
if mutliply threads visit the same class, typeProxy = unknownTypesStorage.remove(name); may return null, caulse NullException occures.

public <T extends Type> TypeProxy<Type> getHolder(String name, Class<T> type) {
if (name.equals("java.lang.Object")) return null;
ConcurrentMap<String, TypeProxy<Type>> typeStorage = storage.get(type);
if (typeStorage==null) {
typeStorage = new ConcurrentHashMap<String, TypeProxy<Type>>();
ConcurrentMap<String, TypeProxy<Type>> old = storage.putIfAbsent(type, typeStorage);
if (old!=null) { // some other thread got to set that type storage before us, let's use it typeStorage=old; }
}
TypeProxy<Type> typeProxy = typeStorage.get(name);
if (typeProxy ==null) {
// in our unknown type pool ?
if (unknownTypesStorage.containsKey(name)) {
synchronized (unknownTypesStorage) { typeProxy = unknownTypesStorage.remove(name); }

if (typeProxy!=null) {
TypeProxy<Type> old = typeStorage.putIfAbsent(name, typeProxy);
if (old!=null)

{ typeProxy = old; }

}
} else {
typeProxy = new TypeProxy<Type>(null, name);
TypeProxy<Type> old = typeStorage.putIfAbsent(name, typeProxy);
if (old==null)

{ nonVisited.push(typeProxy); }

else

{ typeProxy=old; }

}
}
return typeProxy;
}

NullPorintException occures on org.glassfish.hk2.classmodel.reflect.impl.TypesImpl's getType method,<code>TypeProxy<Type> typeProxy = types.getHolder(name, requestedType) </code> may return null:
public TypeImpl getType(int access, String name, TypeProxy parent) {
Class<? extends Type> requestedType = getType(access);

TypeProxy<Type> typeProxy = types.getHolder(name, requestedType);
synchronized(typeProxy)

{ final Type type = typeProxy.get(); //... omit }

}



 Comments   
Comment by guojje [ 09/Jan/14 ]

<pre class="java">
public
</pre>

Comment by reza_rahman [ 15/Jan/14 ]

Can you kindly outline the steps to reproduce?

Comment by phil.zampino [ 27/Jan/14 ]

This issue appears to have been addressed in later builds of GlassFish 3.1.2. Could you try the latest 3.1.2.2 to confirm if it resolves the problem you're experiencing?





[GLASSFISH-20298] Loading of HK2 cache data slows down server initialization Created: 12/Apr/13  Updated: 19/Sep/14

Status: Reopened
Project: glassfish
Component/s: hk2
Affects Version/s: 4.0_b84_RC1
Fix Version/s: 4.1

Type: Bug Priority: Major
Reporter: Tom Mueller Assignee: mtaube
Resolution: Unresolved Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
GLASSFISH-20350 Make DescriptorImpl Externalizable in... Sub-task Closed mtaube  
Tags: devx_web

 Description   

During server startup, the HK2 OSGi adapter reads in a fairly large cache file in the ModuleDefinitionCacheSingleton.loadCachedData method. Typically this is about 400KB of serialized module definition data. This takes anywhere from 100-400 ms and while the server is doing this, it is doing nothing else. The code is started via the bundle start method of the osgi-adapter.jar file.

An idea for improving server start time is to move the reading of the cache file to another thread that runs in parallel with some other initialization work that the server is doing. For example, if it would be possible to initialize just the OSGi bundle(s) that are needed to read this cache first, start the cache-reading thread, and then start then have Felix initialize the rest of the bundles. Then, when the bundles are all initialized, the code that need the cache would already have it available.

Or, if the cache were constructed purely from Java SE objects, then the cache could be read into memory without having to initialize any OSGi bundle.



 Comments   
Comment by Tom Mueller [ 17/Apr/13 ]

I've measured the time required for loadCachedData in both 4.0 and 3.1.2. This is for a subsequent restart, and is an average of 5 runs on a MBP:

4.0: 424 ms ("Felix" start time is 2726 ms), inhabitants size = 516415
3.1.2: 194 ms ("Felix start time is 1615 ms), inhabitants size = 371748

Comment by Tom Mueller [ 30/Apr/13 ]

Note that the only thing fixed here is the GLASSFISH-20350 subtask which reduced the time to read the cache by about 100 ms. This change did not move the cache reading to a parallel thread. It also did not restore the cache reading time to what it was in 3.1.2.

Comment by Tom Mueller [ 01/May/13 ]

Retargeting for 4.0.1 because we have already done what we plan to do in this area for 4.0 via GLASSFISH-20350.





[GLASSFISH-19514] Exceptions during GF start Created: 10/Jan/13  Updated: 02/Sep/13

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: 3.1.2.2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: cobre420 Assignee: Mahesh Kannan
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Solaris 10


Tags: exception, glassfish, glassfish-3-1-2-2, startup

 Description   

Starting GF logs errors

[#|2013-01-09T14:53:31.596+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=16;_ThreadName=Thread-2;|Exception while visiting netscape/applet/DerivedAppletFrame.class of size 0
java.lang.ArrayIndexOutOfBoundsException: 8
	at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:362)
	at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:171)
	at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:133)
	at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:348)
	at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:70)
	at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:307)
	at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:296)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
|#]

[#|2013-01-09T14:53:31.611+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=16;_ThreadName=Thread-2;|Exception while visiting netscape/security/PrivilegeManager.class of size 0
java.lang.ArrayIndexOutOfBoundsException: 8
	at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:362)
	at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:171)
	at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:133)
	at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:348)
	at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:70)
	at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:307)
	at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:296)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
|#]

[#|2013-01-09T14:53:31.615+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=16;_ThreadName=Thread-2;|Exception while visiting com/ms/security/PolicyEngine.class of size 0
java.lang.ArrayIndexOutOfBoundsException: 8
	at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:362)
	at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:171)
	at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:133)
	at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:348)
	at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:70)
	at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:307)
	at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:296)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
|#]

[#|2013-01-09T14:53:33.009+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=16;_ThreadName=Thread-2;|Exception while visiting netscape/applet/DerivedAppletFrame.class of size 0
java.lang.ArrayIndexOutOfBoundsException
|#]

[#|2013-01-09T14:53:33.071+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=16;_ThreadName=Thread-2;|Exception while visiting netscape/security/PrivilegeManager.class of size 0
java.lang.ArrayIndexOutOfBoundsException
|#]

[#|2013-01-09T14:53:33.073+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=16;_ThreadName=Thread-2;|Exception while visiting com/ms/security/PolicyEngine.class of size 0
java.lang.ArrayIndexOutOfBoundsException
|#]


 Comments   
Comment by kumara [ 10/Jan/13 ]

Do you have more information on which jar file contains the classes netscape/security/PrivilegeManager.class and com/ms/security/PolicyEngine.class. Are these signed jar files?

Comment by cobre420 [ 11/Jan/13 ]

There is one application jar (Oracle waveset) in which are these classes. This jars are not signed. Does signin it will resolve this problem?

Comment by kumara [ 15/Jan/13 ]

Signing is unlikely to fix this issue. This needs further investigation but the application server is going to start (and applications will load) even with this exception recorded in the log file. Is it possible to attach a small test case to reproduce this.

Comment by realdocsnyder [ 02/Sep/13 ]

@cobre420

I've got the same problem when starting glassfish 3.1.22 with netbeans 7.2.1 for IDM (Exception while visiting netscape/applet/DerivedAppletFrame.class of size 0).

Did you resolve your problem?





[GLASSFISH-19690] Remove org.glassfish.servlet.habitat from ServletContext Created: 18/Feb/13  Updated: 19/Sep/14

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: 4.0_b76_EE7MS5
Fix Version/s: 4.1

Type: Bug Priority: Major
Reporter: jwells Assignee: jwells
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The GlassFish default HK2 ServiceLocator is currently being put into every ServletContext with name org.glassfish.servlet.habitat. The GlassFish default ServiceLocator contains services that servlets should not have access to and hence this field of the servlet context will be removed.

HABITAT_ATTRIBUTE is defined in ./appserver/web/web-glue/src/main/java/com/sun/enterprise/web/Constants.java and the ServiceLocator is put into the servlet context in ./appserver/web/web-glue/src/main/java/com/sun/enterprise/web/WebModuleListener.java. I will not detail the places in the code that I found that are using this feature, but they will be changed to either use the ApplicationScoped service locator if they do not need internal GlassFish services, or to using Globals.getDefaultHabitat() if they do.

Rather than giving servlets the default HK2 ServiceLocator, every application will have access to its own application scoped ServiceLocator which can be found at the JNDI name "java:app/hk2/ServiceLocator". No GlassFish internal services will be available to this ServiceLocator.






[GLASSFISH-20600] Looks like HK2 doesn't recognize parameters described like getXYParameter()/setXYParameter(String) Created: 01/Jun/13  Updated: 03/Jun/13

Status: Open
Project: glassfish
Component/s: hk2
Affects Version/s: 4.0_b89_RC5
Fix Version/s: None

Type: Bug Priority: Major
Reporter: oleksiys Assignee: jwells
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Following configuration object doesn't seem to work properly:

@Configured
public interface Transport extends ConfigBeanProxy, PropertyBag {
.....
    @Attribute(dataType = String.class)
    String getIOStrategy();

    void setIOStrategy(String ioStrategy);
......
}

when I try to create an instance of this interface like:

        ConfigSupport.apply(new SingleConfigCode<Transports>() {
            @Override
            public Object run(final Transports transports) throws TransactionFailure {
                final Transport spdyTransport =
                        transports.createChild(Transport.class);
                spdyTransport.setName(SPDY_TRANSPORT_NAME);
                spdyTransport.setIOStrategy(strategyName);    <------ FAILS HERE
                
                transports.getTransport().add(spdyTransport);
                
                return spdyTransport;
            }
        }, networkConfig.getTransports());

the code fails with HV0000XXX log (unfortunately I removed it) complaining that property ioStrategy can't be found on a path.

At the same time when I call

spdyTransport.getIOStrategy();

the code properly returns null.

It also works once I change the method name to set/getIoStrategy()






[GLASSFISH-21372] jersey 2.0 :: for cdi injection, is beans.xml mandatory? Created: 09/Jun/15  Updated: 19/Aug/15

Status: Open
Project: glassfish
Component/s: hk2, jax-rs
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: vikramalvaj Assignee: jwells
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

glassfish 4.1



 Description   

Resource class

public class UploadFileService {

@Inject public Logger logger;

@POST
@Path("/upload")
@Consumes(MediaType.MULTIPART_FORM_DATA)
public Response uploadFile(
@FormDataParam("file") InputStream uploadedInputStream,
@FormDataParam("file") FormDataContentDisposition fileDetail) {
}
}
Injecting :: Logger class

@Dependent
public final class Loggers {

@Produces
public static final Logger getLogger(final InjectionPoint injectionPoint) {
if (injectionPoint == null)

{ throw new IllegalArgumentException("injectionPoint", new NullPointerException("injectionPoint")); }

}
Injection perfectly works on including beans.xml at

*.war\WEB-INF\classes\META-INF\beans.xml

But is it not beans.xml optional in jersey 2.0 ?

Error reported in the absence of beans.xml

org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl(requiredType=Logger,parent=UploadFileService,
qualifiers={},position=-1,optional=false,self=false,unqualified=null,1642832267)
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:74)
at org.jvnet.hk2.internal.Utilities.justInject(Utilities.java:947)
at org.jvnet.hk2.internal.ServiceLocatorImpl.inject(ServiceLocatorImpl.java:902)
at org.glassfish.jersey.gf.cdi.internal.CdiComponentProvider$CdiFactory$2.getInstance(CdiComponentProvider.java:245)
at org.glassfish.jersey.gf.cdi.internal.CdiComponentProvider$CdiFactory.provide(CdiComponentProvider.java:189)



 Comments   
Comment by vikramalvaj [ 10/Jun/15 ]

My concern is ...Why an empty beans.xml file is required in this particular scenario when its optional in jersey 2.0 ?

Comment by jjsnyder83 [ 10/Jun/15 ]

The stack trace indicates that this is an hk2 exception not a cdi exception.

Comment by vikramalvaj [ 19/Aug/15 ]

Any update on this issue ?





Generated at Sat Aug 29 13:38:08 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.