cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer files from the alfresco outside

itayh
Champ in-the-making
Champ in-the-making
Hi All,

Is there any way I can copy files from my alfresco to different location outside the alfresco?

Thank you in advance
12 REPLIES 12

robertoroberto
Champ in-the-making
Champ in-the-making
I have alfresco 2.1 community with tomcat 5.5 integrated
if i press "enabled button" in /alfresco/service/api/javascript/debugger page Alfresco "crashes".
Why?
If i set log4j.logger.org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger=debug
Alfresco "crashes"

if  i set
log4j.logger.org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger=info
i have not problems.

How can I enable javascript debugger?

bgl
Champ on-the-rise
Champ on-the-rise
Hi,

with a 2.9B version, I have enabled javascript debugger using this value in log4j.properties :
log4j.logger.org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger=on

mabayona
Champ on-the-rise
Champ on-the-rise
I´ve got same problems to run javascript debugger, My configuration is:

2.9C_dev
JDK 1.5.0_14
Windows Vista
Tomcat 6

When I try to enable it I get:

Web Script Status 500 - Internal Error

The Web Script /alfresco/service/api/javascript/debugger has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   <Not specified>
   
Exception:   java.lang.NullPointerException
   
   sun.awt.shell.Win32ShellFolder2.(Unknown Source)
   sun.awt.shell.Win32ShellFolderManager2.getDrives(Unknown Source)
   sun.awt.shell.Win32ShellFolderManager2.isFileSystemRoot(Unknown Source)
   sun.awt.shell.ShellFolder.isFileSystemRoot(Unknown Source)
   javax.swing.filechooser.FileSystemView.isFileSystemRoot(Unknown Source)
   javax.swing.filechooser.FileSystemView.getRoots(Unknown Source)
   javax.swing.plaf.metal.MetalFileChooserUI.updateUseShellFolder(Unknown Source)
   javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)
   javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
   javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)
   javax.swing.JComponent.setUI(Unknown Source)
   javax.swing.JFileChooser.updateUI(Unknown Source)
   javax.swing.JFileChooser.setup(Unknown Source)
   javax.swing.JFileChooser.(Unknown Source)
   javax.swing.JFileChooser.(Unknown Source)
   org.mozilla.javascript.tools.debugger.SwingGui.init(SwingGui.java:302)
   org.mozilla.javascript.tools.debugger.SwingGui.(SwingGui.java:154)
   org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger$AlfrescoGui.(AlfrescoRhinoScriptDebugger.java:174)
   org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger.activate(AlfrescoRhinoScriptDebugger.java:88)
   org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger.show(AlfrescoRhinoScriptDebugger.java:101)
   org.alfresco.repo.web.scripts.bean.JavascriptDebuggerPost.executeImpl(JavascriptDebuggerPost.java:66)
   org.alfresco.web.scripts.DeclarativeWebScript.executeImpl(DeclarativeWebScript.java:251)
   org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:87)
   org.alfresco.repo.web.scripts.RepositoryContainer$1.execute(RepositoryContainer.java:311)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:236)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:166)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:322)
   org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:266)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:240)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:111)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.alfresco.web.app.servlet.MTWebScriptAuthenticationFilter.doFilter(MTWebScriptAuthenticationFilter.java:102)
   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:175)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   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:286)
   org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
   org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
   org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
   java.lang.Thread.run(Unknown Source)
   
Server:   Alfresco Community Network v2.9.0 (C_dev 816) schema 124
Time:   10-jun-2008 21:07:25

and if I try to enable it via parameter:

log4j.logger.org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger=on

tomcat does not start and the logs have following/similar content:

20:58:02,089  DEBUG [repo.jscript.AlfrescoRhinoScriptDebugger] preRegister called. Server=com.sun.jmx.mbeanserver.JmxMBeanServer@5739a0, name=log4j:logger=org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger
20:58:04,082  ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rhinoScriptDebugger' defined in class path resource [alfresco/script-services-context.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException
   at sun.awt.shell.Win32ShellFolder2.<init>(Unknown Source)
   at sun.awt.shell.Win32ShellFolderManager2.getDrives(Unknown Source)
   at sun.awt.shell.Win32ShellFolderManager2.isFileSystemRoot(Unknown Source)
   at sun.awt.shell.ShellFolder.isFileSystemRoot(Unknown Source)
   at javax.swing.filechooser.FileSystemView.isFileSystemRoot(Unknown Source)
   at javax.swing.filechooser.FileSystemView.getRoots(Unknown Source)
   at javax.swing.plaf.metal.MetalFileChooserUI.updateUseShellFolder(Unknown Source)
   at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)
   at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
   at javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)
   at javax.swing.JComponent.setUI(Unknown Source)
   at javax.swing.JFileChooser.updateUI(Unknown Source)
   at javax.swing.JFileChooser.setup(Unknown Source)
   at javax.swing.JFileChooser.<init>(Unknown Source)
   at javax.swing.JFileChooser.<init>(Unknown Source)
   at org.mozilla.javascript.tools.debugger.SwingGui.init(SwingGui.java:302)
   at org.mozilla.javascript.tools.debugger.SwingGui.<init>(SwingGui.java:154)
   at org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger$AlfrescoGui.<init>(AlfrescoRhinoScriptDebugger.java:174)
   at org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger.activate(AlfrescoRhinoScriptDebugger.java:88)
   at org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger.start(AlfrescoRhinoScriptDebugger.java:69)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1160)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1122)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
21:01:28,099  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]

Any idea why?