Sessions and W98 + IE

2002-05-19 Thread David Tunkrans



Hi 

Im having problems with "broken" sessions for w98 + 
IE browsers. Does anyone know of errors in the Orion sessiontracking 
mechanism?

/David


XAException

2002-05-19 Thread Kiran lal

Hi
I am getting Orion connection closed exception when the load is high on the
server. It is hapening when the ejb server is going to close the connection
and commit. We are using Oracle 9iAS Server(Orion)
Any advice  will be helpful
regards
vc

com.evermind.server.rmi.OrionRemoteException: Transaction was rol
led back: Error in transaction: javax.transaction.xa.XAException:
The connection was closed: [oracle.jdbc.driver.OracleConnection
3cb129 - 146, autoCommit: false (false)]
at BackgroundProcess_StatelessSessionBeanWrapper34.calcul
ateDemurrage(BackgroundProcess_StatelessSessionBeanWrapper34.java
:1849)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHand
ler.java:66)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThrea
d.java:62)
at connection to localhost/127.0.0.1 as admin
at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGIN
ATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1381)
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMI
Connection.java:1304)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke
(RemoteInvocationHandler.java:53)
at __Proxy5.calculateDemurrage(Unknown Source)
at com.emirates.nomad.workers.CalculateDemurrageInitiator
.action(CalculateDemurrageInitiator.java:48)
at com.emirates.nomad.workers.WorkerThread.run(WorkerThre
ad.java:217)

Nested exception is:
javax.transaction.xa.XAException: The connection was closed: [ora
cle.jdbc.driver.OracleConnection@3cb129 - 146, autoCommit: false
(false)]
at com.evermind.sql.DriverManagerXAConnection.prepare(Dri
verManagerXAConnection.java:67)
at com.evermind.server.TransactionEnlistment.prepare(Tran
sactionEnlistment.java:127)
at com.evermind.server.ApplicationServerTransaction.commi
tPhaseTwo(ApplicationServerTransaction.java:429)
at com.evermind.server.ApplicationServerTransaction.commi
t(ApplicationServerTransaction.java:379)
at com.evermind.server.ApplicationServerTransaction.end(A
pplicationServerTransaction.java:546)
at BackgroundProcess_StatelessSessionBeanWrapper34.calcul
ateDemurrage(BackgroundProcess_StatelessSessionBeanWrapper34.java
:1846)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHand
ler.java:66)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThrea
d.java:62)
at connection to localhost/127.0.0.1
at com.evermind.server.rmi.OrionRemoteException.receive(O
rionRemoteException.java:130)
at com.evermind.server.rmi.RMIConnection.handleMethodInvo
cationResponse(RMIConnection.java:1458)
at com.evermind.server.rmi.RMIConnection.run(RMIConnectio
n.java:471)
at java.lang.Thread.run(Thread.java:484)
com.emirates.nomad.UMSBackprocessException: Error processing.
at com.emirates.nomad.workers.CalculateDemurrageInitiator
.action(CalculateDemurrageInitiator.java:56)
at com.emirates.nomad.workers.WorkerThread.run(WorkerThre



_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





Cmp entity with postgresql

2002-05-19 Thread David Plante

hi 

in my postgresql database i have a table customer with a field sex witch
is a char that can be either 'M' or 'W' .My cmp entity  beans has a var
: char sex;

when i try to load the entity i get Database error: Bad Short M; witch
comes from  org.postgresql.jdbc2.ResultSet.getShort . in the
database-schema i have that entry  type-mapping type=char name=char
/
  
here's the complete error message 

com.evermind.server.rmi.OrionRemoteException: Transaction was rolled
back: Database error: Bad Short M
at
customerHome_EntityHomeWrapper2.findAll(customerHome_EntityHomeWrapper2.java:1202)
at
__jspPage0_jsp_list_jsp._jspService(__jspPage0_jsp_list_jsp.java:132)
at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)
at com.evermind._ah._rad(Unknown Source)
at com.evermind.server.http.JSPServlet.service(Unknown Source)
at com.evermind._cxb._abe(Unknown Source)
at com.evermind._cxb._uec(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)

