New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit movie after create #217

Closed
Rockybb opened this Issue Aug 23, 2016 · 4 comments

Comments

Projects
None yet
4 participants
@Rockybb

Rockybb commented Aug 23, 2016

hello!

I running the beta version. When I have create a movie and I want to edit something, I get at internal server error?
in my linux console, get I this:

at grails.plugin.json.builder.JsonOutput.writeMap(JsonOutput.java:460)
        at grails.plugin.json.builder.JsonOutput.writeObject(JsonOutput.java:331
at grails.plugin.json.builder.JsonOutput.writeMap(JsonOutput.java:460)
        at grails.plugin.json.builder.JsonOutput.writeObject(JsonOutput.java:331
at grails.plugin.json.builder.JsonOutput.writeMap(JsonOutput.java:460)
        at grails.plugin.json.builder.JsonOutput.writeObject(JsonOutput.java:331
at grails.plugin.json.builder.JsonOutput.writeMap(JsonOutput.java:460)
        at grails.plugin.json.builder.JsonOutput.writeObject(JsonOutput.java:331

Someone know how to fix it?

@Rockybb

This comment has been minimized.

Show comment
Hide comment
@Rockybb

Rockybb Aug 23, 2016

but it is only if I have upload some movie file....

Rockybb commented Aug 23, 2016

but it is only if I have upload some movie file....

@NastaDan

This comment has been minimized.

Show comment
Hide comment
@NastaDan

NastaDan Aug 24, 2016

I am experiencing the same bug. Once I have uploaded the movie, i cannot edit anything at it.

NastaDan commented Aug 24, 2016

I am experiencing the same bug. Once I have uploaded the movie, i cannot edit anything at it.

@NastaDan

This comment has been minimized.

Show comment
Hide comment
@NastaDan

NastaDan Aug 24, 2016

Latest release 1.0.6 with mysql setup and changes done to application.yml.
java -Dgrails.env=prod -jar streama-1.0.6.war

On Wed, Aug 24, 2016, 08:33 Giorgi Kikolashvili notifications@github.com
wrote:

Which branch do you build? And what command do you execute to build the
project?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#217 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUOfHRolCaQ5I_9xwMwrMbWa1ga2OEhJks5qi9fBgaJpZM4JrcRE
.

NastaDan commented Aug 24, 2016

Latest release 1.0.6 with mysql setup and changes done to application.yml.
java -Dgrails.env=prod -jar streama-1.0.6.war

On Wed, Aug 24, 2016, 08:33 Giorgi Kikolashvili notifications@github.com
wrote:

Which branch do you build? And what command do you execute to build the
project?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#217 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUOfHRolCaQ5I_9xwMwrMbWa1ga2OEhJks5qi9fBgaJpZM4JrcRE
.

@gkiko

This comment has been minimized.

Show comment
Hide comment
@gkiko

gkiko Aug 24, 2016

Collaborator

This is the error at streama.MovieController.show(MovieController.groovy:40)

ERROR org.grails.web.errors.GrailsExceptionResolver - StackOverflowError occurred when processing request: [GET] /movie/show.json - parameters:
id: 14
Stacktrace follows:
java.lang.reflect.InvocationTargetException: null
    at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
    at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
    at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
    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)
Caused by: grails.views.ViewRenderException: Error rendering view: null
    at grails.views.AbstractWritableScript.writeTo(AbstractWritableScript.groovy:33)
    at grails.views.mvc.GenericGroovyTemplateView.renderMergedOutputModel(GenericGroovyTemplateView.groovy:65)
    at grails.views.mvc.renderer.DefaultViewRenderer.render(DefaultViewRenderer.groovy:94)
    at grails.artefact.controller.RestResponder$Trait$Helper.internalRespond(RestResponder.groovy:188)
    at grails.artefact.controller.RestResponder$Trait$Helper.respond(RestResponder.groovy:98)
    at streama.MovieController.show(MovieController.groovy:40)
    at grails.transaction.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:96)
    at grails.transaction.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:93)
    ... 6 common frames omitted
Caused by: java.lang.StackOverflowError: null
    at grails.plugin.json.builder.JsonOutput.writeObject(JsonOutput.java:327)
    at grails.plugin.json.builder.JsonOutput.writeMap(JsonOutput.java:460)
    at grails.plugin.json.builder.JsonOutput.writeObject(JsonOutput.java:331)
    at grails.plugin.json.builder.JsonOutput.writeMap(JsonOutput.java:460)

UPDATE
Problem is this line. There is something wrong with the boolean statement.
If I write movie.files.findAll{it.extension == '.mp4'} I get StackOverflowError. If I write movie.files.findAll{it.extension != '.mp4} everything is OK

Collaborator

gkiko commented Aug 24, 2016

This is the error at streama.MovieController.show(MovieController.groovy:40)

ERROR org.grails.web.errors.GrailsExceptionResolver - StackOverflowError occurred when processing request: [GET] /movie/show.json - parameters:
id: 14
Stacktrace follows:
java.lang.reflect.InvocationTargetException: null
    at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
    at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
    at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
    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)
Caused by: grails.views.ViewRenderException: Error rendering view: null
    at grails.views.AbstractWritableScript.writeTo(AbstractWritableScript.groovy:33)
    at grails.views.mvc.GenericGroovyTemplateView.renderMergedOutputModel(GenericGroovyTemplateView.groovy:65)
    at grails.views.mvc.renderer.DefaultViewRenderer.render(DefaultViewRenderer.groovy:94)
    at grails.artefact.controller.RestResponder$Trait$Helper.internalRespond(RestResponder.groovy:188)
    at grails.artefact.controller.RestResponder$Trait$Helper.respond(RestResponder.groovy:98)
    at streama.MovieController.show(MovieController.groovy:40)
    at grails.transaction.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:96)
    at grails.transaction.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:93)
    ... 6 common frames omitted
Caused by: java.lang.StackOverflowError: null
    at grails.plugin.json.builder.JsonOutput.writeObject(JsonOutput.java:327)
    at grails.plugin.json.builder.JsonOutput.writeMap(JsonOutput.java:460)
    at grails.plugin.json.builder.JsonOutput.writeObject(JsonOutput.java:331)
    at grails.plugin.json.builder.JsonOutput.writeMap(JsonOutput.java:460)

UPDATE
Problem is this line. There is something wrong with the boolean statement.
If I write movie.files.findAll{it.extension == '.mp4'} I get StackOverflowError. If I write movie.files.findAll{it.extension != '.mp4} everything is OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment