Percona mysql

2012-05-10 Thread Ron X
hi,

on official site of MySQL - jdbc-driver has version 5.1.20.

but Percona use MySQL version 5.5.x

what driver can i use working with Percona? (there is no 5.5 driver on
official site and maven repo)

thank you.
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Ron X
i have 50M of DB. i don't think that it can take down the instance.
but i set
-Xmx32m
and nothing changed.

i think that is not in settings. that is something fundamental.

any ideas?

2012/5/4 Ramsey Gurley rgur...@smarthealth.com

 If you are fetching tens of thousands of rows for a list page, you may
 want to consider using the ERXBatchingDisplayGroup to minimize memory
 usage. By default, the WODisplayGroup pulls all the EOs into memory.  The
 batching display group uses the database to handle the pagination. It only
 creates the EO instances for the displayed batch.

 If you're using a EODetailDataSource in the list page, the batching
 display group doesn't work AFAIK. In the case of large to-many
 relationships though, I would recommend you simply not model it as a
 relationship and handle it in code.  In that case, you'd probably want to
 place a limit on your fetch spec to prevent all the EOs being pulled into
 memory.  Big to-many relationships tend to cause issues when you
 addObjectToBothSides anyway.

 Ramsey

 On May 4, 2012, at 6:58 AM, Ron X wrote:

  i have small database - about 50 Mb...
 
  code:
  ListPageInterface listPage =
 D2W.factory().listPageForEntityNamed(
  Song.ENTITY_NAME, session());
  EODataSource dataSource = new EODatabaseDataSource(session()
  .defaultEditingContext(), Song.ENTITY_NAME);
  listPage.setDataSource(dataSource);
 
  return (WOComponent) listPage;
 
  and error:
 
   N  19.07 MB used/104.87 MB free [WorkerThread8]
 (ERXNSLogLog4jBridge.java:43)  -
 er.extensions.appserver.ERXComponentRequestHandler: Exception occurred
 while handling request:
  com.webobjects.foundation.NSForwardException
 [java.lang.OutOfMemoryError] Java heap space:java.lang.OutOfMemoryError:
 Java heap space
  [2012-5-4 6:54:11 PDT] WorkerThread8
 com.webobjects.foundation.NSForwardException [java.lang.OutOfMemoryError]
 Java heap space:java.lang.OutOfMemoryError: Java heap space
  at
 com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
  at
 com.webobjects.eocontrol.EOEditingContext.handleError(EOEditingContext.java:2971)
  at
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4071)
  at
 er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
  at
 com.webobjects.eoaccess.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java:589)
  at
 com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java:2132)
  at
 er.extensions.appserver.ERXDisplayGroup.fetch(ERXDisplayGroup.java:135)
  at
 er.directtoweb.pages.ERD2WListPage._fetchDisplayGroup(ERD2WListPage.java:461)
  at
 er.directtoweb.pages.ERD2WListPage.setupPhase(ERD2WListPage.java:561)
  at
 er.directtoweb.pages.ERD2WListPage.appendToResponse(ERD2WListPage.java:492)
  at
 com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
  at
 er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:558)
  at
 com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
  at
 er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1994)
  at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:190)
  at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
  at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
  at
 er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
  at
 er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
  at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
  at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2098)
  at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2063)
  at
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
  at
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
  at java.lang.Thread.run(Thread.java:680)
  Caused by: java.lang.OutOfMemoryError: Java heap space
  at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:2145)
  at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1922)
  at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3425)
  at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:481)
  at
 com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3120)
  at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2288)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2709)
  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2671)
  at 

Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Johann Werner

Am 10.05.2012 um 09:49 schrieb Ron X:

 i have 50M of DB. i don't think that it can take down the instance.
 but i set 
 -Xmx32m

32MB is quite small, try with -Xms512m -Xmx1024m and see if your problem goes 
away


 and nothing changed.
 
 i think that is not in settings. that is something fundamental. 
 
 any ideas?
 
 2012/5/4 Ramsey Gurley rgur...@smarthealth.com
 If you are fetching tens of thousands of rows for a list page, you may want 
 to consider using the ERXBatchingDisplayGroup to minimize memory usage. By 
 default, the WODisplayGroup pulls all the EOs into memory.  The batching 
 display group uses the database to handle the pagination. It only creates the 
 EO instances for the displayed batch.
 
 If you're using a EODetailDataSource in the list page, the batching display 
 group doesn't work AFAIK. In the case of large to-many relationships though, 
 I would recommend you simply not model it as a relationship and handle it in 
 code.  In that case, you'd probably want to place a limit on your fetch spec 
 to prevent all the EOs being pulled into memory.  Big to-many relationships 
 tend to cause issues when you addObjectToBothSides anyway.
 
 Ramsey
 
 On May 4, 2012, at 6:58 AM, Ron X wrote:
 
  i have small database - about 50 Mb...
 
  code:
  ListPageInterface listPage = D2W.factory().listPageForEntityNamed(
  Song.ENTITY_NAME, session());
  EODataSource dataSource = new EODatabaseDataSource(session()
  .defaultEditingContext(), Song.ENTITY_NAME);
  listPage.setDataSource(dataSource);
 
  return (WOComponent) listPage;
 
  and error:
 
   N  19.07 MB used/104.87 MB free [WorkerThread8] 
  (ERXNSLogLog4jBridge.java:43)  - 
  er.extensions.appserver.ERXComponentRequestHandler: Exception occurred 
  while handling request:
  com.webobjects.foundation.NSForwardException [java.lang.OutOfMemoryError] 
  Java heap space:java.lang.OutOfMemoryError: Java heap space
  [2012-5-4 6:54:11 PDT] WorkerThread8 
  com.webobjects.foundation.NSForwardException [java.lang.OutOfMemoryError] 
  Java heap space:java.lang.OutOfMemoryError: Java heap space
  at 
  com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
  at 
  com.webobjects.eocontrol.EOEditingContext.handleError(EOEditingContext.java:2971)
  at 
  com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4071)
  at 
  er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
  at 
  com.webobjects.eoaccess.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java:589)
  at 
  com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java:2132)
  at 
  er.extensions.appserver.ERXDisplayGroup.fetch(ERXDisplayGroup.java:135)
  at 
  er.directtoweb.pages.ERD2WListPage._fetchDisplayGroup(ERD2WListPage.java:461)
  at er.directtoweb.pages.ERD2WListPage.setupPhase(ERD2WListPage.java:561)
  at 
  er.directtoweb.pages.ERD2WListPage.appendToResponse(ERD2WListPage.java:492)
  at 
  com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
  at 
  er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:558)
  at 
  com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
  at 
  er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1994)
  at 
  er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:190)
  at 
  er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
  at 
  er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
  at 
  er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
  at 
  er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
  at 
  com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
  at 
  er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2098)
  at 
  er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2063)
  at 
  com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
  at 
  com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
  at java.lang.Thread.run(Thread.java:680)
  Caused by: java.lang.OutOfMemoryError: Java heap space
  at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:2145)
  at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1922)
  at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3425)
  at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:481)
  at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3120)
  at 

Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Ron X
ESs-Mac:~ user$ top

5340  java 94.2  01:40.99 42/1 1370  393   487M+  9124K  525M+

RuntimeException: Statement running too long
  at
er.extensions.eof.ERXEOAccessUtilities.logExpression(ERXEOAccessUtilities.java:1213)
  at
er.extensions.eof.ERXAdaptorChannelDelegate.adaptorChannelDidEvaluateExpression(ERXAdaptorChannelDelegate.java:81)
 ... skipped 5 stack elements
  at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
  at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:163)
 ... skipped 6 stack elements
  at
er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:66)
 ... skipped 1 stack elements
  at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
  at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
  at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
 ... skipped 1 stack elements
  at
com.legalsounds.MainNavigationController.mostDownloadedAction(MainNavigationController.java:77)
 ... skipped 15 stack elements
  at
er.extensions.appserver.navigation.ERXNavigationMenuItem.menuItemSelected(ERXNavigationMenuItem.java:137)
 ... skipped 64 stack elements
  at
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
  at
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
  at
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
  at
er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
  at
er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
  ... skipped 6 stack elements

2012/5/10 Johann Werner j...@oyosys.de

 -Xms512m -Xmx1024m
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Johann Werner
Your fetch is taking too long. What is the SQL that is sent to your db? How big 
is the resultset you are expecting? Perhaps your indexes are broken (you have 
indexes, don't you)?

jw


Am 10.05.2012 um 10:37 schrieb Ron X:

 ESs-Mac:~ user$ top
 
 5340  java 94.2  01:40.99 42/1 1370  393   487M+  9124K  525M+
 
 RuntimeException: Statement running too long
   at 
 er.extensions.eof.ERXEOAccessUtilities.logExpression(ERXEOAccessUtilities.java:1213)
   at 
 er.extensions.eof.ERXAdaptorChannelDelegate.adaptorChannelDidEvaluateExpression(ERXAdaptorChannelDelegate.java:81)
  ... skipped 5 stack elements
   at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
   at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:163)
  ... skipped 6 stack elements
   at 
 er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:66)
  ... skipped 1 stack elements
   at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
   at 
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
   at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
  ... skipped 1 stack elements
   at 
 com.legalsounds.MainNavigationController.mostDownloadedAction(MainNavigationController.java:77)
  ... skipped 15 stack elements
   at 
 er.extensions.appserver.navigation.ERXNavigationMenuItem.menuItemSelected(ERXNavigationMenuItem.java:137)
  ... skipped 64 stack elements
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
   at 
 er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
   ... skipped 6 stack elements
 
 2012/5/10 Johann Werner j...@oyosys.de
 -Xms512m -Xmx1024m
 
 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Ron X
i use Navicat to see the DB

so select * from Song was 0.8 sec.

but in code the same query:

ERROR 150.87 MB used/359.07 MB free [WorkerThread2]
(ERXEOAccessUtilities.java:1213) Page:
er.modern.look.pages.ERMODQueryEntitiesPage - Configuration: null -
Song@116895853 expression took 16567 ms:

2012/5/10 Johann Werner j...@oyosys.de

 Your fetch is taking too long. What is the SQL that is sent to your db?
 How big is the resultset you are expecting? Perhaps your indexes are broken
 (you have indexes, don't you)?

 jw


 Am 10.05.2012 um 10:37 schrieb Ron X:

 ESs-Mac:~ user$ top

 5340  java 94.2  01:40.99 42/1 1370  393   487M+  9124K  525M+

 RuntimeException: Statement running too long
   at
 er.extensions.eof.ERXEOAccessUtilities.logExpression(ERXEOAccessUtilities.java:1213)
   at
 er.extensions.eof.ERXAdaptorChannelDelegate.adaptorChannelDidEvaluateExpression(ERXAdaptorChannelDelegate.java:81)
  ... skipped 5 stack elements
   at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
   at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:163)
  ... skipped 6 stack elements
   at
 er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:66)
  ... skipped 1 stack elements
   at
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
   at
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
   at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
  ... skipped 1 stack elements
   at
 com.legalsounds.MainNavigationController.mostDownloadedAction(MainNavigationController.java:77)
  ... skipped 15 stack elements
   at
 er.extensions.appserver.navigation.ERXNavigationMenuItem.menuItemSelected(ERXNavigationMenuItem.java:137)
  ... skipped 64 stack elements
   at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
   at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
   at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
   at
 er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
   at
 er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
   ... skipped 6 stack elements

 2012/5/10 Johann Werner j...@oyosys.de

 -Xms512m -Xmx1024m





 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Ron X
that was in debug mode.

in run-mode:

WARN  422.22 MB used/87.72 MB free [WorkerThread3]
(ERXNSLogLog4jBridge.java:43) (ListSong) -
er.extensions.appserver.ERXComponentRequestHandler: Exception occurred
while handling request:
java.lang.ClassCastException: java.lang.String cannot be cast to
er.directtoweb.delegates.ERDBranchDelegateInterface
ERROR 426.75 MB used/83.18 MB free [WorkerThread3]
(ERXApplication.java:1786) (ListSong) - Exception caught: java.lang.String
cannot be cast to er.directtoweb.delegates.ERDBranchDelegateInterface


ClassCastException: java.lang.String cannot be cast to
er.directtoweb.delegates.ERDBranchDelegateInterface
  at er.directtoweb.pages.ERD2WPage.pageController(ERD2WPage.java:1173)
  at
er.directtoweb.components.buttons.ERDControllerButton.branchDelegate(ERDControllerButton.java:64)
  at
er.directtoweb.components.buttons.ERDControllerButton.branchChoices(ERDControllerButton.java:136)
 ... skipped 94 stack elements
  at
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:190)
  at
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
  at
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
  at
er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
  at
er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
  ... skipped 6 stack elements
_ignoredPackages:: (  )

2012/5/10 Ron X ron.x.by...@gmail.com

 i use Navicat to see the DB

 so select * from Song was 0.8 sec.

 but in code the same query:

 ERROR 150.87 MB used/359.07 MB free [WorkerThread2]
 (ERXEOAccessUtilities.java:1213) Page:
 er.modern.look.pages.ERMODQueryEntitiesPage - Configuration: null -
 Song@116895853 expression took 16567 ms:


 2012/5/10 Johann Werner j...@oyosys.de

 Your fetch is taking too long. What is the SQL that is sent to your db?
 How big is the resultset you are expecting? Perhaps your indexes are broken
 (you have indexes, don't you)?

 jw


 Am 10.05.2012 um 10:37 schrieb Ron X:

 ESs-Mac:~ user$ top

 5340  java 94.2  01:40.99 42/1 1370  393   487M+  9124K  525M+

 RuntimeException: Statement running too long
   at
 er.extensions.eof.ERXEOAccessUtilities.logExpression(ERXEOAccessUtilities.java:1213)
   at
 er.extensions.eof.ERXAdaptorChannelDelegate.adaptorChannelDidEvaluateExpression(ERXAdaptorChannelDelegate.java:81)
  ... skipped 5 stack elements
   at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
   at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:163)
  ... skipped 6 stack elements
   at
 er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:66)
  ... skipped 1 stack elements
   at
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
   at
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
   at
 er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
  ... skipped 1 stack elements
   at
 com.legalsounds.MainNavigationController.mostDownloadedAction(MainNavigationController.java:77)
  ... skipped 15 stack elements
   at
 er.extensions.appserver.navigation.ERXNavigationMenuItem.menuItemSelected(ERXNavigationMenuItem.java:137)
  ... skipped 64 stack elements
   at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
   at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
   at
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
   at
 er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
   at
 er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
   ... skipped 6 stack elements

 2012/5/10 Johann Werner j...@oyosys.de

 -Xms512m -Xmx1024m






 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Johann Werner

Am 10.05.2012 um 10:44 schrieb Ron X:

 i use Navicat to see the DB
 
 so select * from Song was 0.8 sec.
 
 but in code the same query:
 
 ERROR 150.87 MB used/359.07 MB free [WorkerThread2] 
 (ERXEOAccessUtilities.java:1213) Page: 
 er.modern.look.pages.ERMODQueryEntitiesPage - Configuration: null - 
 Song@116895853 expression took 16567 ms:

If the fetch takes nearly 17s instead of 0.8s there must be something wrong (or 
at least different). What is the exact SQL that is sent to the db, you should 
look at that, perhaps something in your model is wrong?


 
 2012/5/10 Johann Werner j...@oyosys.de
 Your fetch is taking too long. What is the SQL that is sent to your db? How 
 big is the resultset you are expecting? Perhaps your indexes are broken (you 
 have indexes, don't you)?
 
 jw
 
 
 Am 10.05.2012 um 10:37 schrieb Ron X:
 
 ESs-Mac:~ user$ top
 
 5340  java 94.2  01:40.99 42/1 1370  393   487M+  9124K  525M+
 
 RuntimeException: Statement running too long
   at 
 er.extensions.eof.ERXEOAccessUtilities.logExpression(ERXEOAccessUtilities.java:1213)
   at 
 er.extensions.eof.ERXAdaptorChannelDelegate.adaptorChannelDidEvaluateExpression(ERXAdaptorChannelDelegate.java:81)
  ... skipped 5 stack elements
   at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
   at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:163)
  ... skipped 6 stack elements
   at 
 er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:66)
  ... skipped 1 stack elements
   at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
   at 
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
   at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
  ... skipped 1 stack elements
   at 
 com.legalsounds.MainNavigationController.mostDownloadedAction(MainNavigationController.java:77)
  ... skipped 15 stack elements
   at 
 er.extensions.appserver.navigation.ERXNavigationMenuItem.menuItemSelected(ERXNavigationMenuItem.java:137)
  ... skipped 64 stack elements
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
   at 
 er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
   ... skipped 6 stack elements
 
 2012/5/10 Johann Werner j...@oyosys.de
 -Xms512m -Xmx1024m
 
 
 
 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entirely independent EOF on Quartz Threads - How to do?

2012-05-10 Thread Henrique Gomes

Philippe,

Did you manage to get this framework on github?
I was going to 'transplant' some code from a project to a new one where I also 
need background, scheduled tasks. I thought your code might be a better start 
pointing.
And if you want to get it integrated in wonder let me know if I can help.

Best regards,

Henrique Gomes


On Feb 17, 2012, at 1:37 PM, Philippe Rabier wrote:

 Hi Paul, 
 
 I can give you a complete framework I presented at the last WOWODC that 
 allows Quartz integration in a Wonder app.
 Every class is documented, there is a package-info, … and it allows of course 
 the execution of jobs in // There is also a UI (simple) to see the jobs 
 running and the scheduled jobs.
 
 I have to put on Github, I know and Pascal is ready to help me so it will 
 come…
 It's based on Quartz 2.0. I have to adapt it to Quartz 2.1 (there are some 
 nice enhancements like stop a running job).
 
 So let me know. If you are interested to get the source code, send me an 
 email directly at sophiacom.fr (same user)
 
 Philippe
 @prabier
 
 On 16 févr. 2012, at 23:20, Paul Dunkler wrote:
 
 And Wonder have ERCayenne :-)
 
 ... i know - Wonder got everything :D I've learned loving it in it's special 
 way. I will take a look at ERCayenne...
 
 I think it is possible, but not very practical. The last time I looked 
 (long time ago admittedly) you could achieve multithreading, at the 
 expense of throughput (threads waiting on a shared lock). 
 
 I'd use Cayenne for this. Seriously ... there's no tie in to the WO UI in 
 case of Quartz headless processor, so it should be much easier switch 
 compared to a webapp. I've done a bunch of Cayenne/Quartz projects for 
 different customers, and parallel execution has never been a problem.
 
 I got a mid sized codebase which is highly based on webobjects / wonder and 
 don't have the resources to convert that to a cayenne application. For the 
 first, it would be nice to achieve that with Webobjects/Wonder stuff.
 
 And for the other postings - I will take a look at these Background Tasks... 
 thanks
 
 
 Just my 0.02
 
 Andrus
 
 ---
 Andrus Adamchik
 Apache Cayenne ORM: http://cayenne.apache.org/
 Twitter: http://twitter.com/andrus_a
 
 
 On Feb 16, 2012, at 1:29 PM, Paul Dunkler wrote:
 
 Hi Community,
 
 i'm currently working on a WebObjects-Application which uses the Quartz 
 Scheduler to schedule and run thousand but thousand of jobs. Every job is 
 doing some work in the database (Like reading, computing and then 
 Updating/Deleting some Details from the database).
 
 This works quite well when i only allow Quartz to start one Single Thread 
 for Job Execution. But when i configure more than one thread, it seams 
 that i have problems with EditingContext / ObjectStoreCoordinator-Locking 
 or something else.
 
 The Question is: What should i do to achieve an entirely independent 
 EOF-Stack per Quartz Thread? If it is possible without ramping up a 
 complete EOF-Stack per Thread, this would be even better ;)
 
 Currently i just tried to Create a new EditingContext per Job at the 
 start, lock the rootObjectStore, do some things and then unlock the 
 rootObjectStore and dispose the editingContext. But that doesn't seem to 
 work for me.
  // Job Start
  EOEditingContext anEditingContext = ERXEC.newEditingContext();
  anEditingContext.rootObjectStore().lock();
 
  // Job Execution
 
 // Job End
  anEditingContext.saveChanges();
  anEditingContext.rootObjectStore().unlock();
 
 
 It would be nice to get your suggestions about this Topic.
 
 --
 Mit freundlichen Grüßen
 
 Paul Dunkler
 
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
 
 This email sent to prob...@macti.ca
 
 
 --
 Mit freundlichen Grüßen / Kind regards
 
 Paul Dunkler
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/prabier%40me.com
 
 This email sent to prab...@me.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:

Re: Entirely independent EOF on Quartz Threads - How to do?

2012-05-10 Thread Henrique Gomes

On May 10, 2012, at 11:48 AM, Henrique Gomes wrote:

 
 Philippe,
 
 Did you manage to get this framework on github?
 I was going to 'transplant' some code from a project to a new one where I 
 also need background, scheduled tasks. I thought your code might be a better 
 start pointing.

 I meant  'starting point'.  

HG


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Percona mysql

2012-05-10 Thread Kieran Kelleher
Driver 5.1.20 should be fine with mysql 5.5.x. Try it and see what happens.

On May 10, 2012, at 2:52 AM, Ron X wrote:

 hi,
 
 on official site of MySQL - jdbc-driver has version 5.1.20.
 
 but Percona use MySQL version 5.5.x
 
 what driver can i use working with Percona? (there is no 5.5 driver on 
 official site and maven repo)
 
 thank you.
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
 
 This email sent to kelleh...@gmail.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Using inner classes or enums as attribute types with Velocity templates

2012-05-10 Thread Mark Wardle
Hi Paul.

See attached. I hope this helps.

I keep meaning to update to use a clazz pattern but haven't got around to
updating.

I've left the old key definition in but it is commented out.

// public static final ERXKey$attribute.javaClassName
${attribute.uppercaseUnderscoreName} = new
ERXKey$attribute.javaClassName(${attribute.uppercaseUnderscoreName}_KEY);

public static final ERXKey$attribute.javaClassName.replace('$','.')
${attribute.uppercaseUnderscoreName} = new
ERXKey$attribute.javaClassName.replace('$','.')(${attribute.uppercaseUnderscoreName}_KEY);
#end

Essentially, I just replace '$' with '.' in the class name and everything
then just works! IMHO, this should be part of the standard templates.

Best wishes,

Mark
On 10 May 2012 02:08, Paul Hoadley pa...@logicsquad.net wrote:
 Hello,

 I'm using an enum as an attribute type, and for neatness I've just moved
 that enum into the EO's class.  It all works fine, but obviously I need to
 specify the type in the model as some.package.Foo$Bar, and then this isn't
 handled correctly by the stock Velocity templates.  I thought I could live
 with it, but it turns out EO generation happens a lot more frequently
than I
 realised, and now it's annoying me!

 Mark Wardle wrote in February 2011:

 NB: when using $ to refer to an enum defined within a class, you will need
 to update your WOLips templates.

 I think there's a page on the wiki but I have limited connection at the
 moment.


 I couldn't find a reference to the issue on the Wiki, though I may have
 missed it.  Does anyone have any modified Wonder templates that would
handle
 this, or can any Velocity experts point me in the right direction to get
 Foo$Bar translated to Foo.Bar?


 --
 Paul Hoadley
 http://logicsquad.net/




  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/mark%40wardle.org

 This email sent to m...@wardle.org




-- 
Dr. Mark Wardle
Consultant Neurologist, University Hospital Wales, Cardiff, UK
Honorary Lecturer, Cardiff University, UK
Email: mark.war...@wales.nhs.uk or m...@wardle.org
Telephone: 02920745274 (secretary) or facsimile: 02920744166


_WonderEntity.java
Description: Binary data


WonderEntity.java
Description: Binary data
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Is WO has HTML5 features....!

2012-05-10 Thread Ramsey Gurley
Hi Sreenivasulu,

There's lots of HTML5ness, but it's scattered about in appropriate places. 
ERWOAdaptor does WebSockets for instance. ERXModernizr does HTML5 feature 
detection with modernizr.js. ERXLinkButton5 is a nifty replacement for 
WOHyperlink and WOSubmitButton.  It looks like Ken Ishimoto just added a new 
HTML5 number form field to integration.

Is there something specific you are trying to find?

Ramsey

On May 9, 2012, at 10:17 PM, Sreenivasulu A wrote:

 Hi List,
 
 Is there any framework, which supports HTML5 features to build Apps?
 
 
 Thanks  Regards,
 Sreenivasulu Arveti.
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERJars

2012-05-10 Thread Henrique Prange
Hi Ron,

The ERJars framework is just a container for common Wonder dependencies 
(commons-lang, junit, log4j). If you're using Maven then each Wonder module has 
its own dependency declaration and the ERJars is not required.

Cheers,

Henrique

On 10/05/2012, at 03:49, Ron X wrote:

 hi,
 can you send me a link to ERJars in maven repository? i can not find it.
 thanks.
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com
 
 This email sent to hpra...@gmail.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Is WO has HTML5 features....!

2012-05-10 Thread ISHIMOTO Ken
There will coming more HTML5 Components very soon.

Ken

On 2012/05/10, at 18:54, Ramsey Gurley wrote:

 Hi Sreenivasulu,
 
 There's lots of HTML5ness, but it's scattered about in appropriate places. 
 ERWOAdaptor does WebSockets for instance. ERXModernizr does HTML5 feature 
 detection with modernizr.js. ERXLinkButton5 is a nifty replacement for 
 WOHyperlink and WOSubmitButton.  It looks like Ken Ishimoto just added a new 
 HTML5 number form field to integration.
 
 Is there something specific you are trying to find?
 
 Ramsey
 
 On May 9, 2012, at 10:17 PM, Sreenivasulu A wrote:
 
 Hi List,
 
 Is there any framework, which supports HTML5 features to build Apps?
 
 
 Thanks  Regards,
 Sreenivasulu Arveti.
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com
 
 This email sent to k...@ksroom.com



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Tim Worman
Ron:

Johann's suggestion was the best course of action. Review the SQL that the app 
is producing for the request in question. Post back to the list all of the 
exact queries this single request is executing.

Tim

On May 10, 2012, at 2:22 AM, Ron X ron.x.by...@gmail.com wrote:

 maybe i have troubles with rules?
 
 2012/5/10 Johann Werner j...@oyosys.de
 
 Am 10.05.2012 um 10:44 schrieb Ron X:
 
 i use Navicat to see the DB
 
 so select * from Song was 0.8 sec.
 
 but in code the same query:
 
 ERROR 150.87 MB used/359.07 MB free [WorkerThread2] 
 (ERXEOAccessUtilities.java:1213) Page: 
 er.modern.look.pages.ERMODQueryEntitiesPage - Configuration: null - 
 Song@116895853 expression took 16567 ms:
 
 If the fetch takes nearly 17s instead of 0.8s there must be something wrong 
 (or at least different). What is the exact SQL that is sent to the db, you 
 should look at that, perhaps something in your model is wrong?
 
 
 
 2012/5/10 Johann Werner j...@oyosys.de
 Your fetch is taking too long. What is the SQL that is sent to your db? How 
 big is the resultset you are expecting? Perhaps your indexes are broken (you 
 have indexes, don't you)?
 
 jw
 
 
 Am 10.05.2012 um 10:37 schrieb Ron X:
 
 ESs-Mac:~ user$ top
 
 5340  java 94.2  01:40.99 42/1 1370  393   487M+  9124K  525M+
 
 RuntimeException: Statement running too long
   at 
 er.extensions.eof.ERXEOAccessUtilities.logExpression(ERXEOAccessUtilities.java:1213)
   at 
 er.extensions.eof.ERXAdaptorChannelDelegate.adaptorChannelDidEvaluateExpression(ERXAdaptorChannelDelegate.java:81)
  ... skipped 5 stack elements
   at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
   at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:163)
  ... skipped 6 stack elements
   at 
 er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:66)
  ... skipped 1 stack elements
   at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
   at 
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
   at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
  ... skipped 1 stack elements
   at 
 com.legalsounds.MainNavigationController.mostDownloadedAction(MainNavigationController.java:77)
  ... skipped 15 stack elements
   at 
 er.extensions.appserver.navigation.ERXNavigationMenuItem.menuItemSelected(ERXNavigationMenuItem.java:137)
  ... skipped 64 stack elements
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
   at 
 er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
   ... skipped 6 stack elements
 
 2012/5/10 Johann Werner j...@oyosys.de
 -Xms512m -Xmx1024m
 
 
 
 
 
 
 rule.png ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com
 
 This email sent to li...@thetimmy.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ListPage MySQL OutOfMemory

2012-05-10 Thread Ramsey Gurley
Looks like  you're using the wrong assignment class and assigning a 
pageController as a string instead of an instance of a branch delegate.

