Grails and Accumulo, getting a bug in Accumulo's jar - grails

I am trying to connect Grails to Accumulo but I am getting a bug in what appears to be Accumulo-core.jar.
I cam getting a java.lang.ClassNotFoundException on org.apache.accumulo.core.security.thrift.AuthInfo
After digging I found that:
1) Grails can't find that if I import it myself. It throws an import error.
and
2) This line of code at the bottom of ZooKeeperInstance.class is what is messing up the whole project:
public org.apache.accumulo.core.client.Connector getConnector(org.apache.accumulo.core.security.thrift.AuthInfo auth)
That path is in the jar, I am staring at it. I actually can't use anything in the security.thrift path. But I can use the rest of security. Very odd.
Does anyone have any clue what is going on?

To anyone finding this issue, use Maven instead of putting it in the lib directory. I am not really sure why this was the answer, but give it a try.

Related

Can't run MusicStore sample

when I'm trying to run the MusicStore sample described here the download of docker images breaks with following error.
Can someone confirm this?
The instructions need to be updated. There were two Config Server paths steeltoeoss/configserver and steeltoeoss/config-server. This was confusing and the first one was cleaned up. Please use steeltoeoss/config-server now.
A ticket will be created to fix the readme.
Thanks for pointing it out.

How to get Swagger UI to work based on documentation guide? (even the example)

I am trying to use Swagger UI to document our node.js API, so I went to http://swagger.io/docs/, down to Swagger UI Documentation -> Usage, to find this
Now, this is not the only place that provides these instructions, there are dozens of blogs & tutorials saying the same thing, so that's exactly what I did.
Cloned the repo, went into /dist/ and ran the /dist/index.html and all I get is an empty page with an error:
I'm slowly going crazy now as I can't find anything about it and literally every place I looked just has the same, copied, instructions with nothing else provided (like what could go wrong? you just open a file...)
Any help or explanations are much appreciated!
P.S. for some reason opening the /public/index.html works (mentioned nowhere on the www)
I think this is bug in new version of swagger-UI. This is fresh release and they are still modifying and fixing bugs.
Look here: Swagger-ui cannot access JS scripts. This seems to be similar problem, maybe it will help you.

can't find youtube.js (Typescript, Angular2, YoutubeApi )

I have a youtube.d.ts file from DefinitelyTyped project. It works great in my webstorm at edit time but when i go to run it I get a 404 typings/youtube.js not found. There is no file there. What do I do to get this file?
404 typings/youtube.js
I believe you have something like require('typings/youtube.js') somwhere in your code.
This should not be there.
Fix
Webstorm has magic inference to help you develop anyway you want. However your runtime might not support this.
Remove the require call,
don't confuse typings with runtime dependencies.
Read up on modules (https://basarat.gitbooks.io/typescript/content/docs/project/modules.html) and commonjs / webpack (https://github.com/TypeStrong/ts-loader)

Installing/Uninstalling spring-security-eventlog-0.3

I am having some trouble setting up spring security in my application so I tried to install spring-security-eventlog-0.3 in order to see the logs and understand what the hell is going on :))))
I added this line in BuildConfig.groovy
compile ":spring-security-eventlog:0.3"
When I hit run-app I get this very beautiful message
SpringSecurityEventlogGrailsPlugin.groovy: 3: unable to resolve class org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils
# line 3, column 1.
import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils
^
SpringSecurityEventlogGrailsPlugin.groovy: 2: unable to resolve class org.codehaus.groovy.grails.plugins.springsecurity.SecurityEventListener
# line 2, column 1.
import org.codehaus.groovy.grails.plugins.springsecurity.SecurityEventListener
The run failed. I decided to remove it because I didn't feel like spending hours for that. The thing is that even though I removed the line from BuildConfig, it tries to install it every single time! I even went in my hard disk's path and removed the folder. Even though it installs it every time and fails of course.
Could you please suggest me a solution on this? I would prefer to keep the plugin and be able to have the spring security logs. If it is not possible for some reason, I would like to be able to remove it.
As mentioned in the comments, that plugin depends on version 1.2.x of the core plugin, so you either need to downgrade to 1.2.7.3, or wait until the eventlog plugin is updated to use the 2.0 plugin.
I updated the plugin and sent a pull request, and hopefully the author will release an updated version soon. Feel free to bug him about this if he doesn't :)

Spring Roo RooEntity and RooJpaActiveRecord

I am a novice with Spring.
I am looking to resolve conflicts between #RooEntity and #RooJpaActiveRecord. I have used the typicalsecurity addon to an existing project which used more recent versions of Roo (#RooJpaActiveRecord). I was wondering if there's a workaround or a specific way to address this issue. I am not able to run the project on the internal web browser. I receive the HTTP Status 404 error.
Any help or suggestions would be greatly appreciated!
#RooEntity is no longer the annotation that you have to use.
Replace it with #RooJpaActiveRecord and run the Roo shell again.
Regarding the web project, the annotations belongs to the spring-roo-annotations.jar (or something like that) that maven puts in your WEB-INF/lib folder when deploying the war application.
You need to have the appropriate jar dependency (I mean, the correct version) depending on the annotation that you have in your code.
In order to see more explanation, maybe you can provide your server stack trace.

Resources