mickey hendrix

Greenhorn
+ Follow
since May 08, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mickey hendrix

thank you very much
11 years ago
Hi,

I'm new to j2me,so sorry for the questions

I have a Java 5 swing application that I would want to use on a Windows Mobile 6.1 device.
I have had the idea of integrate it in an applet.
I have read that the crme vm has a the swing package support,but it works only on window CE.Not good for me.
I have installed jbed jvm and I have thinked two possible scenario.
So the questions are these:

1) Are awt fully supported and can run by an applet in j2me?
2) Do I need some extra applet viewer to run applet with awt?
3) Do I need to rewrite all in a stand alone midlet with LCDUI? are there "event" item?
4) can I use midlet with awt?

thanks in advance
11 years ago
Hi,
I have a problem with th ack of jms message in relation of the cmp transaction attribute.
I have an MDB with CMP transaction attribute set to Required that receive a message from a queue 1 and send a message on a queue 2.On this Queue 2 there as another MDB with transaction attribute set to Required to.
The problem is that the second MDB doesn't receive the message from the first MDB.
But If I set the transaction attribute of the first MDB to NotSupported the message arrives to the second MDB.
Why?Where is my mistake?
I work on Weblogic Server 8.1 sp6
thanks for help
Hello to everybody,
I have a problem with the SSL comunication beetween IPlanet sp6 and Bea Weblogic 8.1 sp5.I have abilitated the SSL connection on WLS on ip address localhost:7002.
Then I have exported a certificate from the DemoTrust.jks and configured the paramteres in the obj.conf of iPlanet.All works very well.The problem become when I try to create my own self-cerficate and configure bea to use Custom Trust and Custom Identity.
I have created private key and stored in a self-signed certificate with the openssl tool:

openssl genrsa -out
E:\MyKeystore\mytrustkey.pem 2048

openssl req -new -x509 -key E:\MyKeystore\mytrustkey.pem -out E:\MyKeystore\mytrustcert.pem -days 1095

then with the sun keytool I have stored it in the MyCustomTrustKeyStore.jks

keytool -import -trustcacerts -alias "mytrustcert" -file E:\MyKeystore\mytrustcert.pem -keystore E:\MyKeystore\MyCustomTrustKeyStore.jks -storepass mypass


then I have generated an identity key ad putten it in the MyCustomIdentityKeyStore.jks with keytool

keytool -genkey -alias myidentitykey -keystore "E:/MyKeystore/MyCustomIdentityKeyStore.jks"

then I have configured under Bea Console and seems that the server goes up well.

IPlanet side I have configured the obj.conf:before with the default jks all worked well,I have changed only the TrustedCAFile

Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl_proxy" WebLogicHost="localhost" WebLogicPort="7002" HungServerRecoverSecs="600" Debug=ALL DebugConfigInfo=TRUE RequireSSLHostMatch=FALSE WLLogFile="E:/Log_JSP.txt" KeepAliveEnabled="false" SecureProxy="ON" TrustedCAFile="E:/MyKeystore/mytrustcert.pem"

the problem is that when I restart the IPlanet server and try to call the first jsp I receive on its debug the log the following error

Wed Sep 27 13:21:25 2006 ERROR: SSLWrite failed
Wed Sep 27 13:21:25 2006 SEND failed (ret=-1) at 718 of file URL.cpp
Wed Sep 27 13:21:25 2006 *******Exception type [WRITE_ERROR_TO_SERVER] raised at line 719 of URL.cpp
Wed Sep 27 13:21:25 2006 Marking localhost:7002 as bad
Wed Sep 27 13:21:25 2006 got exception in sendRequest phase: WRITE_ERROR_TO_SERVER [os error=0, line 719 of URL.cpp]: at line 971

and it seems tha the calling does not arrive on Bea Weblogic.
Can anyone help me please?
15 years ago
Hello to everybody,
I have a problem with the SSL comunication beetween IPlanet sp6 and Bea Weblogic 8.1 sp5.I have abilitated the SSL connection on WLS on ip address localhost:7002.
Then I have exported a certificate from the DemoTrust.jks and configured the paramteres in the obj.conf of iPlanet.All works very well.The problem become when I try to create my own self-cerficate and configure bea to use Custom Trust and Custom Identity.
I have created private key and stored in a self-signed certificate with the openssl tool:

openssl genrsa -out
E:\MyKeystore\mytrustkey.pem 2048

openssl req -new -x509 -key E:\MyKeystore\mytrustkey.pem -out E:\MyKeystore\mytrustcert.pem -days 1095

then with the sun keytool I have stored it in the MyCustomTrustKeyStore.jks

keytool -import -trustcacerts -alias "mytrustcert" -file E:\MyKeystore\mytrustcert.pem -keystore E:\MyKeystore\MyCustomTrustKeyStore.jks -storepass mypass


then I have generated an identity key ad putten it in the MyCustomIdentityKeyStore.jks with keytool

keytool -genkey -alias myidentitykey -keystore "E:/MyKeystore/MyCustomIdentityKeyStore.jks"

then I have configured under Bea Console and seems that the server goes up well.

IPlanet side I have configured the obj.conf:before with the default jks all worked well,I have changed only the TrustedCAFile

Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl_proxy" WebLogicHost="localhost" WebLogicPort="7002" HungServerRecoverSecs="600" Debug=ALL DebugConfigInfo=TRUE RequireSSLHostMatch=FALSE WLLogFile="E:/Log_JSP.txt" KeepAliveEnabled="false" SecureProxy="ON" TrustedCAFile="E:/MyKeystore/mytrustcert.pem"

the problem is that when I restart the IPlanet server and try to call the first jsp I receive on its debug the log the following error

Wed Sep 27 13:21:25 2006 ERROR: SSLWrite failed
Wed Sep 27 13:21:25 2006 SEND failed (ret=-1) at 718 of file URL.cpp
Wed Sep 27 13:21:25 2006 *******Exception type [WRITE_ERROR_TO_SERVER] raised at line 719 of URL.cpp
Wed Sep 27 13:21:25 2006 Marking localhost:7002 as bad
Wed Sep 27 13:21:25 2006 got exception in sendRequest phase: WRITE_ERROR_TO_SERVER [os error=0, line 719 of URL.cpp]: at line 971

and it seems tha the calling does not arrive on Bea Weblogic.
Can anyone help me please?
15 years ago
Hello...
how can I set a vm paramter like -Dsomevariable for my swing client application that I download by javaws?
16 years ago
hello to everybody....I have a problem with log4J..
I need to pass a variabe value before all the log line...example

[MICKEY] 20050606 - Log Message!!
[MINNIE] 20050606 - Log Message!!

etc.....where the first word changes.....hoe can I do?can qnyone help me please?
I have some log rotation problem...I have set del log rotation by size...and now the first time the log rotate,but then the output continue to go on the log with the extension .log001 and not on the configured file with the original name.
why?
I work on hp/ux with Weblogic Server 8.1 sp3
thanks for help
16 years ago
hello to everybody
I have a problem sorting an Hashtable by the key:this is a String like an ip like "120.3.5.3" and the object is generic...anything:
Example:

Hashtable hash = new Hashtable;
hash.put("12.5.8.10",myObject);
hash.put("12.7.8.10",myObject);
hash.put("12.5.9.10",myObject);
hash.put("12.24.8.10",myObject);
hash.put("12.5.8.11",myObject);

Now that I have valorized the items I need to order the hashtable in ascending mode by the key....
How can I do?Ot I have to use another Struct ( like Set or Map ) in witch put the data?
thanks for help
16 years ago
the transaction is long because the server process is long,but this is right.The problem is:How can I interrupt and rollback a server transaction
by the client?
16 years ago
whaqt I need to do is to break and rollback the transaction ( REQUIRED on the container ) by the client when I want....Whit this prototipe now I try to pass the transaction rollback operation from the client to the server,bt now the message on the server is the following:

java.sql.SQLException: The transaction is no longer active - status: 'Marked rollback. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 33 seconds

Xid=BEA1-00006D5145365E026810(6407574),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=1,seconds since begin=33,seconds left=30,activeThread=Thread[ExecuteThread: '23' for queue: 'weblogic.kernel.Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=started,assigned=none),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@f30862,re-Registered = false),SCInfo[mydomain+IRMA_Admin]=(state=active),properties=({weblogic.jdbc=t3://10.2.1.16:10004}),CoordinatorURL=IRMA_Admin+10.2.1.16:10004+mydomain+t3+)]'. No further JDBC access is allowed within this transaction.

at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:155)

at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:164)

at weblogic.jdbc.wrapper.Statement.checkStatement(Statement.java:234)

at weblogic.jdbc.wrapper.Statement.preInvocationHandler(Statement.java:83)

at weblogic.jdbc.wrapper.Statement_oracle_jdbc_driver_T4CStatement.clearBatch(Unknown Source)

at irma.utility.database.DataBaseUtility.executeBatchUpdate(DataBaseUtility.java:62)

at irma.technology.IrmaTechno.updateDBData(IrmaTechno.java:1077)

at irma.business.service.ImportService.importFileEricsson(ImportService.java:698)

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:324)

at irma.business.Dispatcher.callService(Dispatcher.java:66)

at irma.ejb.serviceSessionManager.ServiceSessionManagerBean.getService(ServiceSessionManagerBean.java:67)

at irma.ejb.serviceSessionManager.ServiceSessionManager_b1engw_EOImpl.getService
16 years ago
Hello to everybody...I'd need a solution for a probem that I 'm not able to resolve.I have a session bean on the server ( WeblogicServer 8.1 Sp3 ) and a Java Swing client.I need to break and rollback a long process on the server by client swing button pression.I have thought to create a user transaction (under a client thread process) on the client and I try to propagate it to the container ( Container Managed Transaction).Now I have to break the long time server operation at certain moment by make a rollback on the client trasaction,after the button pression.The problem is that the rollback DOES NOT ARRIVE to the server and the sever process continue to operate.How this is possible?I think that I make basic mistake,but which?Can Anyone help me please?
thanks for help and sorry for bad english.
16 years ago
the problem was the DataSource:
I had not created it in transactional mode ( Honor Global Transaction ).Now it works.
thanks for help.Bye.
I can't see the data not by the swing client......I see them from the application.I don't see them from external application like SqlPlus,TOAD....etc.I answer to your question:
1)The transaction has started by the Weblogic Container
2)Yes
3)No

4)what do you mean for method level?

thanks for help
Hello to everybody,I have a problem with DataBase data visibility after the end of the operation.
I have deployed a stateless session bean with the transaction attribute set to REQUIRED:The trasaction is of CONTaINER type.
When I call an ejb service this take the connection from a ConnectionPool ( DRIVERS Oracle 9.2 THIS ) and it insert multiple rows into the database:the problem is that I can see the data
written from other sessions,also if I stop the client ( JSwing ).The only possible way is to stop the server:after this the data become visible.
How is this possible?Can anyone help me?
thanks for all and sorry for bad english.