On May 10, 2012, at 1:55 AM, Ron X wrote:

 that was in debug mode.
 
 in run-mode:
 
 WARN  422.22 MB used/87.72 MB free [WorkerThread3] 
 (ERXNSLogLog4jBridge.java:43) (ListSong) - 
 er.extensions.appserver.ERXComponentRequestHandler: Exception occurred 
 while handling request:
 java.lang.ClassCastException: java.lang.String cannot be cast to 
 er.directtoweb.delegates.ERDBranchDelegateInterface
 ERROR 426.75 MB used/83.18 MB free [WorkerThread3] (ERXApplication.java:1786) 
 (ListSong) - Exception caught: java.lang.String cannot be cast to 
 er.directtoweb.delegates.ERDBranchDelegateInterface
 
 
 ClassCastException: java.lang.String cannot be cast to 
 er.directtoweb.delegates.ERDBranchDelegateInterface
   at er.directtoweb.pages.ERD2WPage.pageController(ERD2WPage.java:1173)
   at 
 er.directtoweb.components.buttons.ERDControllerButton.branchDelegate(ERDControllerButton.java:64)
   at 
 er.directtoweb.components.buttons.ERDControllerButton.branchChoices(ERDControllerButton.java:136)
  ... skipped 94 stack elements
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:190)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
   at 
 er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
   ... skipped 6 stack elements
 _ignoredPackages:: (  )
 
 2012/5/10 Ron X ron.x.by...@gmail.com
 i use Navicat to see the DB
 
 so select * from Song was 0.8 sec.
 
 but in code the same query:
 
 ERROR 150.87 MB used/359.07 MB free [WorkerThread2] 
 (ERXEOAccessUtilities.java:1213) Page: 
 er.modern.look.pages.ERMODQueryEntitiesPage - Configuration: null - 
 Song@116895853 expression took 16567 ms:
 
 
 2012/5/10 Johann Werner j...@oyosys.de
 Your fetch is taking too long. What is the SQL that is sent to your db? How 
 big is the resultset you are expecting? Perhaps your indexes are broken (you 
 have indexes, don't you)?
 
 jw
 
 
 Am 10.05.2012 um 10:37 schrieb Ron X:
 
 ESs-Mac:~ user$ top
 
 5340  java 94.2  01:40.99 42/1 1370  393   487M+  9124K  525M+
 
 RuntimeException: Statement running too long
   at 
 er.extensions.eof.ERXEOAccessUtilities.logExpression(ERXEOAccessUtilities.java:1213)
   at 
 er.extensions.eof.ERXAdaptorChannelDelegate.adaptorChannelDidEvaluateExpression(ERXAdaptorChannelDelegate.java:81)
  ... skipped 5 stack elements
   at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
   at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:163)
  ... skipped 6 stack elements
   at 
 er.extensions.eof.ERXDatabaseContext._objectsWithFetchSpecificationEditingContext(ERXDatabaseContext.java:66)
  ... skipped 1 stack elements
   at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
   at 
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
   at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1302)
  ... skipped 1 stack elements
   at 
 com.legalsounds.MainNavigationController.mostDownloadedAction(MainNavigationController.java:77)
  ... skipped 15 stack elements
   at 
 er.extensions.appserver.navigation.ERXNavigationMenuItem.menuItemSelected(ERXNavigationMenuItem.java:137)
  ... skipped 64 stack elements
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
   at 
 er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
   at 
 er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:374)
   ... skipped 6 stack elements
 
 2012/5/10 Johann Werner j...@oyosys.de
 -Xms512m -Xmx1024m
 
 
 
 
 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Using inner classes or enums as attribute types with Velocity templates

2012-05-10 Thread Paul Hoadley
Hi Mark,

On 10/05/2012, at 11:33 PM, Mark Wardle wrote:

 See attached. I hope this helps. 

Thanks.  Worked perfectly.  Looks like your base template was a little older 
than the one I've been using (from WOLips on GitHub[1]), so I just grafted the 
replace() calls into the right places in the newer template.

 Essentially, I just replace '$' with '.' in the class name and everything 
 then just works! IMHO, this should be part of the standard templates.

I might fork a copy of the WOLips repo and do just that.

[1]: 
https://github.com/wolips/wolips/blob/master/wolips/core/plugins/org.objectstyle.wolips.eogenerator.core/templates/_WonderEntity.java


-- 
Paul Hoadley
http://logicsquad.net/



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Is WO has HTML5 features....!

2012-05-10 Thread Sreenivasulu A
Thank you for updating me.

I familiar with WO stuff and Ajaxified WO(Ajax f/w) stuff.
I read the articles on HTML5 and it's features. Just to know myself, our WO
can do these things or not, I raised this.
Thank you for your great support to WO and WO list.

On Thu, May 10, 2012 at 10:24 PM, Ramsey Gurley rgur...@smarthealth.comwrote:

 Hi Sreenivasulu,

 There's lots of HTML5ness, but it's scattered about in appropriate places.
 ERWOAdaptor does WebSockets for instance. ERXModernizr does HTML5 feature
 detection with modernizr.js. ERXLinkButton5 is a nifty replacement for
 WOHyperlink and WOSubmitButton.  It looks like Ken Ishimoto just added a
 new HTML5 number form field to integration.

 Is there something specific you are trying to find?

 Ramsey

 On May 9, 2012, at 10:17 PM, Sreenivasulu A wrote:

  Hi List,
 
  Is there any framework, which supports HTML5 features to build Apps?
 
 
  Thanks  Regards,
  Sreenivasulu Arveti.
  ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  Help/Unsubscribe/Update your Subscription:
 
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
  This email sent to rgur...@smarthealth.com




-- 
Thanks  Regards,
Sreenivasulu Arveti.
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com