Nested exception is:
Bad Short M
at org.postgresql.jdbc2.ResultSet.getShort(ResultSet.java:232)
at
customerHome_EntityHomeWrapper2.findAll(customerHome_EntityHomeWrapper2.java:1118)
at
__jspPage0_jsp_list_jsp._jspService(__jspPage0_jsp_list_jsp.java:132)
at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)
at com.evermind._ah._rad(Unknown Source)
at com.evermind.server.http.JSPServlet.service(Unknown Source)
at com.evermind._cxb._abe(Unknown Source)
at com.evermind._cxb._uec(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)


here's my complete postgresql.xml 

?xml version=1.0?
!DOCTYPE database-schema PUBLIC -//Evermind//- Database schema
http://www.orionserver.com/dtds/database-schema.dtd;

database-scheme name=PostGreSQL not-null=not null null=null
primary-key=primary key
type-mapping type=java.lang.String name=varchar(255) /
type-mapping type=int name=integer /
type-mapping type=long name=integer /
type-mapping type=float name=float /
type-mapping type=double name=double precision /
type-mapping type=byte name=smallint /
type-mapping type=char name=char /
type-mapping type=short name=integer /
type-mapping type=boolean name=bool /
type-mapping type=java.util.Date name=timestamp /
type-mapping type=java.io.Serializable name=oid /

disallowed-field name=position /
disallowed-field name=parent /
disallowed-field name=username /
disallowed-field name=date /
disallowed-field name=order /
disallowed-field named=abort /^M
disallowed-field named=analyze / ^M
disallowed-field named=binary / ^M
disallowed-field named=cluster /^M
disallowed-field named=constraint /^M
disallowed-field named=copy /^M
disallowed-field named=do / ^M
disallowed-field named=explain /^M
disallowed-field named=extend /^M
disallowed-field named=listen /^M
disallowed-field named=load /^M
disallowed-field named=lock / ^M
disallowed-field named=move / ^M
disallowed-field named=new /^M
disallowed-field named=none /^M
disallowed-field named=notify / ^M
disallowed-field named=offset / ^M
disallowed-field named=reset / ^M
disallowed-field named=setof /^M
disallowed-field named=show /^M

disallowed-field named=transaction /^M
disallowed-field named=unlisten /^M
disallowed-field named=until / ^M
disallowed-field named=vacuum /^M
disallowed-field named=verbose /^M
/database-scheme

I really dont know what it could be now.
anyone has an idea ???

David Plante






Re: Sessions and W98 + IE

2002-05-19 Thread Stephen Davidson

Hi David.
The major errors I have come accross in IE (all tested version of 4, 5,  6) was that 
the 56bit encryption package was completely broken in IE.  The workaround was to force 
128bit, or no encryption.
I am not aware of any other issues.

-Steve

David Tunkrans wrote:

  Hi
 
 
 
  Im having problems with broken sessions for w98 + IE browsers. Does
  anyone know of errors in the Orion sessiontracking mechanism?
 
 
 
  /David
 






Any advanced CMP mapping for int[] via java.sql.Array to a VARRAY col type?

2002-05-19 Thread Andy Parkman

Can anyone point me in the direction of some more detailed information on
advanced CMP mapping techniques?

I was wondering if a CMP mapping can be found which would generate JDBC code
to bind a field variable defined as an array of integer via a java.sql.Array
type to a database column defined as a varray of number under Oracle?

I have been experimenting a little in and around this area but am not
finding
much on this in the Orion documentation and am having difficulty applying
what I can find to my needs. My searches on the mailing list archives also
don't find anything on java.sql.Array or much relevant traffic on other
terms
such as 'persistence-type'.

Is there an API which allows users to provide enhancements to the facilities
provided by the current CMP implementation? If so am I missing some more
detailed documentation or useful examples on this?

Regards,
Andy Parkman







RE: Any advanced CMP mapping for int[] via java.sql.Array to a VARRAY col type?

2002-05-19 Thread Juan Pablo Lorandi

I think there's a PersistanceManager interface for this, but I remember
it not being configurable from files, that is, it seems it's not fully
implemented yet. I guess you'll have to resort to BMP for such complex
mappings.

My 2c,

Juan Pablo Lorandi
Chief Software Architect
Code Foundry Ltd.
[EMAIL PROTECTED]

