View Poll Results: If you read it, did you find DirectJNgine User's Guide adequate?

Voters
54. You may not vote on this poll
  • Yes

    40 74.07%
  • No

    14 25.93%
  1. #421
    Ext JS Premium Member
    Join Date
    May 2009
    Location
    Barcelona (Spain)
    Posts
    218
    Vote Rating
    19
    pagullo will become famous soon enough pagullo will become famous soon enough

      0  

    Default


    but I need to intercept the calls to my method before they happen. By analyzing your source code, I've found that
    every server side method is callled by the code on the line 144 of DispatcherBase class
    I just forgot to tell you that the portable way to intercept a method call is to create your own Dispatcher that extends SsmDispatcher: you can get what you want that way, without having to hack DJN code base.

    Check how SsmDispatcher is used and registered for details.

    Regards,
    Pedro Agulló, Barcelona (Spain)
    Agile team building, consulting, training & development
    DirectJNgine: http://code.google.com/p/directjngine - Log4js-ext: http://www.softwarementors.com/projects/p/log4js-ext/

  2. #422
    Ext JS Premium Member
    Join Date
    May 2009
    Location
    Barcelona (Spain)
    Posts
    218
    Vote Rating
    19
    pagullo will become famous soon enough pagullo will become famous soon enough

      0  

    Default Post about the future of DJN (II)

    Post about the future of DJN (II)


    There is a new post discussing the future of DJN, and the new features that might be added.

    You can find it at http://softdevbuilttolast.wordpress....jngine-2-1-ii/

    Regards,
    Pedro Agulló, Barcelona (Spain)
    Agile team building, consulting, training & development
    DirectJNgine: http://code.google.com/p/directjngine - Log4js-ext: http://www.softwarementors.com/projects/p/log4js-ext/

  3. #423
    Ext JS Premium Member
    Join Date
    May 2009
    Location
    Barcelona (Spain)
    Posts
    218
    Vote Rating
    19
    pagullo will become famous soon enough pagullo will become famous soon enough

      0  

    Default Beyond DJN 2.1 (III)

    Beyond DJN 2.1 (III)


    This post might be of interested to those interested in knowing/participating in what might be there for future versions of DJN.

    As always, ideas are welcome

    Regards,
    Pedro Agulló, Barcelona (Spain)
    Agile team building, consulting, training & development
    DirectJNgine: http://code.google.com/p/directjngine - Log4js-ext: http://www.softwarementors.com/projects/p/log4js-ext/

  4. #424
    Ext JS Premium Member
    Join Date
    May 2009
    Location
    Barcelona (Spain)
    Posts
    218
    Vote Rating
    19
    pagullo will become famous soon enough pagullo will become famous soon enough

      0  

    Default DirectJNgine 2.2 beta 1 is out!

    DirectJNgine 2.2 beta 1 is out!


    DJN 2.2 beta 1 adds some additional features to DJN 2.1, including:
    • Auto-conversion of function arguments to arrays, to handle some ExtJs scenarios .
    • Custom Date support, to avoid do-it-yourself date handling.
    • Expermiental: extra server application exception data.
    You can get additional information here.
    Pedro Agulló, Barcelona (Spain)
    Agile team building, consulting, training & development
    DirectJNgine: http://code.google.com/p/directjngine - Log4js-ext: http://www.softwarementors.com/projects/p/log4js-ext/

  5. #425
    Sencha User
    Join Date
    Jul 2012
    Posts
    5
    Vote Rating
    0
    n0n3 is on a distinguished road

      0  

    Default directjengine + spring mvc + maven

    directjengine + spring mvc + maven


    Hey guys, I’m trying to configure it to work with spring mvc in a maven project, but the djn/directprovider just gives me

    javax.servlet.ServletException: Servlet.init() for servlet DjnServlet threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    java.lang.Thread.run(Thread.java:636)
    root cause
    java.lang.NullPointerException
    com.softwarementors.extjs.djn.StringUtils.getNonBlankValues(StringUtils.java:67)
    com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createApiConfigurationsFromServletConfigurationApi(DirectJNgineServlet.java:438)
    com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createDirectJNgineRouter(DirectJNgineServlet.java:175)
    com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.init(DirectJNgineServlet.java:155)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    java.lang.Thread.run(Thread.java:636)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.



    Configured the web.xml properly, all the needed resources can be accessed on the server.
    I’ve took the FormPostDemo files and put them in my spring app, everything seems to be configured properly.
    How is the Api.js generated? It seems that I have the same Api.js as copied, not getting regenerated, Is there a difference what kind of project I have and the folder structure?

    Nothing relative in the log with the debug = true

  6. #426
    Ext JS Premium Member
    Join Date
    May 2009
    Location
    Barcelona (Spain)
    Posts
    218
    Vote Rating
    19
    pagullo will become famous soon enough pagullo will become famous soon enough

      0  

    Default


    Quote Originally Posted by n0n3 View Post
    Hey guys, I’m trying to configure it to work with spring mvc in a maven project, but the djn/directprovider just gives me

    javax.servlet.ServletException: Servlet.init() for servlet DjnServlet threw exception
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    java.lang.Thread.run(Thread.java:636)
    root cause
    java.lang.NullPointerException
    com.softwarementors.extjs.djn.StringUtils.getNonBlankValues(StringUtils.java:67)
    com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createApiConfigurationsFromServletConfigurationApi(DirectJNgineServlet.java:438)
    com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.createDirectJNgineRouter(DirectJNgineServlet.java:175)
    com.softwarementors.extjs.djn.servlet.DirectJNgineServlet.init(DirectJNgineServlet.java:155)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    java.lang.Thread.run(Thread.java:636)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.



    Configured the web.xml properly, all the needed resources can be accessed on the server.
    I’ve took the FormPostDemo files and put them in my spring app, everything seems to be configured properly.
    How is the Api.js generated? It seems that I have the same Api.js as copied, not getting regenerated, Is there a difference what kind of project I have and the folder structure?

    Nothing relative in the log with the debug = true
    Some quick notes:

    The api file is not regenerated if there are no changes, to avoid invalidating browser caches, so do not assume it will be recreated on app startup: delete or rename it to force DJN to regenerate it.

    On the other hand, if you are having some problem due to permissions, remember that you can configure DJN to keep the files in memory (see the docs).

    I think you might be missing some little detail, it really looks like you misstyped something. Why don't you try debugging? You've got a .jar with the source. If you are using Eclipse or a similar tool it will be easy to see what's going on.

    Regards,
    Pedro Agulló, Barcelona (Spain)
    Agile team building, consulting, training & development
    DirectJNgine: http://code.google.com/p/directjngine - Log4js-ext: http://www.softwarementors.com/projects/p/log4js-ext/

  7. #427
    Sencha User
    Join Date
    Jul 2012
    Posts
    5
    Vote Rating
    0
    n0n3 is on a distinguished road

      0  

    Default


    Removed Api.js - not regenerated, configured directjngine to use in memory Api file, still the same problem, all that tomcat6 gives me is :

    Jul 2, 2012 10:50:34 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive sp1n3.web.war
    INFO [http-8080-16] (DirectJNgineServlet.java:307) - Servlet GLOBAL configuration: debug=false, providersUrl=djn/directprovider, minify=true, batchRequestsMultithreadingEnabled=true, batchRequestsMinThreadsPoolSize=16, batchRequestsMaxThreadsPoolSize=80, batchRequestsMaxThreadsPerRequest=8, batchRequestsMaxThreadKeepAliveSeconds=60, gsonBuilderConfiguratorClass=com.softwarementors.extjs.djn.gson.DefaultGsonBuilderConfigurator, dispatcherClass=com.softwarementors.extjs.djn.servlet.ssm.SsmDispatcher, jsonRequestProcessorThreadClass=com.softwarementors.extjs.djn.servlet.ssm.SsmJsonRequestProcessorThread, contextPath=--not specified: calculated via Javascript--, createSourceFiles=true
    INFO [http-8080-16] (DirectJNgineServlet.java:171) - Servlet GLOBAL configuration: registryConfiguratorClass=

    nothing else on the requests or anything...
    And

    . If you are using Eclipse or a similar tool it will be easy to see what's going on. -- not that experienced yet

    This is my web.xml conf for directjengine :
    Code:
    <!-- DirectJNgine servlet -->
    	<servlet>
    		<servlet-name>DjnServlet</servlet-name>
    		<servlet-class>
    			com.softwarementors.extjs.djn.servlet.DirectJNgineServlet</servlet-class>
    		<init-param>
    			<param-name>providersUrl</param-name>
    			<param-value>djn/directprovider</param-value>
    		</init-param>
    		<!-- more parameters... -->
    		<load-on-startup>1</load-on-startup>
    	</servlet>
    
    
    	<servlet-mapping>
    		<servlet-name>DjnServlet</servlet-name>
    		<url-pattern>/djn/directprovider/*</url-pattern>
    	</servlet-mapping>
    
    
    	<init-param>
    		<param-name>apis</param-name>
    		<param-value>
    			demo
    		</param-value>
    	</init-param>
    
    
    
    
    	<init-param>
    		<param-name>createSourceFiles</param-name>
    		<param-value>false</param-value>
    	</init-param>
    	
    	<init-param>
    		<param-name>debug</param-name>
    		<param-value>true</param-value>
    	</init-param>
    	<init-param>
    		<param-name>demo.apiFile</param-name>
    		<param-value>demo/Api.js</param-value>
    	</init-param>
    	<init-param>
    		<param-name>demo.apiNamespace</param-name>
    		<param-value>Ext.app</param-value>
    	</init-param>
    
    
    	<init-param>
    		<param-name>demo.classes</param-name>
    		<param-value>
    			com.myproject.directjengine.FormPostDemo
    		</param-value>
    	</init-param>
    Folder structure for the demo

    src/main/webapp/demo (with the FormPostDemo.html and .js files)

    this folder will be on localhost:8080/appName/demo


    Any other suggestions?

  8. #428
    Ext JS Premium Member
    Join Date
    May 2009
    Location
    Barcelona (Spain)
    Posts
    218
    Vote Rating
    19
    pagullo will become famous soon enough pagullo will become famous soon enough

      0  

    Default


    Oh, btw...DirectJNgine has *tons* of debugging assertions. If you do not have assertions enabled in your web app, enable them.

    It is very likely that they will show the exact line were something is going wrong.
    Pedro Agulló, Barcelona (Spain)
    Agile team building, consulting, training & development
    DirectJNgine: http://code.google.com/p/directjngine - Log4js-ext: http://www.softwarementors.com/projects/p/log4js-ext/

  9. #429
    Sencha User
    Join Date
    Jul 2012
    Posts
    5
    Vote Rating
    0
    n0n3 is on a distinguished road

      0  

    Default


    enabled assertions, now i can see the exact line, but still nothing in the log for this app!

    log4j.logger.com.softwarementors.extjs.djn=ALL

    am i missing something? i don't get it

  10. #430
    Sencha User
    Join Date
    Jul 2012
    Posts
    5
    Vote Rating
    0
    n0n3 is on a distinguished road

      0  

    Default


    Recreated the project and everything looks fine, thanks a lot for your time and help!

Thread Participants: 87

  1. Animal (5 Posts)
  2. barton (4 Posts)
  3. Condor (1 Post)
  4. mauro_monti (6 Posts)
  5. mbarto (1 Post)
  6. aconran (1 Post)
  7. MoShAn480 (1 Post)
  8. asgillett (2 Posts)
  9. seade (4 Posts)
  10. zaqwsxqwer (3 Posts)
  11. Sesshomurai (16 Posts)
  12. ThierryC (3 Posts)
  13. maxm165 (3 Posts)
  14. techstudios (2 Posts)
  15. sayonara (2 Posts)
  16. kschlaudt (1 Post)
  17. hschaefer123 (2 Posts)
  18. omarc (2 Posts)
  19. lxbzmy (4 Posts)
  20. mct (6 Posts)
  21. mediacept (2 Posts)
  22. dionisexorcius (1 Post)
  23. alper (1 Post)
  24. steverc (2 Posts)
  25. chrizmaster (18 Posts)
  26. J@y (21 Posts)
  27. Georgioa (6 Posts)
  28. wguan (1 Post)
  29. minneyar (16 Posts)
  30. jhoweaa (1 Post)
  31. Ramez (2 Posts)
  32. malus (1 Post)
  33. dweller (8 Posts)
  34. stdunbar (1 Post)
  35. vlagorce (20 Posts)
  36. cwilliso (1 Post)
  37. Whatty (13 Posts)
  38. Ice (1 Post)
  39. clynnh (1 Post)
  40. SreevaniN (1 Post)
  41. Stsalomon90 (1 Post)
  42. GregT (9 Posts)
  43. jcalfee (6 Posts)
  44. set_ti (1 Post)
  45. maho2nd (3 Posts)
  46. dreamtaotao (3 Posts)
  47. Toxa (4 Posts)
  48. tungchau (3 Posts)
  49. wlan0 (2 Posts)
  50. jpr (2 Posts)
  51. gianmarco (5 Posts)
  52. extjslikeit (2 Posts)
  53. harmen_wessels (1 Post)
  54. Olivercomputing2 (4 Posts)
  55. vanessa_ng (2 Posts)
  56. alois.cochard (5 Posts)
  57. kyrillos52 (2 Posts)
  58. Tod (1 Post)
  59. Alinanila (1 Post)
  60. tfannon (2 Posts)
  61. Kynao (1 Post)
  62. feiq (4 Posts)
  63. dalt (1 Post)
  64. xfolch (1 Post)
  65. avijit (1 Post)
  66. marcelsnews (2 Posts)
  67. maddhippy (1 Post)
  68. sritter (1 Post)
  69. july (2 Posts)
  70. jtkeller7983 (1 Post)
  71. lfranchini (2 Posts)
  72. 7/11 (2 Posts)
  73. yAdEs (1 Post)
  74. zazz (1 Post)
  75. waqar (5 Posts)
  76. pjain11 (1 Post)
  77. alexMobimesh (2 Posts)
  78. zachHurt (4 Posts)
  79. n0n3 (5 Posts)
  80. adavis2 (1 Post)
  81. mark.peters (1 Post)
  82. lee el (4 Posts)
  83. frengo19 (3 Posts)
  84. prakashwagle (1 Post)
  85. extejnar (2 Posts)
  86. alin@sonatype.com (1 Post)
  87. ajay_kango (1 Post)