Re: "java.lang.VerifyError"

2017-01-30 Thread lancedolan
That's the solution, thank you! My maven-scr-plugin version had fallen badly out of date by re-building from an archetype... bumped to latest version and I no longer need the -noverify argument. Thanks again :D -- View this message in context:

Re: "java.lang.VerifyError"

2017-01-30 Thread Steven Walters
This error is usually caused by an old version of ASM that is used for writing the implementation of the bind/unbind methods of references if such functions do not already exist. This usually stems from the use of an old maven-scr-plugin, and upgrading to a newer one will most usually fix this,

Re: "java.lang.VerifyError"

2017-01-30 Thread lancedolan
Sort of solved: adding -noverify to the JVM arguments stops this error from occurring. However, I don't fully understand the cause and I'm also nervous about forward compatibility... I wonder how this could prevent us from moving to future Java versions. It just seems like a bad smell that

"java.lang.VerifyError"

2017-01-30 Thread lancedolan
Has anybody run into this before? I'm tempted to thing it's a defect in Sling 8. I write a @Service for OSGI, and it has a @Reference to another service, such as a ResourceResolverFactory, and deploy it to Sling the same way I have for several years, and it fails to get the Reference, with the

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-30 Thread lancedolan
I guess, even if we use SlingSafeMethodsServlet and request parameter, I still have this problem of securing the servlet... I've put a servlet at paths = "/myservice/image" , and created a node at /myservice with an ACL that denies jcr: all to everyone and anonymous, and yet anonymous can still

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-30 Thread lancedolan
I'm surprised at all the tech opinions this raised :) First, there's a couple popular suggestions happening which aren't going in the right direction, so I'll get that out of the way quick: 1) Any solution that involves me creating a JCR node and binding by resource type is infeasible. I'm not

Sling Health Checks

2017-01-30 Thread Jason Bailey
Anyone know if it's possible to use the Sling Health Checks to expose a value via the MBean other than the ones explicitly defined in the Result Object? Thanks -Jason

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-30 Thread Bertrand Delacretaz
Hi Lance, On Fri, Jan 27, 2017 at 10:27 PM, lancedolan wrote: > ...Bertrand suggests creating a ResourceProvider, as in the example here [1]. > However, that uses the spi package which is not in version 2.9.0 of > org.apache.sling.api, and thus, not available to me in

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-30 Thread Robert Munteanu
Hi, On Fri, 2017-01-27 at 14:27 -0700, lancedolan wrote: > Hi friends, > > I've tried routing questions through stackoverflow to cut down my > mails to > this list. I'm losing lots of time on this one, though, and am stuck. > > I need to create APIs which don't represent Sling Resources.