GithubHelp home page GithubHelp logo

pmonks / alfresco-groovy-webscripts Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 256 KB

Automatically exported from code.google.com/p/alfresco-groovy-webscripts

License: Other

Java 33.64% Groovy 66.36%

alfresco-groovy-webscripts's People

Contributors

pmonks avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alfresco-groovy-webscripts's Issues

Unable to Use the Groovy console on certain browsers

What steps will reproduce the problem?
1. Go to http://localhost:8080/alfresco/s/groovy/scriptrunner on chrome on MAC
2. Enter Groovy Code
3. Try to click "Go"

What is the expected output? What do you see instead?
The typed in code should be executed but instead nothing happens

What version of the product are you using? On what operating system?
org.alfresco.extension.groovy.web-scripts.common version 1.3.
org.alfresco.extension.groovy.web-scripts version 1.3.
Alfresco 4.2.2 and A.fresco 4.1.9

Please provide any additional information below.
I suspect that the button is hidden under the results text area because of its 
z-index.
I suspect that the resize corner of the text area is also unaccessible for the 
same reason.

I verified the following fix using the Chrome developer tools
Change the text area from this:
<textarea cols="160" rows="25" name="script"></textarea>
To this:
<textarea name="script" style="width: 70%; height: 70%;"></textarea>

The issue here is that you cannot guarantee the textarea will fit in the space 
allocated when you specify the cols and rows. Especially when the rest of the 
layout is based upon percentages of the browser window.

By specifying the size as percentages of the containing div, you guarantee that 
the textarea will always fit and the button will always be accessible

Original issue reported on code.google.com by [email protected] on 30 Jul 2014 at 2:16

ServiceRegistry unavailable to groovy console

I installed the 2 amps to the alfresco.war
the groovy console shows up perfect at the expected url
/alfresco/service/groovy/scriptrunner

but with this input:

String output = ""
output+= ServiceRegistry.class.name
"""{$output}"""

I get this output
{
    "status" : 
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  },  

  "message" : "03010013 Wrapped Exception (with status template): No such property: ServiceRegistry for class: Script1",  
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 03010013 Wrapped Exception (with status template): No such property: ServiceRegistry for class: Script1",

  "callstack" : 
  [ 
      ""      ,"groovy.lang.MissingPropertyException: No such property: ServiceRegistry for class: Script1"
      ,"org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49)"
      ,"org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)"
      ,"org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:239)"
      ,"Script1.run(Script1.groovy:5)"
      ,"groovy.lang.GroovyShell.evaluate(GroovyShell.java:576)"
      ,"groovy.lang.GroovyShell.evaluate(GroovyShell.java:614)"
      ,"groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)"
      ,"groovy.lang.GroovyShell$evaluate.call(Unknown Source)"
      ,"alfresco.extension.groovy.scriptrunner.GroovyScriptRunner.execute(GroovyScriptRunner:58)"
      ,"sun.reflect.GeneratedMethodAccessor545.invoke(Unknown Source)"
      ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)"
      ,"java.lang.reflect.Method.invoke(Method.java:597)"
      ,"org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)"
      ,"org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)"
      ,"org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)"
      ,"$Proxy152.execute(Unknown Source)"
      ,"org.alfresco.extension.webscripts.groovy.GroovyDelegatingWebScript.executeImpl(GroovyDelegatingWebScript.java:62)"
      ,"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:417)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:401)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:479)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:517)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:333)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)"
      ,"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)"
      ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:717)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)"
      ,"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)"
      ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)"
      ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)"
      ,"org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)"
      ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)"
      ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)"
      ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)"
      ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)"
      ,"org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)"
      ,"org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)"
      ,"org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)"
      ,"java.lang.Thread.run(Thread.java:662)"
      ,"org.springframework.extensions.webscripts.WebScriptException: 03010013 Wrapped Exception (with status template): No such property: ServiceRegistry for class: Script1"
      ,"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)"

  ],

  "server" : "Enterprise v4.1.4 (r49301-b80) schema 5,118",
  "time" : "Apr 1, 2014 2:11:07 PM"
}

Original issue reported on code.google.com by [email protected] on 1 Apr 2014 at 9:13

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.