[jira] [Commented] (SLING-4755) DiscoveryService isn't shutdown aware

2015-06-09 Thread Carsten Ziegeler (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14578644#comment-14578644
 ] 

Carsten Ziegeler commented on SLING-4755:
-

[~egli] I guess we have potentially two options, either the discovery service 
calls the handlers async or the implementation of the topology event handler 
must return as quickly as possible. We have the latter in the javadocs of the 
topology listener, so I guess that's the way to go. However, a malicious 
implementation of such a listener can block everything, so I'm wondering 
whether we should do both?

 DiscoveryService isn't shutdown aware
 -

 Key: SLING-4755
 URL: https://issues.apache.org/jira/browse/SLING-4755
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Discovery Impl 1.0.10
 Environment: AEM 6 SP2
Reporter: Ilyas Türkben
 Fix For: Discovery Impl 1.1.6


 DiscoveryServiceImpl seems to perform write operations and require repository 
 reference during a shutdown and it blocks the shutdown for a unpredictable 
 time(here, almost 26 minutes).
 *Error log*
 {code:java}
 26.05.2015 16:54:19.249 *INFO* [Thread-60] org.apache.sling.discovery.impl 
 Service [org.apache.sling.discovery.impl.DiscoveryServiceImpl,4131] 
 ServiceEvent UNREGISTERING
 26.05.2015 16:55:20.756 *INFO* [pool-6-thread-1] com.adobe.granite.repository 
 Service [5185] ServiceEvent REGISTERED
 26.05.2015 17:21:40.298 *INFO* [FelixStartLevel] com.adobe.granite.repository 
 Service [5185] ServiceEvent UNREGISTERING
 {code}
 *Thread dump for Thread-60*
 {code:java}
 Thread-60 daemon prio=10 tid=0x7f773c5b8000 nid=0x26e1 runnable 
 [0x7f783b0ea000]
java.lang.Thread.State: RUNNABLE
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
   at org.bson.io.PoolOutputBuffer.pipe(PoolOutputBuffer.java:153)
   at com.mongodb.OutMessage.pipe(OutMessage.java:236)
   at com.mongodb.DBPort$1.execute(DBPort.java:140)
   at com.mongodb.DBPort$1.execute(DBPort.java:135)
   at com.mongodb.DBPort.doOperation(DBPort.java:164)
   - locked 0x00050a8eee30 (a com.mongodb.DBPort)
   at com.mongodb.DBPort.call(DBPort.java:135)
   at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:292)
   at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:271)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66)
   at com.mongodb.DBCursor._check(DBCursor.java:458)
   at com.mongodb.DBCursor._hasNext(DBCursor.java:546)
   at com.mongodb.DBCursor.hasNext(DBCursor.java:571)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:500)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:437)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildDocs(DocumentNodeStore.java:906)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildren(DocumentNodeStore.java:843)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:799)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:796)
   at 
 com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
   at 
 com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
   at 
 com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
   at 
 com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
   - locked 0x000768234398 (a 
 com.google.common.cache.LocalCache$StrongAccessEntry)
   at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
   at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
   at 
 com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.getChildren(DocumentNodeStore.java:796)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.getChildNodeCount(DocumentNodeState.java:183)
   at 
 org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.getChildNodeCount(ModifiedNodeState.java:198)
   at 
 org.apache.jackrabbit.oak.plugins.memory.MutableNodeState.getChildNodeCount(MutableNodeState.java:265)
   at 
 org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.getChildNodeCount(MemoryNodeBuilder.java:293)
   at 
 

[jira] [Commented] (SLING-4755) DiscoveryService isn't shutdown aware

2015-06-09 Thread Stefan Egli (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14578673#comment-14578673
 ] 

Stefan Egli commented on SLING-4755:


Agreed, discovery could also do that. The best place for this would be 
discovery.common's ViewStateManager so that all discovery providers can make 
use of it. Thing with that is that discovery.impl must yet be ported to the 
ViewStateManager.. Otherwise - as a quicker path - this could be applied to 
DiscoveryServiceImpl directly..

Which brings me to an alternative: assuming SLING-4683 would fix the problem as 
well (does it?), what's the timing of releasing eventing 3.7.0 ? If that's not 
too far out, then this might also be a feasible approach. If it's not planned 
so soon however, I'll look into either doing it in discovery and/or in 
ViewStateManager.

 DiscoveryService isn't shutdown aware
 -

 Key: SLING-4755
 URL: https://issues.apache.org/jira/browse/SLING-4755
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Discovery Impl 1.0.10
 Environment: AEM 6 SP2
Reporter: Ilyas Türkben
 Fix For: Discovery Impl 1.1.6


 DiscoveryServiceImpl seems to perform write operations and require repository 
 reference during a shutdown and it blocks the shutdown for a unpredictable 
 time(here, almost 26 minutes).
 *Error log*
 {code:java}
 26.05.2015 16:54:19.249 *INFO* [Thread-60] org.apache.sling.discovery.impl 
 Service [org.apache.sling.discovery.impl.DiscoveryServiceImpl,4131] 
 ServiceEvent UNREGISTERING
 26.05.2015 16:55:20.756 *INFO* [pool-6-thread-1] com.adobe.granite.repository 
 Service [5185] ServiceEvent REGISTERED
 26.05.2015 17:21:40.298 *INFO* [FelixStartLevel] com.adobe.granite.repository 
 Service [5185] ServiceEvent UNREGISTERING
 {code}
 *Thread dump for Thread-60*
 {code:java}
 Thread-60 daemon prio=10 tid=0x7f773c5b8000 nid=0x26e1 runnable 
 [0x7f783b0ea000]
java.lang.Thread.State: RUNNABLE
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
   at org.bson.io.PoolOutputBuffer.pipe(PoolOutputBuffer.java:153)
   at com.mongodb.OutMessage.pipe(OutMessage.java:236)
   at com.mongodb.DBPort$1.execute(DBPort.java:140)
   at com.mongodb.DBPort$1.execute(DBPort.java:135)
   at com.mongodb.DBPort.doOperation(DBPort.java:164)
   - locked 0x00050a8eee30 (a com.mongodb.DBPort)
   at com.mongodb.DBPort.call(DBPort.java:135)
   at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:292)
   at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:271)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66)
   at com.mongodb.DBCursor._check(DBCursor.java:458)
   at com.mongodb.DBCursor._hasNext(DBCursor.java:546)
   at com.mongodb.DBCursor.hasNext(DBCursor.java:571)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:500)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:437)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildDocs(DocumentNodeStore.java:906)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildren(DocumentNodeStore.java:843)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:799)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:796)
   at 
 com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
   at 
 com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
   at 
 com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
   at 
 com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
   - locked 0x000768234398 (a 
 com.google.common.cache.LocalCache$StrongAccessEntry)
   at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
   at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
   at 
 com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.getChildren(DocumentNodeStore.java:796)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.getChildNodeCount(DocumentNodeState.java:183)
   at 
 org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.getChildNodeCount(ModifiedNodeState.java:198)
   at 
 

SLING-2920 / programmatically adjusting the filter order via service.ranking

2015-06-09 Thread Olaf Otto
Hi all,

I am implementing a programmatic solution to modify the ranking of legacy 
filters with regard to the changed filter order in Sling Engine 2.3.3 
(https://issues.apache.org/jira/browse/SLING-2920). I couldn't really figure 
out a clean way to alter the service properties of arbitrary (including 
on-managed) filter components programmatically, but I got it working with a bit 
of reflection. That said, here is my solution sketch (it works) - does anyone 
know of a cleaner way to adjust these properties at runtime?

@Component(immediate = true)
public class SlingEngineFilterOrderAdjuster {
private static final String PROPERTY_RANKING_ADJUSTED = 
aem61.ranking.adjusted;
private final Logger logger = LoggerFactory.getLogger(getClass());
private ServiceTracker tracker;

@Activate
@SuppressWarnings(unchecked)
protected void activate(ComponentContext context) {
Filter filter;
try {
filter = context.getBundleContext().createFilter(
( +
(objectClass= + 
javax.servlet.Filter.class.getName() + )( +
|(component.name=my.package.namesppace.*)( + 
BUNDLE_SYMBOLICNAME + =my.bundle.namespace.*;
} catch (Exception e) {
logger.error(e.getMessage(), e);
return;
}

tracker = new ServiceTracker(context.getBundleContext(), filter, null) {
@Override
public Object addingService(ServiceReference reference) {
if (reference.getProperty(PROPERTY_RANKING_ADJUSTED) != null) {
return super.addingService(reference);
}

try {
Method getRegistration = 
reference.getClass().getDeclaredMethod(getRegistration, (Class[]) null);
getRegistration.setAccessible(true);
ServiceRegistration registration = (ServiceRegistration) 
getRegistration.invoke(reference);

DictionaryString, Object properties = new Hashtable();
for (String key : reference.getPropertyKeys()) {
if (SERVICE_RANKING.equals(key)) {
Integer value = (Integer) 
reference.getProperty(key);
properties.put(key, -1 * value);
} else {
properties.put(key, reference.getProperty(key));
}
properties.put(PROPERTY_RANKING_ADJUSTED, true);
}
registration.setProperties(properties);

} catch (Exception e) {
logger.error(e.getMessage(), e);
}

return super.addingService(reference);
}
};

tracker.open(true);
}

@Deactivate
protected void deactivate() {
tracker.close();
}


Regards,
Olaf


[jira] [Created] (SLING-4790) Removal of artifacts from inherited model is not possible

2015-06-09 Thread Carsten Ziegeler (JIRA)
Carsten Ziegeler created SLING-4790:
---

 Summary: Removal of artifacts from inherited model is not possible
 Key: SLING-4790
 URL: https://issues.apache.org/jira/browse/SLING-4790
 Project: Sling
  Issue Type: Bug
  Components: Maven Plugins and Archetypes, Tooling
Affects Versions: Slingstart Maven Plugin 1.1.0, Sling Provisioning Model 
1.1.0
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Sling Provisioning Model 1.2.0, Slingstart Maven Plugin 
1.1.2


Currently an artifact (or configuration) can't be removed from an inherited 
model as the local model is read and merged first which removes the :remove run 
mode from the read model. Afterwards. the dependencies are read and the local 
model is merged into this. However as the :remove run mode is already gone, 
it's not possible to remove anything from inherited models



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-4755) DiscoveryService isn't shutdown aware

2015-06-09 Thread Carsten Ziegeler (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14578777#comment-14578777
 ] 

Carsten Ziegeler commented on SLING-4755:
-

SLING-4683 does not fix the problem - still work is done while processing the 
event. I think we should fix this. Apart from that we can (and should) release 
3.7.0. So I think once this issue is solved, we can go

 DiscoveryService isn't shutdown aware
 -

 Key: SLING-4755
 URL: https://issues.apache.org/jira/browse/SLING-4755
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Discovery Impl 1.0.10
 Environment: AEM 6 SP2
Reporter: Ilyas Türkben
 Fix For: Discovery Impl 1.1.6


 DiscoveryServiceImpl seems to perform write operations and require repository 
 reference during a shutdown and it blocks the shutdown for a unpredictable 
 time(here, almost 26 minutes).
 *Error log*
 {code:java}
 26.05.2015 16:54:19.249 *INFO* [Thread-60] org.apache.sling.discovery.impl 
 Service [org.apache.sling.discovery.impl.DiscoveryServiceImpl,4131] 
 ServiceEvent UNREGISTERING
 26.05.2015 16:55:20.756 *INFO* [pool-6-thread-1] com.adobe.granite.repository 
 Service [5185] ServiceEvent REGISTERED
 26.05.2015 17:21:40.298 *INFO* [FelixStartLevel] com.adobe.granite.repository 
 Service [5185] ServiceEvent UNREGISTERING
 {code}
 *Thread dump for Thread-60*
 {code:java}
 Thread-60 daemon prio=10 tid=0x7f773c5b8000 nid=0x26e1 runnable 
 [0x7f783b0ea000]
java.lang.Thread.State: RUNNABLE
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
   at org.bson.io.PoolOutputBuffer.pipe(PoolOutputBuffer.java:153)
   at com.mongodb.OutMessage.pipe(OutMessage.java:236)
   at com.mongodb.DBPort$1.execute(DBPort.java:140)
   at com.mongodb.DBPort$1.execute(DBPort.java:135)
   at com.mongodb.DBPort.doOperation(DBPort.java:164)
   - locked 0x00050a8eee30 (a com.mongodb.DBPort)
   at com.mongodb.DBPort.call(DBPort.java:135)
   at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:292)
   at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:271)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66)
   at com.mongodb.DBCursor._check(DBCursor.java:458)
   at com.mongodb.DBCursor._hasNext(DBCursor.java:546)
   at com.mongodb.DBCursor.hasNext(DBCursor.java:571)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:500)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:437)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildDocs(DocumentNodeStore.java:906)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildren(DocumentNodeStore.java:843)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:799)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:796)
   at 
 com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
   at 
 com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
   at 
 com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
   at 
 com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
   - locked 0x000768234398 (a 
 com.google.common.cache.LocalCache$StrongAccessEntry)
   at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
   at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
   at 
 com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.getChildren(DocumentNodeStore.java:796)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.getChildNodeCount(DocumentNodeState.java:183)
   at 
 org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.getChildNodeCount(ModifiedNodeState.java:198)
   at 
 org.apache.jackrabbit.oak.plugins.memory.MutableNodeState.getChildNodeCount(MutableNodeState.java:265)
   at 
 org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.getChildNodeCount(MemoryNodeBuilder.java:293)
   at 
 org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy.prune(ContentMirrorStoreStrategy.java:464)
   at 
 

[jira] [Created] (SLING-4789) Support custom properties in the JNDI context

2015-06-09 Thread Dirk Rudolph (JIRA)
Dirk Rudolph created SLING-4789:
---

 Summary: Support custom properties in the JNDI context
 Key: SLING-4789
 URL: https://issues.apache.org/jira/browse/SLING-4789
 Project: Sling
  Issue Type: Improvement
  Components: JCR
Affects Versions: JCR Registration 1.0.2
Reporter: Dirk Rudolph
Priority: Minor


Currently the JNDI context is generated and populated with the service 
properties of the registration service. Those properties are filtered using a 
whitelist {{java.naming.}}

{code}
if (key.startsWith(java.naming.)) {
env.setProperty(key, (String) props.get(key));
}
{code}

So it is not possible to add custom environment properties that are actually 
used by the JNDI implementation like those defined for simple-jndi: 
{{org.osjava.sj.}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (SLING-4790) Removal of artifacts from inherited model is not possible

2015-06-09 Thread Carsten Ziegeler (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-4790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-4790.
-
Resolution: Fixed

Fixed by adding a new variant of the merge method to the provisioning model 
which keeps the :remove run modes. With this, the local model can be read 
without applying the removals yet. Then the dependencies are read and the local 
model is merged in

 Removal of artifacts from inherited model is not possible
 -

 Key: SLING-4790
 URL: https://issues.apache.org/jira/browse/SLING-4790
 Project: Sling
  Issue Type: Bug
  Components: Maven Plugins and Archetypes, Tooling
Affects Versions: Sling Provisioning Model 1.1.0, Slingstart Maven Plugin 
 1.1.0
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Sling Provisioning Model 1.2.0, Slingstart Maven Plugin 
 1.1.2


 Currently an artifact (or configuration) can't be removed from an inherited 
 model as the local model is read and merged first which removes the :remove 
 run mode from the read model. Afterwards. the dependencies are read and the 
 local model is merged into this. However as the :remove run mode is already 
 gone, it's not possible to remove anything from inherited models



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: [VOTE] Release Apache Sling Content Distribution Core version 0.1.4

2015-06-09 Thread Marius Petria
+1 (non-binding) 

Marius




On 6/5/15, 5:39 PM, Robert Munteanu romb...@apache.org wrote:

+1

Robert

On Thu, Jun 4, 2015 at 1:11 PM, Tommaso Teofili
tommaso.teof...@gmail.com wrote:
 +1 (not binding)

 Tommaso

 2015-06-04 10:47 GMT+02:00 Marius Petria mpet...@adobe.com:

 Hi,

 We solved 4 issues in this release:
 https://issues.apache.org/jira/browse/SLING/fixforversion/12332383

 There are still some outstanding issues:
 https://issues.apache.org/jira/browse/SLING/component/12332383

 Staging repository:
 https://repository.apache.org/content/repositories/orgapachesling-1254/

 You can use this UNIX script to download the release and verify the
 signatures:
 http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh

 Usage:
 sh check_staged_release.sh 1254 /tmp/sling-staging

 Please vote to approve this release:

   [ ] +1 Approve the release
   [ ]  0 Don't care
   [ ] -1 Don't release, because ...

 This majority vote is open for at least 72 hours.





Re: Status of the Apache Sling Default POST Servlets bundle

2015-06-09 Thread Antonio Sanso
hi,

thanks guys for the feedbacks.
So, if everybody agree I will resolve SLING-4223 and try to release Apache 
Sling Default POST Servlets bundle.
Please raise your concerns if you do thing this is troublesome…

regards

antonio

On Jun 8, 2015, at 10:33 PM, Tomek Rękawek tomasz.reka...@cognifide.com wrote:

 Hi,
 
 On Fri, Jun 5, 2015 at 10:50 AM, Bertrand Delacretaz bdelacre...@apache.org
 wrote:
 
 SLING-4223 points to SLING-4537 and SLING-4538 which are both
 resolved, is there more to fix?
 
 
 I don't think there is. The current version of the content loader passes
 all tests and works, even if still can use some clean-up and refactoring as
 Oliver mentioned.
 
 I think SLING-4223 can be marked as resolved (as the task of making the
 content loader extensible has been achieved) and the further refactoring
 (related to the whole module, not only the SLING-4223 part) can be done in
 the linked issues.
 
 Regards,
 Tomek
 
 -- 
 Tomek Rękawek
 Senior Software Engineer
 
 Cognifide Polska Sp. z o.o.
 skype: trekawek
 
 www.cognifide.com



[jira] [Resolved] (SLING-4780) Implement MockBundle.getLastModified

2015-06-09 Thread Robert Munteanu (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-4780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Munteanu resolved SLING-4780.

Resolution: Fixed

Fixed in http://svn.apache.org/r1684448

 Implement MockBundle.getLastModified
 

 Key: SLING-4780
 URL: https://issues.apache.org/jira/browse/SLING-4780
 Project: Sling
  Issue Type: Improvement
  Components: Testing
Affects Versions: Testing OSGi Mock 1.3.0
Reporter: Robert Munteanu
Assignee: Robert Munteanu
 Fix For: Testing OSGi Mock 1.4.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Build failed in Jenkins: sling-trunk-1.7 #1908

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.7/1908/changes

Changes:

[rombert] SLING-4541 - Provide an extensive test suite for the JCR content
loader

Initial cut of tests based on the Sling mocks

[rombert] SLING-4781 - Implement MockBundle.getEntryPaths

MockBundle.getEntryPaths() now looks up resources in the classpath using
getClass().getResource(), much like MockBundle.getEntry().

MockBundle.getEntry() was adjusted to make sure that it works with the
results returned from MockBundle.getEntryPaths().

[rombert] SLING-4780 - Implement MockBundle.getLastModified

[rombert] MockBundleTest - cast once in the @BeforeMethod instead of every test

[rombert] OsgiServiceUtil: clarify exception message when no matching 
references were found

--
[...truncated 2749 lines...]
[INFO] Apache Sling Scripting JavaScript Support . SKIPPED
[INFO] Apache Sling Scripting JSP Support  SKIPPED
[INFO] Apache Sling JSP Tag Library .. SKIPPED
[INFO] Apache Sling JSP Standard Tag Library . SKIPPED
[INFO] Apache Sling Scripting Sightly Engine . SKIPPED
[INFO] Apache Sling Scripting Sightly JavaScript Use Provider  SKIPPED
[INFO] Apache Sling Scripting Sightly Read-Eval-Print Loop Environment  SKIPPED
[INFO] Apache Sling Scripting Sightly Integration Tests Content  SKIPPED
[INFO] Apache Sling Launchpad Base ... SKIPPED
[INFO] Apache Sling Adapter Manager Implementation ... SKIPPED
[INFO] Apache Sling Internationalization Support . SKIPPED
[INFO] Apache Sling Models API ... SKIPPED
[INFO] Apache Sling Models Implementation  SKIPPED
[INFO] Apache Sling XSS Protection Bundle  SKIPPED
[INFO] Apache Sling Launchpad Application Builder  SKIPPED
[INFO] Apache Sling Scripting Sightly Integration Tests .. SKIPPED
[INFO] Apache Sling Scripting Sightly Models Use Provider  SKIPPED
[INFO] Apache Sling Scripting Sightly Reactor  SKIPPED
[INFO] Apache Sling Bundle Resource Provider . SKIPPED
[INFO] Apache Sling Distributed Event Admin .. SKIPPED
[INFO] Apache Sling Discovery API  SKIPPED
[INFO] Apache Sling Discovery Commons Bundle . SKIPPED
[INFO] Apache Sling Resource-Based Discovery Service . SKIPPED
[INFO] Apache Sling Discovery Support Bundle . SKIPPED
[INFO] Apache Sling Discovery Standalone Implementation .. SKIPPED
[INFO] Apache Sling Event Support  SKIPPED
[INFO] Apache Sling Feature Flags  SKIPPED
[INFO] Apache Sling Filesystem Resource Provider . SKIPPED
[INFO] Apache Sling javax.activation bundle .. SKIPPED
[INFO] Apache Sling Service User Mapper .. SKIPPED
[INFO] Apache Sling Settings . SKIPPED
[INFO] Apache Sling Web Console Branding . SKIPPED
[INFO] Apache Sling Web Console Security Provider  SKIPPED
[INFO] Apache Sling Explorer . SKIPPED
[INFO] Apache Sling Health Check Core  SKIPPED
[INFO] Apache Sling Health Check Annotations . SKIPPED
[INFO] Apache Sling Health Check Samples . SKIPPED
[INFO] Apache Sling Health Check Support Components .. SKIPPED
[INFO] Apache Sling Health Check Webconsole Plugin ... SKIPPED
[INFO] Apache Sling Health Check JUnit Bridge  SKIPPED
[INFO] Apache Sling Health Check Integration Tests ... SKIPPED
[INFO] Apache Sling Health Check Reactor POM . SKIPPED
[INFO] Apache Sling Resource Access Security . SKIPPED
[INFO] Apache Sling Resource Access Security Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework API . SKIPPED
[INFO] Apache Sling Validation Framework Core Implementation  SKIPPED
[INFO] Apache Sling Validation Framework Testing Services  SKIPPED
[INFO] Apache Sling Validation Framework Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework Examples  SKIPPED
[INFO] Apache Sling Validation Framework Builder . SKIPPED
[INFO] Apache Sling Models Validation Implementation . SKIPPED
[INFO] Apache Sling Models Integration Tests . SKIPPED
[INFO] Apache Sling Test Tools ... SKIPPED
[INFO] Apache Sling JUnit Core ... SKIPPED
[INFO] Apache Sling JUnit Scriptable Tests Provider .. SKIPPED
[INFO] Apache Sling JUnit Health Checks .. SKIPPED
[INFO] Apache Sling JUnit Remote Tests Runners ... SKIPPED
[INFO] Apache Sling JUnit Performance  SKIPPED
[INFO] Apache Sling Testing Mock Log Configuration ... SKIPPED
[INFO] Apache Sling Testing Resource Resolver Mock ... SKIPPED
[INFO] Apache Sling Pax Exam Utilities ... SKIPPED
[INFO] Apache Sling Sample Server-Side Tests 

[jira] [Commented] (SLING-4541) Provide an extensive test suite for the JCR content loader

2015-06-09 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14579101#comment-14579101
 ] 

Robert Munteanu commented on SLING-4541:


[~bdelacretaz] - I've committed my changes in http://svn.apache.org/r1684450 , 
I needed a basic implementation of SLING-4781 for that. Some notes:

- I too had to bump the jackrabbit-api version, but dramatically this time, up 
to 2.10.1 . This is a requirement of the Sling Mocks as they embed recent 
version of Oak ( and Jackrabbit ) . This needs to be clarified before 
considering the change 'done'
- The test is pretty much an integration test, verifying that the entry point ( 
{{BundleContentLoader}} ) works as expected when configured correctly. As such, 
it covers quite a bit more than the {{DefaultContentCreator}} class
- One test is ignored {{loadXmlAsIs}} as I need to find a proper way to 
unregister the {{XmlReader}} just for that test, but it shows the kind of extra 
testing that can be performed

 Provide an extensive test suite for the JCR content loader
 --

 Key: SLING-4541
 URL: https://issues.apache.org/jira/browse/SLING-4541
 Project: Sling
  Issue Type: Bug
  Components: JCR
Affects Versions: JCR ContentLoader 2.1.10
Reporter: Radu Cotescu
Assignee: Petr Shypila
 Fix For: JCR ContentLoader 2.2.0

 Attachments: week2-part1-pathentry.patch, 
 week2-part2-defaultcontentcreator.patch, week2-part3-single-jcrmock-test.patch


 The JCR content loader is a sensible bundle. An extensive IT suite should be 
 written to make sure that code changes don't affect core functionality.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Build failed in Jenkins: sling-trunk-1.8 #1195

2015-06-09 Thread Robert Munteanu
On Tue, Jun 9, 2015 at 6:45 PM, Apache Jenkins Server
jenk...@builds.apache.org wrote:

 [ERROR] Failed to execute goal on project slingstart-maven-plugin: Could not 
 resolve dependencies for project 
 org.apache.sling:slingstart-maven-plugin:maven-plugin:1.2.1-SNAPSHOT: Could 
 not find artifact 
 org.apache.sling:org.apache.sling.provisioning.model:jar:1.2.0 in central 
 (http://repo.maven.apache.org/maven2) - [Help 1]

Temporarily switched to SNASPHOT version in https://svn.apache.org/r1684459


Build failed in Jenkins: sling-trunk-1.8 #1195

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/1195/changes

Changes:

[rombert] SLING-4541 - Provide an extensive test suite for the JCR content
loader

Initial cut of tests based on the Sling mocks

[rombert] SLING-4781 - Implement MockBundle.getEntryPaths

MockBundle.getEntryPaths() now looks up resources in the classpath using
getClass().getResource(), much like MockBundle.getEntry().

MockBundle.getEntry() was adjusted to make sure that it works with the
results returned from MockBundle.getEntryPaths().

[rombert] SLING-4780 - Implement MockBundle.getLastModified

[rombert] MockBundleTest - cast once in the @BeforeMethod instead of every test

[rombert] OsgiServiceUtil: clarify exception message when no matching 
references were found

--
[...truncated 2638 lines...]
[INFO] Apache Sling Scripting JavaScript Support . SKIPPED
[INFO] Apache Sling Scripting JSP Support  SKIPPED
[INFO] Apache Sling JSP Tag Library .. SKIPPED
[INFO] Apache Sling JSP Standard Tag Library . SKIPPED
[INFO] Apache Sling Scripting Sightly Engine . SKIPPED
[INFO] Apache Sling Scripting Sightly JavaScript Use Provider  SKIPPED
[INFO] Apache Sling Scripting Sightly Read-Eval-Print Loop Environment  SKIPPED
[INFO] Apache Sling Scripting Sightly Integration Tests Content  SKIPPED
[INFO] Apache Sling Launchpad Base ... SKIPPED
[INFO] Apache Sling Adapter Manager Implementation ... SKIPPED
[INFO] Apache Sling Internationalization Support . SKIPPED
[INFO] Apache Sling Models API ... SKIPPED
[INFO] Apache Sling Models Implementation  SKIPPED
[INFO] Apache Sling XSS Protection Bundle  SKIPPED
[INFO] Apache Sling Launchpad Application Builder  SKIPPED
[INFO] Apache Sling Scripting Sightly Integration Tests .. SKIPPED
[INFO] Apache Sling Scripting Sightly Models Use Provider  SKIPPED
[INFO] Apache Sling Scripting Sightly Reactor  SKIPPED
[INFO] Apache Sling Bundle Resource Provider . SKIPPED
[INFO] Apache Sling Distributed Event Admin .. SKIPPED
[INFO] Apache Sling Discovery API  SKIPPED
[INFO] Apache Sling Discovery Commons Bundle . SKIPPED
[INFO] Apache Sling Resource-Based Discovery Service . SKIPPED
[INFO] Apache Sling Discovery Support Bundle . SKIPPED
[INFO] Apache Sling Discovery Standalone Implementation .. SKIPPED
[INFO] Apache Sling Event Support  SKIPPED
[INFO] Apache Sling Feature Flags  SKIPPED
[INFO] Apache Sling Filesystem Resource Provider . SKIPPED
[INFO] Apache Sling javax.activation bundle .. SKIPPED
[INFO] Apache Sling Service User Mapper .. SKIPPED
[INFO] Apache Sling Settings . SKIPPED
[INFO] Apache Sling Web Console Branding . SKIPPED
[INFO] Apache Sling Web Console Security Provider  SKIPPED
[INFO] Apache Sling Explorer . SKIPPED
[INFO] Apache Sling Health Check Core  SKIPPED
[INFO] Apache Sling Health Check Annotations . SKIPPED
[INFO] Apache Sling Health Check Samples . SKIPPED
[INFO] Apache Sling Health Check Support Components .. SKIPPED
[INFO] Apache Sling Health Check Webconsole Plugin ... SKIPPED
[INFO] Apache Sling Health Check JUnit Bridge  SKIPPED
[INFO] Apache Sling Health Check Integration Tests ... SKIPPED
[INFO] Apache Sling Health Check Reactor POM . SKIPPED
[INFO] Apache Sling Resource Access Security . SKIPPED
[INFO] Apache Sling Resource Access Security Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework API . SKIPPED
[INFO] Apache Sling Validation Framework Core Implementation  SKIPPED
[INFO] Apache Sling Validation Framework Testing Services  SKIPPED
[INFO] Apache Sling Validation Framework Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework Examples  SKIPPED
[INFO] Apache Sling Validation Framework Builder . SKIPPED
[INFO] Apache Sling Models Validation Implementation . SKIPPED
[INFO] Apache Sling Models Integration Tests . SKIPPED
[INFO] Apache Sling Test Tools ... SKIPPED
[INFO] Apache Sling JUnit Core ... SKIPPED
[INFO] Apache Sling JUnit Scriptable Tests Provider .. SKIPPED
[INFO] Apache Sling JUnit Health Checks .. SKIPPED
[INFO] Apache Sling JUnit Remote Tests Runners ... SKIPPED
[INFO] Apache Sling JUnit Performance  SKIPPED
[INFO] Apache Sling Testing Mock Log Configuration ... SKIPPED
[INFO] Apache Sling Testing Resource Resolver Mock ... SKIPPED
[INFO] Apache Sling Pax Exam Utilities ... SKIPPED
[INFO] Apache Sling Sample Server-Side Tests 

[jira] [Commented] (SLING-4781) Implement MockBundle.getEntryPaths

2015-06-09 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14579094#comment-14579094
 ] 

Robert Munteanu commented on SLING-4781:


First implementation done in http://svn.apache.org/r1684449. A couple of points 
to discuss:

- I had to adjust {{getEntry}} to make it symmetrical with {{getEntryPaths}} . 
The {{getEntryPaths}} method now returns classpath resources, but with relative 
names, to comply with the OSGi spec. However, {{getEntry}} would fail with 
relative paths. So I added a fallback to the method. Perhaps we can remove it 
for now
- {{getEntryPaths}} assumes for now that we can always resolve resources to 
Files. In my testing this was always the case, but maybe there are cases that 
were not covered

 Implement MockBundle.getEntryPaths
 --

 Key: SLING-4781
 URL: https://issues.apache.org/jira/browse/SLING-4781
 Project: Sling
  Issue Type: Improvement
  Components: Testing
Affects Versions: Testing OSGi Mock 1.3.0
Reporter: Robert Munteanu
Assignee: Robert Munteanu
 Fix For: Testing OSGi Mock 1.4.0


 The MockBundle already supports the {{getEntry}} method, but not 
 {{getEntryPaths}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (SLING-4792) FS ClassLoader Find .java File

2015-06-09 Thread Dan Klco (JIRA)
Dan Klco created SLING-4792:
---

 Summary: FS ClassLoader Find .java File
 Key: SLING-4792
 URL: https://issues.apache.org/jira/browse/SLING-4792
 Project: Sling
  Issue Type: Improvement
Affects Versions: File System ClassLoader 1.0.0
Reporter: Dan Klco
 Fix For: File System ClassLoader 1.0.2


With SLING-4707, finding the .java files associated with a compiled script has 
been made more difficult as you need to find the ID of the FSClassLoader 
bundle, find the data directory for this bundle on the filesystem and find the 
associated files.

I suggest we add a OSGi console for finding the associated .java files based on 
a script.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (SLING-4755) DiscoveryService isn't shutdown aware

2015-06-09 Thread Stefan Egli (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-4755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Egli reassigned SLING-4755:
--

Assignee: Stefan Egli

I'll change the sending of topology events to be asynchronous instead of 
synchronous. This change will be done in DiscoveryServiceImpl directly (not via 
ViewStateManager as that change is bigger/riskier and thus would be postponed).

 DiscoveryService isn't shutdown aware
 -

 Key: SLING-4755
 URL: https://issues.apache.org/jira/browse/SLING-4755
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Discovery Impl 1.0.10
 Environment: AEM 6 SP2
Reporter: Ilyas Türkben
Assignee: Stefan Egli
 Fix For: Discovery Impl 1.1.6


 DiscoveryServiceImpl seems to perform write operations and require repository 
 reference during a shutdown and it blocks the shutdown for a unpredictable 
 time(here, almost 26 minutes).
 *Error log*
 {code:java}
 26.05.2015 16:54:19.249 *INFO* [Thread-60] org.apache.sling.discovery.impl 
 Service [org.apache.sling.discovery.impl.DiscoveryServiceImpl,4131] 
 ServiceEvent UNREGISTERING
 26.05.2015 16:55:20.756 *INFO* [pool-6-thread-1] com.adobe.granite.repository 
 Service [5185] ServiceEvent REGISTERED
 26.05.2015 17:21:40.298 *INFO* [FelixStartLevel] com.adobe.granite.repository 
 Service [5185] ServiceEvent UNREGISTERING
 {code}
 *Thread dump for Thread-60*
 {code:java}
 Thread-60 daemon prio=10 tid=0x7f773c5b8000 nid=0x26e1 runnable 
 [0x7f783b0ea000]
java.lang.Thread.State: RUNNABLE
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
   at org.bson.io.PoolOutputBuffer.pipe(PoolOutputBuffer.java:153)
   at com.mongodb.OutMessage.pipe(OutMessage.java:236)
   at com.mongodb.DBPort$1.execute(DBPort.java:140)
   at com.mongodb.DBPort$1.execute(DBPort.java:135)
   at com.mongodb.DBPort.doOperation(DBPort.java:164)
   - locked 0x00050a8eee30 (a com.mongodb.DBPort)
   at com.mongodb.DBPort.call(DBPort.java:135)
   at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:292)
   at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:271)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66)
   at com.mongodb.DBCursor._check(DBCursor.java:458)
   at com.mongodb.DBCursor._hasNext(DBCursor.java:546)
   at com.mongodb.DBCursor.hasNext(DBCursor.java:571)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:500)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:437)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildDocs(DocumentNodeStore.java:906)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildren(DocumentNodeStore.java:843)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:799)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:796)
   at 
 com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
   at 
 com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
   at 
 com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
   at 
 com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
   - locked 0x000768234398 (a 
 com.google.common.cache.LocalCache$StrongAccessEntry)
   at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
   at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
   at 
 com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.getChildren(DocumentNodeStore.java:796)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.getChildNodeCount(DocumentNodeState.java:183)
   at 
 org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.getChildNodeCount(ModifiedNodeState.java:198)
   at 
 org.apache.jackrabbit.oak.plugins.memory.MutableNodeState.getChildNodeCount(MutableNodeState.java:265)
   at 
 org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.getChildNodeCount(MemoryNodeBuilder.java:293)
   at 
 org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy.prune(ContentMirrorStoreStrategy.java:464)
   at 
 

[jira] [Updated] (SLING-4755) DiscoveryService isn't shutdown aware

2015-06-09 Thread Stefan Egli (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-4755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Egli updated SLING-4755:
---
Priority: Blocker  (was: Major)

 DiscoveryService isn't shutdown aware
 -

 Key: SLING-4755
 URL: https://issues.apache.org/jira/browse/SLING-4755
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Discovery Impl 1.0.10
 Environment: AEM 6 SP2
Reporter: Ilyas Türkben
Assignee: Stefan Egli
Priority: Blocker
 Fix For: Discovery Impl 1.1.6


 DiscoveryServiceImpl seems to perform write operations and require repository 
 reference during a shutdown and it blocks the shutdown for a unpredictable 
 time(here, almost 26 minutes).
 *Error log*
 {code:java}
 26.05.2015 16:54:19.249 *INFO* [Thread-60] org.apache.sling.discovery.impl 
 Service [org.apache.sling.discovery.impl.DiscoveryServiceImpl,4131] 
 ServiceEvent UNREGISTERING
 26.05.2015 16:55:20.756 *INFO* [pool-6-thread-1] com.adobe.granite.repository 
 Service [5185] ServiceEvent REGISTERED
 26.05.2015 17:21:40.298 *INFO* [FelixStartLevel] com.adobe.granite.repository 
 Service [5185] ServiceEvent UNREGISTERING
 {code}
 *Thread dump for Thread-60*
 {code:java}
 Thread-60 daemon prio=10 tid=0x7f773c5b8000 nid=0x26e1 runnable 
 [0x7f783b0ea000]
java.lang.Thread.State: RUNNABLE
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
   at org.bson.io.PoolOutputBuffer.pipe(PoolOutputBuffer.java:153)
   at com.mongodb.OutMessage.pipe(OutMessage.java:236)
   at com.mongodb.DBPort$1.execute(DBPort.java:140)
   at com.mongodb.DBPort$1.execute(DBPort.java:135)
   at com.mongodb.DBPort.doOperation(DBPort.java:164)
   - locked 0x00050a8eee30 (a com.mongodb.DBPort)
   at com.mongodb.DBPort.call(DBPort.java:135)
   at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:292)
   at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:271)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84)
   at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66)
   at com.mongodb.DBCursor._check(DBCursor.java:458)
   at com.mongodb.DBCursor._hasNext(DBCursor.java:546)
   at com.mongodb.DBCursor.hasNext(DBCursor.java:571)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:500)
   at 
 org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.query(MongoDocumentStore.java:437)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildDocs(DocumentNodeStore.java:906)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.readChildren(DocumentNodeStore.java:843)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:799)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.call(DocumentNodeStore.java:796)
   at 
 com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
   at 
 com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
   at 
 com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
   at 
 com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
   - locked 0x000768234398 (a 
 com.google.common.cache.LocalCache$StrongAccessEntry)
   at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
   at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
   at 
 com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.getChildren(DocumentNodeStore.java:796)
   at 
 org.apache.jackrabbit.oak.plugins.document.DocumentNodeState.getChildNodeCount(DocumentNodeState.java:183)
   at 
 org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.getChildNodeCount(ModifiedNodeState.java:198)
   at 
 org.apache.jackrabbit.oak.plugins.memory.MutableNodeState.getChildNodeCount(MutableNodeState.java:265)
   at 
 org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.getChildNodeCount(MemoryNodeBuilder.java:293)
   at 
 org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy.prune(ContentMirrorStoreStrategy.java:464)
   at 
 org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy.remove(ContentMirrorStoreStrategy.java:110)
   at 
 org.apache.jackrabbit.oak.plugins.index.property.strategy.ContentMirrorStoreStrategy.update(ContentMirrorStoreStrategy.java:84)
  

[jira] [Updated] (SLING-4791) Error when saving configuration of org.apache.sling.engine.parameters with an empty file.location parameter

2015-06-09 Thread Geoffroy Schneck (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-4791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Geoffroy Schneck updated SLING-4791:

Description: 
- Go to 
*http://localhost:4502/system/console/configMgr/org.apache.sling.engine.parameters*

- Change *sling.default.max.parameters* to 10001

- See in the logs :

{code}
09.06.2015 19:02:11.577 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.engine.parameters)] org.apache.sling.engine 
[org.apache.sling.engine.parameters(404)] The configure method has thrown an 
exception (java.lang.NullPointerException)
java.lang.NullPointerException: null
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation(RequestParameterSupportConfigurer.java:132)
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(RequestParameterSupportConfigurer.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)


09.06.2015 19:09:32.291 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.engine.parameters)] org.apache.sling.engine 
[org.apache.sling.engine.parameters(404)] Failed creating the component 
instance; see log for reason
{code}



  was:
- Go to 
*http://localhost:4502/system/console/configMgr/org.apache.sling.engine.parameters*

- Change *sling.default.max.parameters* to 10001

- See in the logs :

{code}
09.06.2015 19:02:11.577 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.engine.parameters)] org.apache.sling.engine 
[org.apache.sling.engine.parameters(404)] The configure method has thrown an 
exception (java.lang.NullPointerException)
java.lang.NullPointerException: null
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation(RequestParameterSupportConfigurer.java:132)
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(RequestParameterSupportConfigurer.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)


{code}


 Error when saving configuration of org.apache.sling.engine.parameters with 
 an empty file.location parameter
 ---

 Key: SLING-4791
 URL: https://issues.apache.org/jira/browse/SLING-4791
 Project: Sling
  Issue Type: Bug
  Components: Engine
Affects Versions: Engine 2.3.10
Reporter: Geoffroy Schneck
Priority: Minor

 - Go to 
 *http://localhost:4502/system/console/configMgr/org.apache.sling.engine.parameters*
 - Change *sling.default.max.parameters* to 10001
 - See in the logs :
 {code}
 09.06.2015 19:02:11.577 *ERROR* [CM Event Dispatcher (Fire 
 ConfigurationEvent: pid=org.apache.sling.engine.parameters)] 
 org.apache.sling.engine [org.apache.sling.engine.parameters(404)] The 
 configure method has thrown an exception (java.lang.NullPointerException)
 java.lang.NullPointerException: null
   at 
 org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation(RequestParameterSupportConfigurer.java:132)
   at 
 org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(RequestParameterSupportConfigurer.java:108)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 
 
 09.06.2015 19:09:32.291 *ERROR* [CM Event Dispatcher (Fire 
 ConfigurationEvent: pid=org.apache.sling.engine.parameters)] 
 org.apache.sling.engine [org.apache.sling.engine.parameters(404)] Failed 
 creating the component instance; see log for reason
 {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (SLING-4791) Error when saving configuration of org.apache.sling.engine.parameters with an empty file.location parameter

2015-06-09 Thread Geoffroy Schneck (JIRA)
Geoffroy Schneck created SLING-4791:
---

 Summary: Error when saving configuration of 
org.apache.sling.engine.parameters with an empty file.location parameter
 Key: SLING-4791
 URL: https://issues.apache.org/jira/browse/SLING-4791
 Project: Sling
  Issue Type: Bug
  Components: Engine
Affects Versions: Engine 2.3.10
Reporter: Geoffroy Schneck
Priority: Minor


- Go to 
*http://localhost:4502/system/console/configMgr/org.apache.sling.engine.parameters*

- Change *sling.default.max.parameters* to 10001

- See in the logs :

{code}
09.06.2015 19:02:11.577 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.engine.parameters)] org.apache.sling.engine 
[org.apache.sling.engine.parameters(404)] The configure method has thrown an 
exception (java.lang.NullPointerException)
java.lang.NullPointerException: null
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation(RequestParameterSupportConfigurer.java:132)
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(RequestParameterSupportConfigurer.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)


{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (SLING-4791) Error when saving configuration of org.apache.sling.engine.parameters with an empty file.location parameter

2015-06-09 Thread Geoffroy Schneck (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-4791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Geoffroy Schneck updated SLING-4791:

Description: 
- Go to 
*http://localhost:4502/system/console/configMgr/org.apache.sling.engine.parameters*

- Change *sling.default.max.parameters* to 10001

- See in the logs :

{code}
09.06.2015 19:02:11.577 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.engine.parameters)] org.apache.sling.engine 
[org.apache.sling.engine.parameters(404)] The configure method has thrown an 
exception (java.lang.NullPointerException)
java.lang.NullPointerException: null
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation(RequestParameterSupportConfigurer.java:132)
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(RequestParameterSupportConfigurer.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)


09.06.2015 19:09:32.291 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.engine.parameters)] org.apache.sling.engine 
[org.apache.sling.engine.parameters(404)] Failed creating the component 
instance; see log for reason
{code}

Workaround : set the file.location parameter to a non-empty path.


  was:
- Go to 
*http://localhost:4502/system/console/configMgr/org.apache.sling.engine.parameters*

- Change *sling.default.max.parameters* to 10001

- See in the logs :

{code}
09.06.2015 19:02:11.577 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.engine.parameters)] org.apache.sling.engine 
[org.apache.sling.engine.parameters(404)] The configure method has thrown an 
exception (java.lang.NullPointerException)
java.lang.NullPointerException: null
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation(RequestParameterSupportConfigurer.java:132)
at 
org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(RequestParameterSupportConfigurer.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)


09.06.2015 19:09:32.291 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.engine.parameters)] org.apache.sling.engine 
[org.apache.sling.engine.parameters(404)] Failed creating the component 
instance; see log for reason
{code}




 Error when saving configuration of org.apache.sling.engine.parameters with 
 an empty file.location parameter
 ---

 Key: SLING-4791
 URL: https://issues.apache.org/jira/browse/SLING-4791
 Project: Sling
  Issue Type: Bug
  Components: Engine
Affects Versions: Engine 2.3.10
Reporter: Geoffroy Schneck
Priority: Minor

 - Go to 
 *http://localhost:4502/system/console/configMgr/org.apache.sling.engine.parameters*
 - Change *sling.default.max.parameters* to 10001
 - See in the logs :
 {code}
 09.06.2015 19:02:11.577 *ERROR* [CM Event Dispatcher (Fire 
 ConfigurationEvent: pid=org.apache.sling.engine.parameters)] 
 org.apache.sling.engine [org.apache.sling.engine.parameters(404)] The 
 configure method has thrown an exception (java.lang.NullPointerException)
 java.lang.NullPointerException: null
   at 
 org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation(RequestParameterSupportConfigurer.java:132)
   at 
 org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(RequestParameterSupportConfigurer.java:108)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 
 
 09.06.2015 19:09:32.291 *ERROR* [CM Event Dispatcher (Fire 
 ConfigurationEvent: pid=org.apache.sling.engine.parameters)] 
 org.apache.sling.engine [org.apache.sling.engine.parameters(404)] Failed 
 creating the component instance; see log for reason
 {code}
 Workaround : set the file.location parameter to a non-empty path.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Jenkins build is still unstable: sling-contrib-1.7 #160

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-contrib-1.7/160/



[GitHub] sling pull request: Adding an OSGi Console for the FSClassLoader

2015-06-09 Thread klcodanr
GitHub user klcodanr opened a pull request:

https://github.com/apache/sling/pull/94

Adding an OSGi Console for the FSClassLoader



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/klcodanr/sling dklco/SLING-4792

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/sling/pull/94.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #94


commit a465b6aa515b5e89f78aa44c85b39369d6481744
Author: Dan Klco dan.k...@sixdimensions.com
Date:   2015-06-09T17:19:41Z

Adding an OSGi Console for the FSClassLoader




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Build failed in Jenkins: sling-trunk-1.8 #1196

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/1196/changes

Changes:

[rombert] slingstart-maven-plugin: temporarily depend on SNAPSHOT version for 
provisioning.model

--
[...truncated 38939 lines...]
[INFO] Apache Sling JSP Tag Library .. SUCCESS [6.293s]
[INFO] Apache Sling JSP Standard Tag Library . SUCCESS [2.545s]
[INFO] Apache Sling Scripting Sightly Engine . SUCCESS [10.397s]
[INFO] Apache Sling Scripting Sightly JavaScript Use Provider  SUCCESS [2.499s]
[INFO] Apache Sling Scripting Sightly Read-Eval-Print Loop Environment  SUCCESS 
[2.024s]
[INFO] Apache Sling Scripting Sightly Integration Tests Content  SUCCESS 
[3.456s]
[INFO] Apache Sling Launchpad Base ... SUCCESS [15.959s]
[INFO] Apache Sling Adapter Manager Implementation ... SUCCESS [3.856s]
[INFO] Apache Sling Internationalization Support . SUCCESS [1:33.835s]
[INFO] Apache Sling Models API ... SUCCESS [3.329s]
[INFO] Apache Sling Models Implementation  SUCCESS [8.056s]
[INFO] Apache Sling XSS Protection Bundle  SUCCESS [12.059s]
[INFO] Apache Sling Launchpad Application Builder  SUCCESS [22.614s]
[INFO] Apache Sling Scripting Sightly Integration Tests .. SUCCESS [3:32.471s]
[INFO] Apache Sling Scripting Sightly Models Use Provider  SUCCESS [2.418s]
[INFO] Apache Sling Scripting Sightly Reactor  SUCCESS [1.074s]
[INFO] Apache Sling Bundle Resource Provider . SUCCESS [1.927s]
[INFO] Apache Sling Distributed Event Admin .. SUCCESS [2.748s]
[INFO] Apache Sling Discovery API  SUCCESS [1.701s]
[INFO] Apache Sling Discovery Commons Bundle . SUCCESS [2.549s]
[INFO] Apache Sling Resource-Based Discovery Service . FAILURE [41:10.964s]
[INFO] Apache Sling Discovery Support Bundle . SKIPPED
[INFO] Apache Sling Discovery Standalone Implementation .. SKIPPED
[INFO] Apache Sling Event Support  SKIPPED
[INFO] Apache Sling Feature Flags  SKIPPED
[INFO] Apache Sling Filesystem Resource Provider . SKIPPED
[INFO] Apache Sling javax.activation bundle .. SKIPPED
[INFO] Apache Sling Service User Mapper .. SKIPPED
[INFO] Apache Sling Settings . SKIPPED
[INFO] Apache Sling Web Console Branding . SKIPPED
[INFO] Apache Sling Web Console Security Provider  SKIPPED
[INFO] Apache Sling Explorer . SKIPPED
[INFO] Apache Sling Health Check Core  SKIPPED
[INFO] Apache Sling Health Check Annotations . SKIPPED
[INFO] Apache Sling Health Check Samples . SKIPPED
[INFO] Apache Sling Health Check Support Components .. SKIPPED
[INFO] Apache Sling Health Check Webconsole Plugin ... SKIPPED
[INFO] Apache Sling Health Check JUnit Bridge  SKIPPED
[INFO] Apache Sling Health Check Integration Tests ... SKIPPED
[INFO] Apache Sling Health Check Reactor POM . SKIPPED
[INFO] Apache Sling Resource Access Security . SKIPPED
[INFO] Apache Sling Resource Access Security Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework API . SKIPPED
[INFO] Apache Sling Validation Framework Core Implementation  SKIPPED
[INFO] Apache Sling Validation Framework Testing Services  SKIPPED
[INFO] Apache Sling Validation Framework Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework Examples  SKIPPED
[INFO] Apache Sling Validation Framework Builder . SKIPPED
[INFO] Apache Sling Models Validation Implementation . SKIPPED
[INFO] Apache Sling Models Integration Tests . SKIPPED
[INFO] Apache Sling Test Tools ... SKIPPED
[INFO] Apache Sling JUnit Core ... SKIPPED
[INFO] Apache Sling JUnit Scriptable Tests Provider .. SKIPPED
[INFO] Apache Sling JUnit Health Checks .. SKIPPED
[INFO] Apache Sling JUnit Remote Tests Runners ... SKIPPED
[INFO] Apache Sling JUnit Performance  SKIPPED
[INFO] Apache Sling Testing Mock Log Configuration ... SKIPPED
[INFO] Apache Sling Testing Resource Resolver Mock ... SKIPPED
[INFO] Apache Sling Pax Exam Utilities ... SKIPPED
[INFO] Apache Sling Sample Server-Side Tests . SKIPPED
[INFO] Apache Sling Failing Server-Side Tests  SKIPPED
[INFO] Apache Sling Sample Integration Tests . SKIPPED
[INFO] Apache Sling Testing Modules Reactor .. SKIPPED
[INFO] Apache Sling Installer  SKIPPED
[INFO] Apache Sling Installer WebConsole Plugin .. SKIPPED
[INFO] Apache Sling File Installer ... SKIPPED
[INFO] Apache Sling JCR Installer  SKIPPED
[INFO] Apache Sling 

Jenkins build is back to normal : sling-trunk-1.7 #1909

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.7/1909/changes



Re: [RT] New resource query API

2015-06-09 Thread Alexander Klimetschek
On 04.06.2015, at 21:56, Carsten Ziegeler cziege...@apache.org wrote:
 Ok, could you then please provide an implementation for the mongo
 resource provider or one of the other nosql providers?

If you mean jcr xpath (or any other jcr/oak supported query language), no.

If you mean whatever query language is supported by mongo or other nosql 
providers (and fits into a string), then that's the best you can do on the 
Sling layer.

Cheers,
Alex

Re: [VOTE] Release Apache Sling discovery.impl 1.1.4

2015-06-09 Thread Carsten Ziegeler
+1

Carsten


-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


Re: [VOTE] Release Apache Sling Provisioning Model 1.2.0 and Apache Sling Slingstart Maven Plugin 1.2.0

2015-06-09 Thread Carsten Ziegeler
+1

-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


Jenkins build became unstable: sling-trunk-1.7 #1906

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.7/1906/changes



Re: [VOTE] Release Apache Sling Provisioning Model 1.2.0 and Apache Sling Slingstart Maven Plugin 1.2.0

2015-06-09 Thread Stefan Egli
+1,

Cheers,
Stefan

On 6/9/15 2:13 PM, Carsten Ziegeler cziege...@apache.org wrote:

Hi,

We solved some issues and added some new features in this release:
https://issues.apache.org/jira/browse/SLING/fixforversion/12329643
https://issues.apache.org/jira/browse/SLING/fixforversion/12332066


Staging repository:
https://repository.apache.org/content/repositories/orgapachesling-1256/

You can use this UNIX script to download the release and verify the
signatures:
http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh

Usage:
sh check_staged_release.sh 1256 /tmp/sling-staging

Please vote to approve this release:

  [ ] +1 Approve the release
  [ ]  0 Don't care
  [ ] -1 Don't release, because ...

This majority vote is open for at least 72 hours.

Regards
Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org




Jenkins build is still unstable: sling-trunk-1.8 #1193

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/changes



Build failed in Jenkins: sling-trunk-1.7 #1907

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.7/1907/changes

Changes:

[cziegeler] [maven-release-plugin] prepare for next development iteration

[cziegeler] [maven-release-plugin] prepare release slingstart-maven-plugin-1.2.0

[cziegeler] Prepare for release

[cziegeler] [maven-release-plugin] prepare for next development iteration

[cziegeler] [maven-release-plugin] prepare release 
org.apache.sling.provisioning.model-1.2.0

--
[...truncated 2753 lines...]
[INFO] Apache Sling Scripting Sightly Engine . SKIPPED
[INFO] Apache Sling Scripting Sightly JavaScript Use Provider  SKIPPED
[INFO] Apache Sling Scripting Sightly Read-Eval-Print Loop Environment  SKIPPED
[INFO] Apache Sling Scripting Sightly Integration Tests Content  SKIPPED
[INFO] Apache Sling Launchpad Base ... SKIPPED
[INFO] Apache Sling Adapter Manager Implementation ... SKIPPED
[INFO] Apache Sling Internationalization Support . SKIPPED
[INFO] Apache Sling Models API ... SKIPPED
[INFO] Apache Sling Models Implementation  SKIPPED
[INFO] Apache Sling XSS Protection Bundle  SKIPPED
[INFO] Apache Sling Launchpad Application Builder  SKIPPED
[INFO] Apache Sling Scripting Sightly Integration Tests .. SKIPPED
[INFO] Apache Sling Scripting Sightly Models Use Provider  SKIPPED
[INFO] Apache Sling Scripting Sightly Reactor  SKIPPED
[INFO] Apache Sling Bundle Resource Provider . SKIPPED
[INFO] Apache Sling Distributed Event Admin .. SKIPPED
[INFO] Apache Sling Discovery API  SKIPPED
[INFO] Apache Sling Discovery Commons Bundle . SKIPPED
[INFO] Apache Sling Resource-Based Discovery Service . SKIPPED
[INFO] Apache Sling Discovery Support Bundle . SKIPPED
[INFO] Apache Sling Discovery Standalone Implementation .. SKIPPED
[INFO] Apache Sling Event Support  SKIPPED
[INFO] Apache Sling Feature Flags  SKIPPED
[INFO] Apache Sling Filesystem Resource Provider . SKIPPED
[INFO] Apache Sling javax.activation bundle .. SKIPPED
[INFO] Apache Sling Service User Mapper .. SKIPPED
[INFO] Apache Sling Settings . SKIPPED
[INFO] Apache Sling Web Console Branding . SKIPPED
[INFO] Apache Sling Web Console Security Provider  SKIPPED
[INFO] Apache Sling Explorer . SKIPPED
[INFO] Apache Sling Health Check Core  SKIPPED
[INFO] Apache Sling Health Check Annotations . SKIPPED
[INFO] Apache Sling Health Check Samples . SKIPPED
[INFO] Apache Sling Health Check Support Components .. SKIPPED
[INFO] Apache Sling Health Check Webconsole Plugin ... SKIPPED
[INFO] Apache Sling Health Check JUnit Bridge  SKIPPED
[INFO] Apache Sling Health Check Integration Tests ... SKIPPED
[INFO] Apache Sling Health Check Reactor POM . SKIPPED
[INFO] Apache Sling Resource Access Security . SKIPPED
[INFO] Apache Sling Resource Access Security Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework API . SKIPPED
[INFO] Apache Sling Validation Framework Core Implementation  SKIPPED
[INFO] Apache Sling Validation Framework Testing Services  SKIPPED
[INFO] Apache Sling Validation Framework Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework Examples  SKIPPED
[INFO] Apache Sling Validation Framework Builder . SKIPPED
[INFO] Apache Sling Models Validation Implementation . SKIPPED
[INFO] Apache Sling Models Integration Tests . SKIPPED
[INFO] Apache Sling Test Tools ... SKIPPED
[INFO] Apache Sling JUnit Core ... SKIPPED
[INFO] Apache Sling JUnit Scriptable Tests Provider .. SKIPPED
[INFO] Apache Sling JUnit Health Checks .. SKIPPED
[INFO] Apache Sling JUnit Remote Tests Runners ... SKIPPED
[INFO] Apache Sling JUnit Performance  SKIPPED
[INFO] Apache Sling Testing Mock Log Configuration ... SKIPPED
[INFO] Apache Sling Testing Resource Resolver Mock ... SKIPPED
[INFO] Apache Sling Testing JCR Mock . SKIPPED
[INFO] Apache Sling Testing OSGi Mock  SKIPPED
[INFO] Apache Sling Testing Sling Mock ... SKIPPED
[INFO] Apache Sling Testing Sling Mock Oak-based Resource Resolver  SKIPPED
[INFO] Apache Sling Pax Exam Utilities ... SKIPPED
[INFO] Apache Sling Sample Server-Side Tests . SKIPPED
[INFO] Apache Sling Failing Server-Side Tests  SKIPPED
[INFO] Apache Sling Sample Integration Tests . SKIPPED
[INFO] Apache Sling Testing Modules Reactor .. SKIPPED
[INFO] Apache Sling Installer  SKIPPED
[INFO] Apache Sling Installer 

Build failed in Jenkins: sling-trunk-1.8 #1194

2015-06-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/1194/changes

Changes:

[cziegeler] [maven-release-plugin] prepare for next development iteration

[cziegeler] [maven-release-plugin] prepare release slingstart-maven-plugin-1.2.0

[cziegeler] Prepare for release

[cziegeler] [maven-release-plugin] prepare for next development iteration

[cziegeler] [maven-release-plugin] prepare release 
org.apache.sling.provisioning.model-1.2.0

--
[...truncated 2585 lines...]
[INFO] Apache Sling Scripting Sightly Engine . SKIPPED
[INFO] Apache Sling Scripting Sightly JavaScript Use Provider  SKIPPED
[INFO] Apache Sling Scripting Sightly Read-Eval-Print Loop Environment  SKIPPED
[INFO] Apache Sling Scripting Sightly Integration Tests Content  SKIPPED
[INFO] Apache Sling Launchpad Base ... SKIPPED
[INFO] Apache Sling Adapter Manager Implementation ... SKIPPED
[INFO] Apache Sling Internationalization Support . SKIPPED
[INFO] Apache Sling Models API ... SKIPPED
[INFO] Apache Sling Models Implementation  SKIPPED
[INFO] Apache Sling XSS Protection Bundle  SKIPPED
[INFO] Apache Sling Launchpad Application Builder  SKIPPED
[INFO] Apache Sling Scripting Sightly Integration Tests .. SKIPPED
[INFO] Apache Sling Scripting Sightly Models Use Provider  SKIPPED
[INFO] Apache Sling Scripting Sightly Reactor  SKIPPED
[INFO] Apache Sling Bundle Resource Provider . SKIPPED
[INFO] Apache Sling Distributed Event Admin .. SKIPPED
[INFO] Apache Sling Discovery API  SKIPPED
[INFO] Apache Sling Discovery Commons Bundle . SKIPPED
[INFO] Apache Sling Resource-Based Discovery Service . SKIPPED
[INFO] Apache Sling Discovery Support Bundle . SKIPPED
[INFO] Apache Sling Discovery Standalone Implementation .. SKIPPED
[INFO] Apache Sling Event Support  SKIPPED
[INFO] Apache Sling Feature Flags  SKIPPED
[INFO] Apache Sling Filesystem Resource Provider . SKIPPED
[INFO] Apache Sling javax.activation bundle .. SKIPPED
[INFO] Apache Sling Service User Mapper .. SKIPPED
[INFO] Apache Sling Settings . SKIPPED
[INFO] Apache Sling Web Console Branding . SKIPPED
[INFO] Apache Sling Web Console Security Provider  SKIPPED
[INFO] Apache Sling Explorer . SKIPPED
[INFO] Apache Sling Health Check Core  SKIPPED
[INFO] Apache Sling Health Check Annotations . SKIPPED
[INFO] Apache Sling Health Check Samples . SKIPPED
[INFO] Apache Sling Health Check Support Components .. SKIPPED
[INFO] Apache Sling Health Check Webconsole Plugin ... SKIPPED
[INFO] Apache Sling Health Check JUnit Bridge  SKIPPED
[INFO] Apache Sling Health Check Integration Tests ... SKIPPED
[INFO] Apache Sling Health Check Reactor POM . SKIPPED
[INFO] Apache Sling Resource Access Security . SKIPPED
[INFO] Apache Sling Resource Access Security Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework API . SKIPPED
[INFO] Apache Sling Validation Framework Core Implementation  SKIPPED
[INFO] Apache Sling Validation Framework Testing Services  SKIPPED
[INFO] Apache Sling Validation Framework Integration Tests  SKIPPED
[INFO] Apache Sling Validation Framework Examples  SKIPPED
[INFO] Apache Sling Validation Framework Builder . SKIPPED
[INFO] Apache Sling Models Validation Implementation . SKIPPED
[INFO] Apache Sling Models Integration Tests . SKIPPED
[INFO] Apache Sling Test Tools ... SKIPPED
[INFO] Apache Sling JUnit Core ... SKIPPED
[INFO] Apache Sling JUnit Scriptable Tests Provider .. SKIPPED
[INFO] Apache Sling JUnit Health Checks .. SKIPPED
[INFO] Apache Sling JUnit Remote Tests Runners ... SKIPPED
[INFO] Apache Sling JUnit Performance  SKIPPED
[INFO] Apache Sling Testing Mock Log Configuration ... SKIPPED
[INFO] Apache Sling Testing Resource Resolver Mock ... SKIPPED
[INFO] Apache Sling Testing JCR Mock . SKIPPED
[INFO] Apache Sling Testing OSGi Mock  SKIPPED
[INFO] Apache Sling Testing Sling Mock ... SKIPPED
[INFO] Apache Sling Testing Sling Mock Oak-based Resource Resolver  SKIPPED
[INFO] Apache Sling Pax Exam Utilities ... SKIPPED
[INFO] Apache Sling Sample Server-Side Tests . SKIPPED
[INFO] Apache Sling Failing Server-Side Tests  SKIPPED
[INFO] Apache Sling Sample Integration Tests . SKIPPED
[INFO] Apache Sling Testing Modules Reactor .. SKIPPED
[INFO] Apache Sling Installer  SKIPPED
[INFO] Apache Sling Installer 

Re: [VOTE] Release Apache Sling Provisioning Model 1.2.0 and Apache Sling Slingstart Maven Plugin 1.2.0

2015-06-09 Thread Robert Munteanu
+1

Robert

On Tue, Jun 9, 2015 at 3:13 PM, Carsten Ziegeler cziege...@apache.org wrote:
 Hi,

 We solved some issues and added some new features in this release:
 https://issues.apache.org/jira/browse/SLING/fixforversion/12329643
 https://issues.apache.org/jira/browse/SLING/fixforversion/12332066


 Staging repository:
 https://repository.apache.org/content/repositories/orgapachesling-1256/

 You can use this UNIX script to download the release and verify the
 signatures:
 http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh

 Usage:
 sh check_staged_release.sh 1256 /tmp/sling-staging

 Please vote to approve this release:

   [ ] +1 Approve the release
   [ ]  0 Don't care
   [ ] -1 Don't release, because ...

 This majority vote is open for at least 72 hours.

 Regards
 Carsten
 --
 Carsten Ziegeler
 Adobe Research Switzerland
 cziege...@apache.org


Re: [VOTE] Release Apache Sling Provisioning Model 1.2.0 and Apache Sling Slingstart Maven Plugin 1.2.0

2015-06-09 Thread David Bosschaert
+1 (non-binding)

David

On 9 June 2015 at 13:13, Carsten Ziegeler cziege...@apache.org wrote:
 Hi,

 We solved some issues and added some new features in this release:
 https://issues.apache.org/jira/browse/SLING/fixforversion/12329643
 https://issues.apache.org/jira/browse/SLING/fixforversion/12332066


 Staging repository:
 https://repository.apache.org/content/repositories/orgapachesling-1256/

 You can use this UNIX script to download the release and verify the
 signatures:
 http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh

 Usage:
 sh check_staged_release.sh 1256 /tmp/sling-staging

 Please vote to approve this release:

   [ ] +1 Approve the release
   [ ]  0 Don't care
   [ ] -1 Don't release, because ...

 This majority vote is open for at least 72 hours.

 Regards
 Carsten
 --
 Carsten Ziegeler
 Adobe Research Switzerland
 cziege...@apache.org


Re: [VOTE] Release Apache Sling Content Distribution Core version 0.1.4

2015-06-09 Thread Carsten Ziegeler
+1

Carsten


-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


[VOTE] Release Apache Sling Provisioning Model 1.2.0 and Apache Sling Slingstart Maven Plugin 1.2.0

2015-06-09 Thread Carsten Ziegeler
Hi,

We solved some issues and added some new features in this release:
https://issues.apache.org/jira/browse/SLING/fixforversion/12329643
https://issues.apache.org/jira/browse/SLING/fixforversion/12332066


Staging repository:
https://repository.apache.org/content/repositories/orgapachesling-1256/

You can use this UNIX script to download the release and verify the
signatures:
http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh

Usage:
sh check_staged_release.sh 1256 /tmp/sling-staging

Please vote to approve this release:

  [ ] +1 Approve the release
  [ ]  0 Don't care
  [ ] -1 Don't release, because ...

This majority vote is open for at least 72 hours.

Regards
Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


[jira] [Commented] (SLING-4792) FS ClassLoader Find .java File

2015-06-09 Thread Carsten Ziegeler (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580043#comment-14580043
 ] 

Carsten Ziegeler commented on SLING-4792:
-

Just curious, what's the use case for this?

 FS ClassLoader Find .java File
 --

 Key: SLING-4792
 URL: https://issues.apache.org/jira/browse/SLING-4792
 Project: Sling
  Issue Type: Improvement
Affects Versions: File System ClassLoader 1.0.0
Reporter: Dan Klco
  Labels: features
 Fix For: File System ClassLoader 1.0.2


 With SLING-4707, finding the .java files associated with a compiled script 
 has been made more difficult as you need to find the ID of the FSClassLoader 
 bundle, find the data directory for this bundle on the filesystem and find 
 the associated files.
 I suggest we add a OSGi console for finding the associated .java files based 
 on a script.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: [RT] New resource query API

2015-06-09 Thread Carsten Ziegeler
Am 09.06.15 um 21:01 schrieb Alexander Klimetschek:
 On 04.06.2015, at 21:56, Carsten Ziegeler cziege...@apache.org wrote:
 Ok, could you then please provide an implementation for the mongo
 resource provider or one of the other nosql providers?
 
 If you mean jcr xpath (or any other jcr/oak supported query language), no.
 
 If you mean whatever query language is supported by mongo or other nosql 
 providers (and fits into a string), then that's the best you can do on the 
 Sling layer.
 
Thanks for confirming my point why an abstraction is necessary :)

Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


[jira] [Created] (SLING-4793) Support new format from Apache Felix config admin

2015-06-09 Thread Carsten Ziegeler (JIRA)
Carsten Ziegeler created SLING-4793:
---

 Summary: Support new format from Apache Felix config admin
 Key: SLING-4793
 URL: https://issues.apache.org/jira/browse/SLING-4793
 Project: Sling
  Issue Type: Improvement
  Components: Installer
Affects Versions: Installer Core 3.6.4
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Installer Core 3.6.6


With version 1.8.6 of the config admin implementation, an improved format for 
multi values has been introduced.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (SLING-4793) Support new format from Apache Felix config admin

2015-06-09 Thread Carsten Ziegeler (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-4793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-4793.
-
Resolution: Fixed

Updated to latest config admin implementation

 Support new format from Apache Felix config admin
 -

 Key: SLING-4793
 URL: https://issues.apache.org/jira/browse/SLING-4793
 Project: Sling
  Issue Type: Improvement
  Components: Installer
Affects Versions: Installer Core 3.6.4
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Installer Core 3.6.6


 With version 1.8.6 of the config admin implementation, an improved format for 
 multi values has been introduced.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (SLING-4791) Error when saving configuration of org.apache.sling.engine.parameters with an empty file.location parameter

2015-06-09 Thread Carsten Ziegeler (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-4791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-4791.
-
Resolution: Duplicate

 Error when saving configuration of org.apache.sling.engine.parameters with 
 an empty file.location parameter
 ---

 Key: SLING-4791
 URL: https://issues.apache.org/jira/browse/SLING-4791
 Project: Sling
  Issue Type: Bug
  Components: Engine
Affects Versions: Engine 2.3.10
Reporter: Geoffroy Schneck
Priority: Minor

 - Go to 
 *http://localhost:4502/system/console/configMgr/org.apache.sling.engine.parameters*
 - Change *sling.default.max.parameters* to 10001
 - See in the logs :
 {code}
 09.06.2015 19:02:11.577 *ERROR* [CM Event Dispatcher (Fire 
 ConfigurationEvent: pid=org.apache.sling.engine.parameters)] 
 org.apache.sling.engine [org.apache.sling.engine.parameters(404)] The 
 configure method has thrown an exception (java.lang.NullPointerException)
 java.lang.NullPointerException: null
   at 
 org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.getFileLocation(RequestParameterSupportConfigurer.java:132)
   at 
 org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.configure(RequestParameterSupportConfigurer.java:108)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 
 
 09.06.2015 19:09:32.291 *ERROR* [CM Event Dispatcher (Fire 
 ConfigurationEvent: pid=org.apache.sling.engine.parameters)] 
 org.apache.sling.engine [org.apache.sling.engine.parameters(404)] Failed 
 creating the component instance; see log for reason
 {code}
 Workaround : set the file.location parameter to a non-empty path.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[VOTE] Release Apache Sling Installer Core 3.6.6

2015-06-09 Thread Carsten Ziegeler
Hi,

We solved one issue (which is required for the recent updates of the
provisioning model):
https://issues.apache.org/jira/browse/SLING-4793


Staging repository:
https://repository.apache.org/content/repositories/orgapachesling-1257/

You can use this UNIX script to download the release and verify the
signatures:
http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh

Usage:
sh check_staged_release.sh 1257 /tmp/sling-staging

Please vote to approve this release:

  [ ] +1 Approve the release
  [ ]  0 Don't care
  [ ] -1 Don't release, because ...

This majority vote is open for at least 72 hours.

Regards
Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


Re: [VOTE] Release Apache Sling Installer Core 3.6.6

2015-06-09 Thread Carsten Ziegeler
+1


-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org