beankeeper-discussion Mailing List for BeanKeeper (Page 2)
Brought to you by:
demonsystem
You can subscribe to this list here.
2009 |
Jan
(1) |
Feb
(17) |
Mar
(24) |
Apr
(13) |
May
(5) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(1) |
Nov
(3) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
From: Jules <ju...@ds...> - 2009-05-15 07:46:40
|
I have a need to ensure that only one bean exists with a property set to any specific value. If I were using SQL directly, I'd usually approach this by adding a constraint to the table that the column was unique, but there doesn't seem to be any way of making beankeeper do this. I've implemented it by locking the class, checking for existing values with the attribute in question and then only creating if none exist, but I'm not particularly happy with this. Is there a better way? |
From: Dmitri L. <dm...@li...> - 2009-05-12 16:58:06
|
Hi, that's me again with Oracle %) While beankeeper works almost normally on one oracle, we recent;y set up a new box for testing, now under a Windows 2003 server. The oracle version is 10.2.0.4 Enterprise. The problem is that beankeeper does not create any tables. We have an empty tablespace, correct user/password assigned and full (even DBA) permissions set. When beankeeper starts up by new Store ( sriver, url ) - we get an exception and nothing is created, even system tables. Note, that in the same application , database, tablespace and user, hibernate layer connects fine and creates its own tables without any problems. Any ideas on what might be wrong ? Thanks, Dmitri hu.netmind.persistence.StoreException: exception while sql select at hu.netmind.persistence.GenericDatabase.search(GenericDatabase.java:1220) at hu.netmind.persistence.Database.transformTableName(Database.java:397) at hu.netmind.persistence.Database.ensureTable(Database.java: 193) at hu.netmind.persistence.ClassTracker.loadTables(ClassTracker.java:636) at hu.netmind.persistence.ClassTracker.<init>(ClassTracker.java:80) at hu.netmind.persistence.Store.<init>(Store.java:96) at hu.netmind.persistence.Store.<init>(Store.java:72) at com .alee .archive3 .server .dataaccess .ostor.BeanKeeperObjectsStorage.<init>(BeanKeeperObjectsStorage.java:66) at com .alee .archive3 .server .dataaccess .ArchiveDataAccessEngine .initializeObjectsStore(ArchiveDataAccessEngine.java:86) at com .alee .archive3 .server .dataaccess .ArchiveDataAccessEngine.initEngine(ArchiveDataAccessEngine.java:493) at com .alee .archive3 .server .dataaccess .ArchiveDataAccessEngine .checkOrUpdateDataStructures(ArchiveDataAccessEngine.java:457) at com .alee .archive3.server.ArchiveServer.attachCoreService(ArchiveServer.java:274) at com.alee.archive3.server.ArchiveServer.init(ArchiveServer.java:195) at com.alee.archive3.server.ArchiveServer.getInstance(ArchiveServer.java: 135) at com .alee .archive3.server.ArchiveServer.contextInitialized(ArchiveServer.java:98) at org .apache .catalina.core.StandardContext.listenerStart(StandardContext.java:4523) at org.apache.catalina.core.StandardContext.start(StandardContext.java: 5184) at com.sun.enterprise.web.WebModule.start(WebModule.java:326) at org .apache .catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java: 1584) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java: 1222) at com .sun .enterprise .server .WebModuleDeployEventListener .moduleDeployed(WebModuleDeployEventListener.java:182) at com .sun .enterprise .server .WebModuleDeployEventListener .moduleDeployed(WebModuleDeployEventListener.java:278) at com .sun .enterprise .admin .event .AdminEventMulticaster .invokeModuleDeployEventListener(AdminEventMulticaster.java:974) at com .sun .enterprise .admin .event .AdminEventMulticaster .handleModuleDeployEvent(AdminEventMulticaster.java:961) at com .sun .enterprise .admin .event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java: 464) at com .sun .enterprise .admin .event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java: 176) at com .sun .enterprise .admin .server .core .DeploymentNotificationHelper .multicastEvent(DeploymentNotificationHelper.java:308) at com .sun .enterprise .deployment .phasing .DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226) at com .sun .enterprise .deployment .phasing .ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298) at com .sun .enterprise .deployment .phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132) at com .sun .enterprise .deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java: 108) at com .sun .enterprise .deployment .phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919) at com .sun .enterprise .deployment.phasing.PEDeploymentService.start(PEDeploymentService.java: 591) at com .sun .enterprise .deployment.phasing.PEDeploymentService.start(PEDeploymentService.java: 635) at com .sun .enterprise .admin .mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com .sun .enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java: 375) at com .sun .enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java: 358) at com .sun .enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java: 464) at com .sun .jmx .interceptor .DefaultMBeanServerInterceptor .invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java: 90) at $Proxy1.invoke(Unknown Source) at com .sun .enterprise .admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java: 304) at com .sun .enterprise .interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174) at com .sun .enterprise .admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69) at com .sun .enterprise .admin .jmx .remote .server .MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155) at com .sun .enterprise .admin .jmx .remote .server .servlet .RemoteJmxConnectorServlet .processRequest(RemoteJmxConnectorServlet.java:122) at com .sun .enterprise .admin .jmx .remote .server .servlet .RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org .apache .catalina .core .ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org .apache .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 290) at org .apache .catalina .core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org .apache .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 202) at org .apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java: 632) at org .apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java: 577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java: 94) at org .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 206) at org .apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java: 632) at org .apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java: 577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org .apache .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org .apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java: 632) at org .apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java: 577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter (DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess (DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process (DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask (DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com .sun .enterprise .web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116) Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist at oracle .jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91) at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java: 206) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034) at oracle .jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194) at oracle .jdbc .driver .T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791) at oracle .jdbc .driver .T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java: 866) at oracle .jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java: 1186) at oracle .jdbc .driver .OraclePreparedStatement.executeInternal(OraclePreparedStatement.java: 3387) at oracle .jdbc .driver .OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431) at oracle .jdbc .driver .OraclePreparedStatementWrapper .executeQuery(OraclePreparedStatementWrapper.java:1491) at hu.netmind.persistence.GenericDatabase.search(GenericDatabase.java:1183) ... 85 more |
From: Brautigam R. <de...@ne...> - 2009-05-04 19:30:29
|
David Hofmann írta: > Hi all, Hi, > I remember looking at this project some about a year ago and it was > very interesting. Now I am looking to decide for a very simplistic > aproach to orm from the user point of view. > This is the project that best fit the needs I can see I will have. > But I have a short question, I hope somebody can help me understand. > I think I understand that the transaction isolation of beankeaper > works because of the historicaly saved data. > > Is it posible to tell beankeaper to not save historicaly data ? Short answer is: No, you can't. Historical data is at the core of the library, ensuring data integrity. You can get it to periodically remove historical data manually (see previous posts), or even automatically (there is a patch available to do that). > Thanks in advance HTH, Robert. |
From: David H. <hof...@gm...> - 2009-05-04 19:10:17
|
Hi all, I remember looking at this project some about a year ago and it was very interesting. Now I am looking to decide for a very simplistic aproach to orm from the user point of view. This is the project that best fit the needs I can see I will have. But I have a short question, I hope somebody can help me understand. I think I understand that the transaction isolation of beankeaper works because of the historicaly saved data. Is it posible to tell beankeaper to not save historicaly data ? Thanks in advance -- David Daniel Hofmann WebVAS, Nucleo S.A. - Telecom Personal Paraguay http://hofmanndavid.blogspot.com/ |
From: Brautigam R. <de...@ne...> - 2009-04-22 18:12:34
|
Frederic Daoud írta: > First, congratulations on BeanKeeper, very interesting solution > for Java persistence! > > I've a simple question: how do you do something like finding > the maximum of a field? Say I have an object with an Integer > property, and I want to find the one for which that property > is the highest? You can't do that currently with an aggregate select like in sql. Aggregate functions are on the wishlist. > Thanks for your help. > Cheers, > Freddy Sorry for the bad news, Robert. |
From: Frederic D. <fd...@pr...> - 2009-04-22 17:56:14
|
First, congratulations on BeanKeeper, very interesting solution for Java persistence! I've a simple question: how do you do something like finding the maximum of a field? Say I have an object with an Integer property, and I want to find the one for which that property is the highest? Thanks for your help. Cheers, Freddy |
From: Frederic D. <fd...@pr...> - 2009-04-22 17:56:11
|
First, congratulations on BeanKeeper, very interesting solution for Java persistence! I've a simple question: how do you do something like finding the maximum of a field? Say I have an object with an Integer property, and I want to find the one for which that property is the highest? Thanks for your help. Cheers, Freddy |
From: Brautigam R. <de...@ne...> - 2009-04-21 14:03:07
|
Dmitri Livotov írta: > Nope, neither latest 10.4 nor newest 11.1 drivers did not help. The > problem still exists Could you please open a defect on sourceforge for this? Robert. |
From: Dmitri L. <dm...@li...> - 2009-04-21 13:56:02
|
This seems to be a beankeeper bug. It fails with the same error even if I try to save a simple pojo with string field. 21.04.2009, в 17:31, Brautigam Róbert <de...@ne...> написал(а): > Dmitri Livotov írta: >> Nope, neither latest 10.4 nor newest 11.1 drivers did not help. The >> problem still exists > > Could you please open a defect on sourceforge for this? > > Robert. |
From: Brautigam R. <de...@ne...> - 2009-04-21 13:55:05
|
Dmitri Livotov írta: > This seems to be a beankeeper bug. It fails with the same error even if > I try to save a simple pojo with string field. I agree, this is a BeanKeeper error, type errors happened before so it's not unheard of. Please include your test case in the bugreport on this sourceforge page. > 21.04.2009, в 17:31, Brautigam Róbert <de...@ne...> написал(а): > >> Dmitri Livotov írta: >>> Nope, neither latest 10.4 nor newest 11.1 drivers did not help. The >>> problem still exists >> >> Could you please open a defect on sourceforge for this? >> >> Robert. > |
From: Dmitri L. <dm...@li...> - 2009-04-21 13:00:54
|
Nope, neither latest 10.4 nor newest 11.1 drivers did not help. The problem still exists 21.04.2009, в 15:18, Brautigam Róbert <de...@ne...> написал(а): > Dmitri Livotov írta: >> Hi, >> >> did anyone had InvaludColumnType with the latest stable beankeeper >> and >> Oracle ? >> >> After successfull testing of our application with mysql, we now got >> the following strange issues when switched datasource to Oracle: >> beankeeper cannot save any new pojo, resulting with >> java.sql.SQLException: Invalid column type > > Well, the exception should include the type in error, does the text > continue? Any causing exceptions or anything listed? Is it's Oracle, > there should be an ORA identifier of the error somewhere. > >> We have only strings, booleans (not Boolean), Date as pojo fields as >> well as list of other pojo with similar field types. >> >> None of the fields are null at the moment of calling >> store.save(),lists are initialized but empty. >> >> Any suggestions on what to check ? >> We're using oracle 10.2.0.4.0 64 bit and oracle jdbc driver >> 10.2.0.2.0 > > No one checked any 64 bits versions of Oracle as far as I know. > >> Dmitri > > Robert. |
From: Dmitri L. <dm...@li...> - 2009-04-21 11:37:37
|
No, there is no oracle specific ORA-XXX error code. But the exception happens in oracle driver as last line in stacktrace before the error firing is OraclePreparedStatement.setObjectCritical I cant paste entire stacktrace as server is remote and i also do not have internet connection now but from cellular phone I'll try to find and update the latest oracke jdbc driver and see if this will help. In theory, 64/32 bit version should not make sense 21.04.2009, в 15:18, Brautigam Róbert <de...@ne...> написал(а): > Dmitri Livotov írta: >> Hi, >> >> did anyone had InvaludColumnType with the latest stable beankeeper >> and >> Oracle ? >> >> After successfull testing of our application with mysql, we now got >> the following strange issues when switched datasource to Oracle: >> beankeeper cannot save any new pojo, resulting with >> java.sql.SQLException: Invalid column type > > Well, the exception should include the type in error, does the text > continue? Any causing exceptions or anything listed? Is it's Oracle, > there should be an ORA identifier of the error somewhere. > >> We have only strings, booleans (not Boolean), Date as pojo fields as >> well as list of other pojo with similar field types. >> >> None of the fields are null at the moment of calling >> store.save(),lists are initialized but empty. >> >> Any suggestions on what to check ? >> We're using oracle 10.2.0.4.0 64 bit and oracle jdbc driver >> 10.2.0.2.0 > > No one checked any 64 bits versions of Oracle as far as I know. > >> Dmitri > > Robert. |
From: Brautigam R. <de...@ne...> - 2009-04-21 11:18:25
|
Dmitri Livotov írta: > Hi, > > did anyone had InvaludColumnType with the latest stable beankeeper and > Oracle ? > > After successfull testing of our application with mysql, we now got > the following strange issues when switched datasource to Oracle: > beankeeper cannot save any new pojo, resulting with > java.sql.SQLException: Invalid column type Well, the exception should include the type in error, does the text continue? Any causing exceptions or anything listed? Is it's Oracle, there should be an ORA identifier of the error somewhere. > We have only strings, booleans (not Boolean), Date as pojo fields as > well as list of other pojo with similar field types. > > None of the fields are null at the moment of calling > store.save(),lists are initialized but empty. > > Any suggestions on what to check ? > We're using oracle 10.2.0.4.0 64 bit and oracle jdbc driver 10.2.0.2.0 No one checked any 64 bits versions of Oracle as far as I know. > Dmitri Robert. |
From: Dmitri L. <dm...@li...> - 2009-04-21 10:39:13
|
Hi, did anyone had InvaludColumnType with the latest stable beankeeper and Oracle ? After successfull testing of our application with mysql, we now got the following strange issues when switched datasource to Oracle: beankeeper cannot save any new pojo, resulting with java.sql.SQLException: Invalid column type We have only strings, booleans (not Boolean), Date as pojo fields as well as list of other pojo with similar field types. None of the fields are null at the moment of calling store.save(),lists are initialized but empty. Any suggestions on what to check ? We're using oracle 10.2.0.4.0 64 bit and oracle jdbc driver 10.2.0.2.0 Dmitri |
From: Brautigam R. <de...@ne...> - 2009-04-17 10:58:26
|
Dmitri Livotov írta: > Hi, Hi, > first of all, would like to add my thanks to the nice zeroconf > persistence library. We successfully adopted it to our project, where > external plugins can easily store and query their own objects in the > database, without touching main application ORM system and data. Very cool, congratulations. > Now I have the question regarding historical data - is there any way > (even a plain sql statement) to clean up the history ? In case of > active data modifications, table is actively grows. Practically, not > in all cases we need a historical data, so if there is no option or > property to tell beankeeper to avoid making historical records, how > can we clean up the history data ? As one option, we can schedule a > timer job that will clean history once per day(month,etc) but what is > the correct sql syntax (or anything else) to do this ? > Did not find any documentation on tables structure, so any sql query > as a glue would be nice. First, there is a feature request for this. And it is ready in a branch, available at: http://svn.netmind.hu/beankeeper/branch/firepoet/. The code there contains the patch for this feature, and there are 2 configuration values which set the periodical retention policy, currently not table-wise, but a general retention policy, initially set to infinity. This patch includes throwning an exception when data is accessed that is already deleted, this feature you won't get if you do a manual remove. Secondly. You can do it manually, but be aware, that historical data _is_ actively used in an application even if hitorical query was not explicitely executed. So you should shutdown all applications to that database to make sure, or _really_ make sure, that the deleted data is so old, it can't possibly be accessed in the application anymore, not even in cached, or any form. If you manually delete records, there is no way BeanKeeper would know whether that data was deleted or whether it wasn't there in the first place, if you later try to access it. Anyway, the sql is simple, the row you have to use is "persistence_end". This is the serial on which that row (version of object) was deleted. (Either modified, and a new version was created, or really deleted). If that column is 9223372036854775807 (Long.MAX_VALUE), then it is NOT deleted. Everything that IS deleted is historical, and won't be accessed unless an explicit historical query is made, or some result list, collection or set was queried _before_ that time. So the sql is: delete from <table> where persistence_end < 9223372036854775807; > Thanks, > Dmitri Robert. |
From: Dmitri L. <dm...@li...> - 2009-04-17 10:42:59
|
Hi, first of all, would like to add my thanks to the nice zeroconf persistence library. We successfully adopted it to our project, where external plugins can easily store and query their own objects in the database, without touching main application ORM system and data. Now I have the question regarding historical data - is there any way (even a plain sql statement) to clean up the history ? In case of active data modifications, table is actively grows. Practically, not in all cases we need a historical data, so if there is no option or property to tell beankeeper to avoid making historical records, how can we clean up the history data ? As one option, we can schedule a timer job that will clean history once per day(month,etc) but what is the correct sql syntax (or anything else) to do this ? Did not find any documentation on tables structure, so any sql query as a glue would be nice. Thanks, Dmitri |
From: Dmitri L. <dm...@li...> - 2009-04-17 10:40:44
|
Hi, first of all, would like to add my thanks to the nice zeroconf persistence library. We successfully adopted it to our project, where external plugins can easily store and query their own objects in the database, without touching main application ORM system and data. Now I have the question regarding historical data - is there any way (even a plain sql statement) to clean up the history ? In case of active data modifications, table is actively grows. Practically, not in all cases we need a historical data, so if there is no option or property to tell beankeeper to avoid making historical records, how can we clean up the history data ? As one option, we can schedule a timer job that will clean history once per day(month,etc) but what is the correct sql syntax (or anything else) to do this ? Did not find any documentation on tables structure, so any sql query as a glue would be nice. Thanks, Dmitri |
From: Shay M. <mat...@gm...> - 2009-03-20 12:23:30
|
Hi , when working in a JAIN environment , it seems that the only way to use Beankeepr is to develop an entity called a Resource adapter , i will try it and report on my results. Shay Brautigam Róbert wrote: > Shay Matasaro írta: > >> well i like Beankeepr to much to just stop using it , so ill see what i >> can do to overcome the environments limitations. >> > > Ok, thanks. Please post any solutions you might have on the list, so > other people can learn how to do it. > > >> Shay >> > > Robert. > > |
From: Brautigam R. <de...@ne...> - 2009-03-14 16:00:26
|
Shay Matasaro írta: > well i like Beankeepr to much to just stop using it , so ill see what i > can do to overcome the environments limitations. Ok, thanks. Please post any solutions you might have on the list, so other people can learn how to do it. > Shay Robert. |
From: Shay M. <mat...@gm...> - 2009-03-14 13:51:51
|
well i like Beankeepr to much to just stop using it , so ill see what i can do to overcome the environments limitations. Shay Brautigam Róbert wrote: > Shay Matasaro írta: > >> Hi Robert, >> >> I am currently trying to use Beankeeper , inside a JAIN-SLEE environment. >> >> the thing about JAIN-SLEE is the it is very constrictive environment, >> which blocks many aspects of interaction with local system resources , >> for example sockets and files , it does however allow JDBC connections. >> >> i believe that these restrictions are messing about with the way that >> Beankeepr nodes are behaving, specifically i am getting the following >> exception: >> > ... > > Hi, > > Many of the restrictions you described may influence beankeeper in > unknown ways. Currently BeanKeeper can not work without: networking, > reflection, io. These are in part prohibited by the environment, so I > guess you have to somehow exclude BeanKeeper from this domain, or add > such privileges if it's possible. > > Robert. > > > > |
From: Brautigam R. <de...@ne...> - 2009-03-14 08:45:48
|
Shay Matasaro írta: > Hi Robert, > > I am currently trying to use Beankeeper , inside a JAIN-SLEE environment. > > the thing about JAIN-SLEE is the it is very constrictive environment, > which blocks many aspects of interaction with local system resources , > for example sockets and files , it does however allow JDBC connections. > > i believe that these restrictions are messing about with the way that > Beankeepr nodes are behaving, specifically i am getting the following > exception: ... Hi, Many of the restrictions you described may influence beankeeper in unknown ways. Currently BeanKeeper can not work without: networking, reflection, io. These are in part prohibited by the environment, so I guess you have to somehow exclude BeanKeeper from this domain, or add such privileges if it's possible. Robert. |
From: Shay M. <mat...@gm...> - 2009-03-14 05:35:35
|
Hi Robert, I am currently trying to use Beankeeper , inside a JAIN-SLEE environment. the thing about JAIN-SLEE is the it is very constrictive environment, which blocks many aspects of interaction with local system resources , for example sockets and files , it does however allow JDBC connections. i believe that these restrictions are messing about with the way that Beankeepr nodes are behaving, specifically i am getting the following exception: java.lang.NullPointerException at hu.netmind.persistence.node.NodeClient.handleMessage(NodeClient.java:146) at hu.netmind.persistence.node.NodeClient$MessageListener.run(NodeClient.java:293) at java.lang.Thread.run(Thread.java:619) i am using beankeepr inside pooled objects within a JAIN app server. here is an excerpt from the JAIN spec that discusses the environment limitations. please let me know if you think that BK can operate in this environment. Thanks, Shay *12.2 Programming restrictions* This section describes the programming restrictions that an SBB Developer must follow to ensure that a SLEE (i.e. SBB) component is /portable /and can be deployed in any compliant SLEE. The restrictions apply to the implementation of the SBB Developer implemented methods. · A SLEE component must not use read/write static fields. Using read-only static fields is allowed. Therefore, it is reco mmended that all static fields in the classes of the SLEE component be declared as final. /This rule is required to ensure consistent runtime semantics because while some SLEE implementations/ /may use a single JVM to execute all instances of a SLEE component, others may distribute/ /the instances across multiple JVMs./ · A SLEE component must not use thread synchronization primitives to synchronize execution of multiple instances. /Same reason as above. Synchronization would not work if the SLEE distributed multiple instances/ /across multiple JVMs./ · A SLEE component must not use the AWT functionality to attempt to output information to a display, or to input information from a keyboard. /Most servers do not allow direct interaction between an application program and a keyboard// /display attached to the server system./ · A SLEE component must not use the java.io package to attempt to access files and directories in the file system. /The file system APIs are not well-suited for SLEE components to access data. SLEE components/ /should use a resource, such as JDBC, to store data./ · A SLEE component must not attempt to listen on a socket, accept connections on a socket, or use a socket for multicast. /The SLEE architecture allows an instance of a SLEE component class to be a network socket client,/ /but it does not allow it to be a network server. Allowing the instance to become a network/ /server would conflict with the basic function of the SLEE component that is to process events./ · A SLEE component must not attempt to query a class to obtain information about the declared members that are not otherwise accessible to the SLEE component because of the security rules of the Java language. The SLEE component must not attempt to use the Reflection API to access information that the security rules of the Java programming language make unavailable. /Allowing the SLEE components to access information about other classes and to access the/ /classes in a manner that is normally disallowed by the Java programming language could compromise/ /security. / /--- / · A SLEE component must not attempt to create a class loader; obtain the current class loader; set the context class loader; set security manager; create a new security manager; stop the JVM; or change the input, output, and error streams. /These functions are reserved for the SLEE. Allowing the SLEE component to use these functions/ /could compromise security and decrease the SLEE’s ability to properly manage the runtime environment./ · A SLEE component must not attempt to set the socket factory used by ServerSocket, Socket, or the stream handler factory used by URL. /These networking functions are reserved for the SLEE. Allowing the SLEE components to use/ /these functions could compromise security and decrease the SLEE’s ability to properly manage/ /the runtime environment./ · A SLEE component must not attempt to manage threads. The SLEE component must not attempt to start, stop, suspend, or resume a thread; or to change a thread’s priority or name. The SLEE component must not attempt to manage thread groups. /These functions are reserved for the SLEE. Allowing the SLEE component to manage threads/ /would decrease the SLEE’s ability to properly manage the runtime environment./ · A SLEE component must not attempt to directly read or write a file descriptor. /Allowing the SLEE component to read and write file descriptors directly could compromise security./ · A SLEE component must not attempt to obtain the security policy information for a particular code source. /Allowing the SLEE component to access the security policy information would create a security/ /hole./ · A SLEE component must not attempt to load a native library. /This function is reserved for the SLEE. Allowing the SLEE component to load native code would/ /create a security hole./ · A SLEE component must not attempt to gain access to packages and classes that the usual rules of the Java programming language make unavailable to the SLEE comp onent. /This function is reserved for the SLEE. Allowing the SLEE component to perform this function/ /would create a security hole./ · A SLEE component must not attempt to define a class in the javax.slee namespace. /This function is reserved for the SLEE. Allowing the SLEE component to perform this function/ /would create a security hole./ · A SLEE component must not attempt to access or modify the security configuration objects (Policy, Security, Provider, Signer, and Identity). /These functions are reserved for the SLEE. Allowing the SLEE component to use these functions/ /could compromise security./ · A SLEE component must not attempt to use the subclass and object substitution features of the Java Serialization Protocol. /Allowing the SLEE component to use these functions could compromise security./ |
From: Stephen S. <st...@st...> - 2009-03-08 17:59:05
|
Hey all, I'm using the following: BeanKeeper 2.6.0 HSQLDB 1.8.0.10 And when I execute the following query: find task where project = ? and complete = ? and (tags contains ?) With the following parameters: [Project{name='test.bob', rev=0}, false, Tag{name='groceries'}] I sometimes get the right results, and other times I get: java.sql.SQLException: Unexpected token: ) in statement [select count(*) from (select distinct task .tags ,task .tags_itemclass ,task .taskid ,task .project ,task.complete,task.name,task.persistence_id,task.persistence_start as persistence_start0,task.persistence_end as persistence_end0 from task left join project as t_2 on ( task.project = t_2.persistence_id and ( t_2.persistence_start <= ? ) and ( t_2.persistence_end > ? )),task_tags_ as t_1 where (( t_1.persistence_start <= ? ) and ( t_1.persistence_end > ? ) and ( task.persistence_start <= ? ) and ( task.persistence_end > ? )) and (( task.persistence_id = t_1.persistence_id and ) and ( t_2.persistence_id = ? and task.complete = ? and ( t_1.value = ? )))) as cr] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source) at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source) ... 23 more Strangely, the generated SQL looks right, unless I'm missing something... Has anyone else hit this issue? Thanks! Stephen. |
From: Brautigam R. <de...@ne...> - 2009-03-03 08:11:42
|
Shay Matasaro írta: > Yes, that was it! > > I am using glassfish , and on windows , and it has a tendency to lock > files , which is why i placed the Beankeepr jar in the server lib, and > not in the app. > > i now deploy it with the app , and the warnings are gone :) Good! :) One down, an unknown number of errors to go :) > Thanks, > Shay Robert. |
From: Shay M. <mat...@gm...> - 2009-03-03 08:07:30
|
Yes, that was it! I am using glassfish , and on windows , and it has a tendency to lock files , which is why i placed the Beankeepr jar in the server lib, and not in the app. i now deploy it with the app , and the warnings are gone :) Thanks, Shay Brautigam Róbert wrote: > Shay Matasaro írta: > >> i only create the public schema in the DB, not any tables . >> >> yes, i believe there is some difference in how the console app and web >> app behave , because they both use the same library which includes the >> persistence classes. >> >> here is the table map, and classes table : >> >> tablemap: >> "bk_domain";"domain" >> "bk_vreseller";"vreseller" >> "bk_vreseller_domains_";"vreseller_domains_" >> "bk_vreseller_vrusers_";"vreseller_vrusers_" >> "bk_vuser";"vuser" >> "java_lang_object";"object" >> "persistence_classes";"classes" >> "persistence_nodes";"nodes" >> "";"" >> >> >> classes: >> "";1;"java_lang_object";"java.lang.Object";0 >> "";2;"bk_domain";"BK.Domain";1000 >> "";3;"bk_vreseller";"BK.VReseller";1000 >> "";4;"bk_vuser";"BK.VUser";1000 >> "";;"";""; >> > > Looks alright to me. We're back to why is the webapp throwing > ClassNotFoundException for BK.* classes. > It still looks like BeanKeeper does not see them. Please make sure the > classes are in the webapp. On another note, there may be a classloading > issue. > For example if the BeanKeeper library is not in your webapp, but added > to your application server, then the classloader hierarchy will prevent > BeanKeeper from seeing your classes. > What application server do you use, and where is the BeanKeeper jar and > the classes that it should use? > > Robert. > > |