|
|
|
andydale
|
Hi,
I am just investigating HibernateSpatial, to see what advantages it offers over the current I use (Postgis java objects). I have setup a simple JPA eclipse app, however on initialization, just after binding the entity with the Geometry the following is displayed in the console: Current policy properties: mmc.sess_pe_act.block_unsigned: false window.num_max: 5 jscan.sess_applet_act.sig_trusted: pass file.destructive.state: disabled jscan.sess_applet_act.block_all: false window.num_limited: true jscan.sess_applet_act.unsigned: instrument mmc.sess_pe_act.action: validate jscan.session.daemon_protocol: http file.read.state: disabled mmc.sess_pe_act.block_invalid: true mmc.sess_pe_act.block_blacklisted: false net.bind_enable: false jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5 mmc.sess_cab_act.block_unsigned: false file.nondestructive.state: disabled jscan.session.origin_uri: http://www.hibernatespatial.org/repository/org/hibernatespatial/hibernate-spatial/1.0-M1/hibernate-spatial-1.0-M1.jar mmc.sess_cab_act.action: validate net.connect_other: false jscan.session.user_ipaddr: 10.10.52.37 jscan.sess_applet_act.sig_invalid: instrument mmc.sess_cab_act.block_invalid: true thread.thread_num_max: 8 jscan.sess_applet_act.sig_blacklisted: block net.connect_src: true thread.thread_num_limited: true jscan.sess_applet_act.stub_out_blocked_applet: true mmc.sess_cab_act.block_blacklisted: true jscan.session.user_name: Dale, Andrew thread.threadgroup_create: false file.write.state: disabled hibernatespatial.HBSpatialExtension 2008-05-14 13:21:45,688 -- INFO -- Initializing HBSpatialExtension -->> returning Frame NULL BaseDialog: owner frame is a java.awt.Frame This is accompanied by a AppletAlert window asking me if I want to "Allow", "Disallow" or "Stop Applet". Is it possible to turn off this Applet ? Cheers, Andy _______________________________________________ hibernatespatial-users mailing list [hidden email] http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users |
||||||||||||||||
|
Karel Maesen
|
I have no idea what these messages are.
In any case, there are no applets in the Hibernate Spatial libraries. The HBSpatialExtension is just a static (singleton) class. Regards, Karel Maesen Geovise BVBA On 14 May 2008, at 13:39, Andy Dale wrote: > Hi, > > I am just investigating HibernateSpatial, to see what advantages it > offers over the current I use (Postgis java objects). I have setup > a simple JPA eclipse app, however on initialization, just after > binding the entity with the Geometry the following is displayed in > the console: > > Current policy properties: > mmc.sess_pe_act.block_unsigned: false > window.num_max: 5 > jscan.sess_applet_act.sig_trusted: pass > file.destructive.state: disabled > jscan.sess_applet_act.block_all: false > window.num_limited: true > jscan.sess_applet_act.unsigned: instrument > mmc.sess_pe_act.action: validate > jscan.session.daemon_protocol: http > file.read.state: disabled > mmc.sess_pe_act.block_invalid: true > mmc.sess_pe_act.block_blacklisted: false > net.bind_enable: false > jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5 > mmc.sess_cab_act.block_unsigned: false > file.nondestructive.state: disabled > jscan.session.origin_uri: http://www.hibernatespatial.org/ > repository/org/hibernatespatial/hibernate-spatial/1.0-M1/hibernate- > spatial-1.0-M1.jar > mmc.sess_cab_act.action: validate > net.connect_other: false > jscan.session.user_ipaddr: 10.10.52.37 > jscan.sess_applet_act.sig_invalid: instrument > mmc.sess_cab_act.block_invalid: true > thread.thread_num_max: 8 > jscan.sess_applet_act.sig_blacklisted: block > net.connect_src: true > thread.thread_num_limited: true > jscan.sess_applet_act.stub_out_blocked_applet: true > mmc.sess_cab_act.block_blacklisted: true > jscan.session.user_name: Dale, Andrew > thread.threadgroup_create: false > file.write.state: disabled > hibernatespatial.HBSpatialExtension 2008-05-14 13:21:45,688 -- INFO > -- Initializing HBSpatialExtension > -->> returning Frame NULL > BaseDialog: owner frame is a java.awt.Frame > > This is accompanied by a AppletAlert window asking me if I want to > "Allow", "Disallow" or "Stop Applet". Is it possible to turn off > this Applet ? > > Cheers, > > Andy > _______________________________________________ > hibernatespatial-users mailing list > [hidden email] > http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/ > hibernatespatial-users _______________________________________________ hibernatespatial-users mailing list [hidden email] http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users |
|
andydale
|
Hi,
I have to allow the applet or the creation of the underlying SessionFactory just stalls. When clicking on Disallow the following stack trace is displayed: hibernatespatial.HBSpatialExtension 2008-05-14 14:19:16,895 -- INFO -- Initializing HBSpatialExtension -->> returning Frame NULL BaseDialog: owner frame is a java.awt.Frame Exception in thread "main" java.lang.ExceptionInInitializerError at org.hibernatespatial.GeometryUserType.configure(GeometryUserType.java:63) at org.hibernatespatial.GeometryUserType.setParameterValues(GeometryUserType.java:226) at org.hibernate.type.TypeFactory.injectParameters(TypeFactory.java:545) at org.hibernate.type.CustomType.<init>(CustomType.java:67) at org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:240) at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:260) at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253) at org.hibernate.mapping.Property.isValid(Property.java:185) at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:395) at org.hibernate.mapping.RootClass.validate(RootClass.java:192) at org.hibernate.cfg.Configuration.validate(Configuration.java:1021) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1206) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760) at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33) at com.test.persistence.workers.jpa.JpaWorker.<init>(JpaWorker.java:52) at com.test.persistence.Runner.main(Runner.java:28) Caused by: java.lang.SecurityException: The Applet is not allowed to connect to jar:file:/home/dalea/workspace/Standalone%20Hibernate/libs/spatial/hibernate-spatial-postgis-1.0-M1.jar!/META-INF/services/org.hibernatespatial.spi.SpatialDialectProvider by IWSS Javascan site policy. at com.trend.iwss.jscan.runtime.PolicyRuntime.makeSecurityException(Unknown Source) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopActionInner(Unknown Source) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopAction(Unknown Source) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopAction(Unknown Source) at com.trend.iwss.jscan.runtime.NetworkPolicyRuntime.checkURL(Unknown Source) at com.trend.iwss.jscan.runtime.NetworkPolicyRuntime._preFilter(Unknown Source) at com.trend.iwss.jscan.runtime.PolicyRuntime.preFilter(Unknown Source) at com.trend.iwss.jscan.runtime.NetworkPolicyRuntime.preFilter(Unknown Source) at org.hibernatespatial.HBSpatialExtension.<clinit>(HBSpatialExtension.java:85) ... 21 more Error while reporting ... java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.hibernatespatial.org/repository/org/hibernatespatial/hibernate-spatial/1.0-M1/hibernate-spatial-1.0-M1.jar/com/trend/iwss/jscan/runtime/Report?Reason=connect+to+jar%3Afile%3A%2Fhome%2Fdalea%2Fworkspace%2FStandalone%2520Hibernate%2Flibs%2Fspatial%2Fhibernate-spatial-postgis-1.0-M1.jar%21%2FMETA-INF%2Fservices%2Forg.hibernatespatial.spi.SpatialDialectProvider&URI=http%3A%2F%2Fwww.hibernatespatial.org%2Frepository%2Forg%2Fhibernatespatial%2Fhibernate-spatial%2F1.0-M1%2Fhibernate-spatial-1.0-M1.jar&Policyname=MMC+Default+Policy at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149) at com.trend.iwss.jscan.runtime.PolicyRuntime$ReportThread.run(Unknown Source) And when click on Stop Applet, the following stacktrace is displayed: ->> returning Frame NULL BaseDialog: owner frame is a java.awt.Frame Error while reporting ... java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.hibernatespatial.org/repository/org/hibernatespatial/hibernate-spatial/1.0-M1/hibernate-spatial-1.0-M1.jar/com/trend/iwss/jscan/runtime/Report?Reason=connect+to+jar%3Afile%3A%2Fhome%2Fdalea%2Fworkspace%2FStandalone%2520Hibernate%2Flibs%2Fspatial%2Fhibernate-spatial-postgis-1.0-M1.jar%21%2FMETA-INF%2Fservices%2Forg.hibernatespatial.spi.SpatialDialectProvider&URI=http%3A%2F%2Fwww.hibernatespatial.org%2Frepository%2Forg%2Fhibernatespatial%2Fhibernate-spatial%2F1.0-M1%2Fhibernate-spatial-1.0-M1.jar&Policyname=MMC+Default+Policy at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149) at com.trend.iwss.jscan.runtime.PolicyRuntime$ReportThread.run(Unknown Source) Exception in thread "main" com.trend.iwss.jscan.runtime.AppletTrapStopError: Applet disabled by IWSS Javascan site policy. at com.trend.iwss.jscan.runtime.PolicyRuntime.stopApplet(Unknown Source) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopActionInner(Unknown Source) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopAction(Unknown Source) at com.trend.iwss.jscan.runtime.PolicyRuntime.stopAction(Unknown Source) at com.trend.iwss.jscan.runtime.NetworkPolicyRuntime.checkURL(Unknown Source) at com.trend.iwss.jscan.runtime.NetworkPolicyRuntime._preFilter(Unknown Source) at com.trend.iwss.jscan.runtime.PolicyRuntime.preFilter(Unknown Source) at com.trend.iwss.jscan.runtime.NetworkPolicyRuntime.preFilter(Unknown Source) at org.hibernatespatial.HBSpatialExtension.<clinit>(HBSpatialExtension.java:85) at org.hibernatespatial.GeometryUserType.configure(GeometryUserType.java:63) at org.hibernatespatial.GeometryUserType.setParameterValues(GeometryUserType.java:226) at org.hibernate.type.TypeFactory.injectParameters(TypeFactory.java:545) at org.hibernate.type.CustomType.<init>(CustomType.java:67) at org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:240) at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:260) at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253) at org.hibernate.mapping.Property.isValid(Property.java:185) at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:395) at org.hibernate.mapping.RootClass.validate(RootClass.java:192) at org.hibernate.cfg.Configuration.validate(Configuration.java:1021) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1206) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760) at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33) at com.test.persistence.workers.jpa.JpaWorker.<init>(JpaWorker.java:52) at com.test.persistence.Runner.main(Runner.java:28) How do i configure a policy ?? the offending classes are contained in the hibernate-spatial-1.0-M1.jar jar file. Cheers, Andy 2008/5/14 Karel Maesen <[hidden email]>: I have no idea what these messages are. _______________________________________________ hibernatespatial-users mailing list [hidden email] http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users |
||||||||||||||||
|
andydale
|
Hi,
The problem exists with the firewall I am behind, which when downloading jar files adds the com/trend stuff. Cheers, Andy
|
||||||||||||||||
|
ricard
|
How did you solve it? Did you change any policy ? Thanks
|
||||||||||||||||
|
andydale
|
I unfortunately cannot say what configuration changes were needed, as my department has no control/access to the firewall.
Cheers, Andy 2009/1/9 ricard (via Nabble) <[hidden email]> How did you solve it? Did you change any policy ? Thanks |
|||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |