RE: Problem compiling a set of schemas with xmlbeans 2.0.0

2005-08-02 Thread Radu Preotiuc-Pietro
I have tried to compile the Schemas from that location and I got no errors. Try using the same command-line that I have used to eliminate differences in environments as much as possible. scomp -dl -mx 512M opengis/ (directory where you've downloaded the Schemas) Now it looks to me like your c

RE: ClassCastException

2005-08-02 Thread Bao Le
Hello, I think the code plenty clear. Pls verify that the "import ..." code are correct. Regards, --- Bao Le Lecturer http://leducbao.blogspot.com Faculty of Information Technology Ton Duc Thang University of Tech

RE: NullPointerException during schema compilation

2005-08-02 Thread Radu Preotiuc-Pietro
I have looked over it and identified what is the most probable cause for this NPE, and as it turns out some checks were actually incorrect. Thanks for reporting this! I'll have a fix checked in SVN shortly. Radu -Original Message- From: Weiler, Frank (KBV) [mailto:[EMAIL PROTECTED] Sent

RE: Generated code question

2005-08-02 Thread Wing Yew Poon
Niklas, I think that, when using the xmlbean ant task, you set the binary output path by setting the classgendir attribute. See http://xmlbeans.apache.org/docs/2.0.0/guide/antXmlbean.html for details. - Wing Yew From: Niklas Modin Sent: Tuesday, August 02, 2005 1:49 PMTo: user@xmlbeans.apa

RE: Generated code question

2005-08-02 Thread Niklas Modin
Hi I am using the ant task for compiling my xsd. I’m not sure that I can specify the binary output path for that task. Instead is seems that there is a TEMP path used for this as I get this output from the task :   [xmlbean] Compiling 122 source files to D:\TEMP\xbean15776.d\classes  

RE: Generated code question

2005-08-02 Thread Lawrence Jones
Hi Niklas   The TypeSystemHolder class is a generated class which is the “link” between the Java (.class) world and the compiled schema (.xsb) world. It is output in the binary output directory (whatever you specify with the –d flag to scomp) and is not output if you specify -srconly.  

RE : ORA-01000: maximum open cursors exceeded

2005-08-02 Thread Stuart Charlton
Just a quick note, I'm a certfied Oracle DBA, and while you should be calling close(), this rarely truly means "close", especially if you're using statement caches (and if you aren't, you probably should :). In oracle it's most scalable to cache open Statements for as long as possible. Ideal

Generated code question

2005-08-02 Thread Niklas Modin
Hi !   When using the xmlbean ant task, the generated source refers to some strange package names, e.g :   schemaorg_apache_xmlbeans.system.s356E206406D0E1BFD7A82E7E8EAC7C8F.TypeSystemHolder.typeSystem.resolveHandle("alerttype5256type");   When trying to compile the generated code th

RE: Jar file internals?

2005-08-02 Thread Steve Davis
Thank you Cezar -Original Message- From: Cezar Andrei [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 12:42 PM To: user@xmlbeans.apache.org Subject: RE: Jar file internals? The directory schema/src is not needed for validation or parsing, but the .xsb files are needed. The src

RE: ClassCastException

2005-08-02 Thread James Kavanagh
I tried using just the .setRequest(reqImpl) without prior copying but I still get the same ClassCastException. Is there anything else I need to check? Would it possibly be something to do with the schema itself? Thanks, James Kavanagh -Original Message- From: David Jencks [mailto:[EMAIL

RE: Jar file internals?

2005-08-02 Thread Cezar Andrei
The directory schema/src is not needed for validation or parsing, but the .xsb files are needed. The src is included because there are applications that need the source file of a given schema type. If you don't use SchemaComponent.getSourceName() you probably don't use the files in schema\src.

RE: Jar file internals?

2005-08-02 Thread Steve Davis
I would hope the schema\src directory is not needed for validation or parsing. We will try deleting the src and see what happens. -Original Message- From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 6:38 PM To: user@xmlbeans.apache.org Subject: RE: Jar file intern

Re: ClassCastException

2005-08-02 Thread David Jencks
You can leave out the .copy(). setFoo() copies the xmlobject anyway: otherwise you would get diamonds or directed acyclic graphs, not trees or setting in one place would remove the object from its original location. I suspect that .copy() is an XmlObject method and you would need to chan

RE: ClassCastException

2005-08-02 Thread James Kavanagh
As an addendum I've included the code snippet I'm using. RequestDocument req = RequestDocument.Factory.parse(new File("C:/Temp/ex.xml"), options); System.out.println( "Request -- " + req.getRequest().getCardDetails().getExpiryDate()); ResponseDocument res

RE: ClassCastException

2005-08-02 Thread James Kavanagh
Hi, I'm new to XML Beans so forgive me if I've missed something glaringly obvious... I have a schema with two elements, Request and Response. The Response element is derived from the Request element and this is very helpfully reflected in the compiled objects after using scomp. Effectively when

RE : RE : ORA-01000: maximum open cursors exceeded

2005-08-02 Thread Celinio Fernandes
Thanks, That is the information I needed to remember: "every SQL statement you run against an ORACLE server opens a database cursor implicitly" The solution should never be to increase the number of cursors open in the Oracle server parameters, that would be a mistake (poor performances, use of

RE: RE : ORA-01000: maximum open cursors exceeded

2005-08-02 Thread Cordes, Hans-Dieter
According to my experience with simple Java-based applications and ORACLE, it is very easy to exceed that limit of 50 open cursors, so we always set it to a minimum of 500 after an ORACLE installation. I have this advice from an ORACLE DBA book where they write that you should always increase th

Re: RE : ORA-01000: maximum open cursors exceeded

2005-08-02 Thread Jean-Christophe Pazzaglia
... and send the DB engine to the cleaner closing the query => close the cursor and free some memory is probably a better solution indeed ... however IMHO you should think twice to run 1000's queries in parallel, or even sequentially if it is not necessary, (you are each time paying a huge

RE: RE : ORA-01000: maximum open cursors exceeded

2005-08-02 Thread Cordes, Hans-Dieter
Hello Celinio, I have some ORACLE background, and here is what I would say: - every SQL statement you run against an ORACLE server opens a database cursor implicitly - there is an "OPEN_CURSORS" parameter in the "init.ora" file that the server uses

RE : ORA-01000: maximum open cursors exceeded

2005-08-02 Thread Celinio Fernandes
I got my answer, I need to use: instruction.close(); Still, does anyone know a proper way to do it with Xmlbeans ? Thanks To : user@xmlbeans.apache.org Object : ORA-01000: maximum open cursors exceeded Hi, I would like to make sure this error has nothing to do with XMLbeans. I am executin

ORA-01000: maximum open cursors exceeded

2005-08-02 Thread Celinio Fernandes
Hi, I would like to make sure this error has nothing to do with XMLbeans. I am executing a SELECT query each time I have a father tag, to get information about him, passing the son and daughter as arguments to the SELECT query. There are like 1000 fathers, and the maximum open cursors in Oracle is