Hi,

this seems to be hard to reproduce, as I've run now tests for over an hour.
The version of easyfck is 1.0.4, right?

If you can share the project with me for testing purposes I would be more
than happy to download it and debug it. I understand if you don't wish to
share it though. Any pointers how to reproduce are welcome.

You should check that your Java process has read and write rights to the
directory where you put the files ie. C:\\logs\\wwwfiles\\ directory.

I also tested with jetty 6.1.9, 6.1.14 and 6.1.22 without problems.

 - Ville
Ps. We have this working on multiple production systems.


Tomek-28 wrote:
> 
> Hi,
> 
> I use jetty 6.1.9 as a maven plugin. Problem occurs in Windows and Linux
> 
> this is my implementation of FckEditorUserRightService
> 
> public class SimpleFckEditorUserRightServiceImpl implements
> FckEditorUserRightService {
> 
>     private final Logger logger;
> 
>     public SimpleFckEditorUserRightServiceImpl(Logger logger) {
>         this.logger = logger;
>     }
> 
>     @Override
>     public boolean canCreateFolders() {
>         logger.info("Allowed folder creation");
>         return false;
> 
>     }
> 
>     @Override
>     public boolean canBrowseFiles() {
>         logger.info("Allowed file browsing");
>         return true;
>     }
> 
>     @Override
>     public boolean canUploadFiles() {
>         logger.info("Allowed file upload");
>         return false;
> 
>     }
> }
> 
> FckEditorPathService interface
> 
> public class SimpleFckEditorPathServiceImpl implements
> FckEditorPathService
> {
> 
>     @Override
>     public String getServerPathForFiles() {
>         return "/wwwfiles";
>     }
> 
>     @Override
>     public String getClientURLStartForFiles() {
>         return "C:\\logs\\wwwfiles\\";
> 
>     }
> 
> }
> 
> pom.xml
> 
> <!-- Run the application using "mvn jetty:run" -->
>             <plugin>
>                 <groupId>org.mortbay.jetty</groupId>
>                 <artifactId>maven-jetty-plugin</artifactId>
>                 <version>6.1.9</version>
>                 <configuration>
>                     <!-- Log to the console. -->
>                     <requestLog
> implementation="org.mortbay.jetty.NCSARequestLog">
>                         <!-- This doesn't do anything for Jetty, but is a
> workaround for a Maven bug
>                                          that prevents the requestLog from
> being set. -->
>                         <append>true</append>
>                     </requestLog>
>                     <contextHandlers>
>                         <contextHandler
> implementation="org.mortbay.jetty.handler.ContextHandler">
>                             <contextPath>/wwwfiles</contextPath>
>                             <resourceBase>C:\logs\wwwfiles</resourceBase>
>                             <handler
> implementation="org.mortbay.jetty.handler.ResourceHandler"></handler>
>                         </contextHandler>
>                     </contextHandlers>
>                 </configuration>
>             </plugin>
> 
> and AppModule.java
> 
> public static void bind(ServiceBinder binder) {
>         binder.bind(FckEditorUserRightService.class,
> SimpleFckEditorUserRightServiceImpl.class);
>         binder.bind(FckEditorPathService.class,
> SimpleFckEditorPathServiceImpl.class);
>         binder.bind(FckEditorConnector.class,
> SimleFckEditorConnector.class);
>     }
> 
> As You see I just copied the tutorial.
> 
> 
> [INFO] Started Jetty Server
> [INFO] connector.Dispatcher Connector initialized to
> com.orientimport.easyfck.connector.FckEditorConnectorBridge
> [DEBUG] AppModule.FckEditorConnector Creating service
> 'FckEditorConnector'.
> [WARN] TapestryModule.HttpServletRequestHandler Unable to add
> 'FckEditorInterceptFilter' as a dependency of 'StoreIntoGlobals', as that
> forms a dependency cycle ('StoreIntoGlobals' depends on itself via
> 'FckEditorInterceptFilter'). The dependency has been ignored.
> .....
> 
> 
> 
> [INFO] AppModule.TimingFilter Request time: 16 ms
> 127.0.0.1 -  -  [29/mar/2010:08:03:44 +0000] "GET
> /paruszynska/assets/easyfck/fckeditor/editor/fckeditor.html?InstanceName=fckeditor&Toolbar=Default
> HTTP/1.1" 304 0 "http://localhost:8080/paruszynska/pagecms"; "Mozilla/5.0
> (Windows; U; Windows NT 5.1; pl; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
> (.NET CLR 3.5.30729)"
> 127.0.0.1 -  -  [29/mar/2010:08:03:45 +0000] "GET
> /paruszynska/assets/easyfck/configure?id=fckeditor/fck.js HTTP/1.1" 200
> 1051
> "
> http://localhost:8080/paruszynska/assets/easyfck/fckeditor/editor/fckeditor.html?InstanceName=fckeditor&Toolbar=Default";
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.2) Gecko/20100316
> Firefox/3.6.2 (.NET CLR 3.5.30729)"
> [INFO] handlers.RequestCycleHandler UserAction initialized to
> com.orientimport.easyfck.resolvers.FckEditorUserRightsResolver
> [INFO] handlers.RequestCycleHandler UserPathBuilder initialized to
> com.orientimport.easyfck.resolvers.FckEditorPathResolver
> [DEBUG] AppModule.FckEditorUserRightService Creating service
> 'FckEditorUserRightService'.
> [DEBUG] AppModule.FckEditorUserRightService Invoking constructor
> pl.syso.paruszynska.services.SimpleFckEditorUserRightServiceImpl(Logger)
> (at
> SimpleFckEditorUserRightServiceImpl.java:18) via
> pl.syso.paruszynska.services.AppModule.bind(Servi
> ceBinder) (at AppModule.java:35).
> [INFO] AppModule.FckEditorUserRightService Allowed file browsing
> [DEBUG] AppModule.FckEditorPathService Creating service
> 'FckEditorPathService'.
> [DEBUG] AppModule.FckEditorPathService Invoking constructor
> pl.syso.paruszynska.
> services.SimpleFckEditorPathServiceImpl() (at
> SimpleFckEditorPathServiceImpl.java:14) via
> pl.syso.paruszynska.services.AppModule.bind(ServiceBinder) (at
> AppModule.java:35).
> [DEBUG] AppModule.FckEditorConnector Invoking constructor
> pl.syso.paruszynska.services.SimleFckEditorConnector() (at
> SimleFckEditorConnector.java:27) via
> pl.syso.paruszynska.services.AppModule.bind(ServiceBinder) (at
> AppModule.java:35).
> CONSTRUCTOR SimleFckEditorConnector
> 
>          Current folder: /
> 2010-03-29 10:05:08.975::WARN:
> /paruszynska/assets/easyfck/fckeditor/editor/filemanager/browser/default/fckeditor
> java.lang.RuntimeException: java.lang.NullPointerException
>         at
> net.fckeditor.connector.Tapestry5InterceptFckActivityFilter.service(Tapestry5InterceptFckActivityFilter.java:78)
>         at
> $HttpServletRequestHandler_127a8f1ac51.service($HttpServletRequestHandler_127a8f1ac51.java)
>         at
> org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:726)
>         at
> $HttpServletRequestHandler_127a8f1ac51.service($HttpServletRequestHandler_127a8f1ac51.java)
>         at
> $HttpServletRequestHandler_127a8f1ac4a.service($HttpServletRequestHandler_127a8f1ac4a.java)
>         at
> org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:127)
> 
>         at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>         at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> 
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>         at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
>         at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> Caused by: java.lang.NullPointerException
>         at
> net.fckeditor.response.GetResponse.setFiles(GetResponse.java:236)
>         at
> net.fckeditor.connector.Dispatcher.getFoldersAndOrFiles(Dispatcher.java:216)
>         at net.fckeditor.connector.Dispatcher.doGet(Dispatcher.java:166)
>         at
> net.fckeditor.connector.Tapestry5InterceptFckActivityFilter.service(Tapestry5InterceptFckActivityFilter.java:76)
>         ... 22 more
> 127.0.0.1 -  -  [29/mar/2010:08:05:08 +0000] "GET
> /paruszynska/assets/easyfck/fckeditor/editor/filemanager/browser/default/fckeditor?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1269849907986
> HTTP/1.1" 500 6094 "
> http://localhost:8080/paruszynska/assets/easyfck/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=fckeditor";
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.2) Gecko/20100316
> Firefox/3.6.2 (.NET CLR 3.5.30729)"
> 
> 
> 
> When i press 'Browse Server' in 'Image Properties window i get this
> message:
> The server didn't reply with a proper XML data. Please check your
> configuration.
> 
> I think the problem is that i always get Current Folder as a / (ROOT
> folder). I found in source code of easyfckeditor that i can put
> configuration.add(FckEditorConstants.APPLICATION_CONTEXT, "/wwwfiles");
> to change it but it does nothing good to my app.
> 
> 
> 
> Tomek
> 
> 
> 
> 
> 
> 2010/3/28 Ville Virtanen <ville.virta...@cerion.fi>
> 
>>
>> Hi,
>>
>> can you attach the stack trace for further analysis? Also what servlet
>> container are you using to run software?
>>
>>  -Ville
>>
>> Tomek-28 wrote:
>> >
>> > Hi,
>> >
>> > i need to integrate a WYSIWYG editor to my website. I found only 2
>> > projects
>> > that integrate fckeditor with tapestry 5 - ChenilleKit and
>> easyfckeditor.
>> > I
>> > found that easyfckeditor support file uploads while ChenilleKit
>> doesn't.
>> I
>> > went through author's tutorial:
>> > http://t5-easy-fckeditor.kenai.com/FileUploads.html
>> > but after implementing and binding FckEditorUserRightService class:
>> >
>> > binder.bind(FckEditorUserRightService.class,
>> > SimpleFckEditorUserRightServiceImpl.class);
>> >
>> > I can't browse any files. I got a message:
>> > "*Invalid current folder specified*"
>> >
>> > Implementing and binding FckEditorPathService.class:
>> >
>> > binder.bind(FckEditorPathService.class,
>> > SimpleFckEditorPathServiceImpl.class);
>> >
>> > does nothing - the same message. I even tried to make my own connector
>> but
>> > I
>> > get NullPointerException all the time.
>> > Has anyone used easyfckeditor? Or maybe there is another way to have
>> > WYSIWYG
>> > editor and file upload support?
>> >
>> >
>> > Tomek
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/easyfckeditor-and-file-upload-tp28055044p28058075.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/easyfckeditor-and-file-upload-tp28055044p28067412.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to