Barberstown, Straffan, Co. Kildare, Ireland.
Tel: +353-1-6012050  Fax: +353-1-6012051
Mobile: +353-86-2157900
www.codefoundry.com


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of 
 Andy Parkman
 Sent: Sunday, May 19, 2002 6:36 PM
 To: Orion-Interest
 Subject: Any advanced CMP mapping for int[] via 
 java.sql.Array to a VARRAY col type?
 
 
 Can anyone point me in the direction of some more detailed 
 information on advanced CMP mapping techniques?
 
 I was wondering if a CMP mapping can be found which would 
 generate JDBC code to bind a field variable defined as an 
 array of integer via a java.sql.Array type to a database 
 column defined as a varray of number under Oracle?
 
 I have been experimenting a little in and around this area 
 but am not finding much on this in the Orion documentation 
 and am having difficulty applying what I can find to my 
 needs. My searches on the mailing list archives also don't 
 find anything on java.sql.Array or much relevant traffic on 
 other terms such as 'persistence-type'.
 
 Is there an API which allows users to provide enhancements to 
 the facilities provided by the current CMP implementation? If 
 so am I missing some more detailed documentation or useful 
 examples on this?
 
 Regards,
 Andy Parkman
 
 
 
 
 






Re: Sharing datasource

2002-05-19 Thread Scott Farquhar

Yes, that is true.

At the moment, there is no EJB clustering in Orion, although it may 
appear in future versions.

Cheers,
Scott

Linus Larsen wrote:
 If the same EJB application is running on lets say two servers, and are 
 sharing the same datasource. Do I have to configure the orion-ejb-
 jar.xml and set the exclusive-write-access=false for every entity 
 deployment (on both servers) sharing the datasource,  to avoid 
 inconsistency in the EJBCaching?
 
 regards
 
 /linus
 
 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





Re: Sharing datasource

2002-05-19 Thread Hani Suleiman

Erm, nope.

Orion has EJB clustering, it's just not documented, although I hear a
document about it is coming out soon...ish...

On 5/19/02 9:50 PM, Scott Farquhar [EMAIL PROTECTED] wrote:

 Yes, that is true.
 
 At the moment, there is no EJB clustering in Orion, although it may
 appear in future versions.
 
 Cheers,
 Scott
 
 Linus Larsen wrote:
 If the same EJB application is running on lets say two servers, and are
 sharing the same datasource. Do I have to configure the orion-ejb-
 jar.xml and set the exclusive-write-access=false for every entity
 deployment (on both servers) sharing the datasource,  to avoid
 inconsistency in the EJBCaching?
 
 regards
 
 /linus
 
 
 





RE: Can I write JDBC Transactions in Bean managed entity Beans?

2002-05-19 Thread Juan Pablo Lorandi

Yes, there is. Since you're not using transactions that are independent
of the app server(and thus the app server doesn't know about the
transaction at all, and isn't able to vote in it) the app server built
in transactional support is not functional. An example:

EJB A: a SLSB
EJB B: Your Entity Bean, PK=1.
EJB C: Your Entity Bean, PK=2.

If A, within a method, calls and modifies B and then C, and the calls on
C produce an exception, B will be commited to the database.

Where:

EJB A: a SLSB
EJB B: A correct Entity Bean, PK=1.
EJB C: A correct Entity Bean, PK=2.

If A, within a method, calls and modifies B and then C, and the calls on
C produce an exception, the transaction will be rolled back.

You should use either CMT or BMT in your BMP Entity Beans. Simply not
coding transactions should do, the container would automatically handle
the transactions (that's CMT).

HTH,

Juan Pablo Lorandi
Chief Software Architect
Code Foundry Ltd.
[EMAIL PROTECTED]

Barberstown, Straffan, Co. Kildare, Ireland.
Tel: +353-1-6012050  Fax: +353-1-6012051
Mobile: +353-86-2157900
www.codefoundry.com


 -Original Message-
 From: A mailing list for Enterprise JavaBeans development 
 [mailto:[EMAIL PROTECTED]] On Behalf Of Murali Mohan
 Sent: Saturday, May 18, 2002 8:28 AM
 To: [EMAIL PROTECTED]
 Subject: Can I write JDBC Transactions in Bean managed entity Beans?
 
 
 Hai,
 
 According to spec we must use declarative transactions for 
 entity beans. But I used JDBC transactions. It works fine.
 
 Is there any thing wrong?
 
 --Murali
 
 ==
 =
 To unsubscribe, send email to [EMAIL PROTECTED] and 
 include in the body of the message signoff EJB-INTEREST.  
 For general help, send email to [EMAIL PROTECTED] and 
 include in the body of the message help.