Exception while using CachingRealm

 

Was there ever a resolution to this issue?
Timo Jantunen <[email protected]> wrote:
Bryan O'Sullivan wrote:
t> I have been experiencing problems with CachingRealm, which seem to
t> relate to ACL handling.
Hmm. Can you post the cache-related properties you have set, please?
I can't currently see how the problem you describe can happen.Excluding setting the custom realm, all other settings are on their
defaults. The setting is:
weblogic.security.realmClass=com.stonesoft.ow.core.util.OWRealm
And hopefully any relevant part of debug output when starting the server
is (full log with "egrep -i 'realm|security'").
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.enforceClientCert', current value: 'false'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.httpd.authRealmName', current value: 'WebLogic Server'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.SSLHandler.enable', current value: 'true'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.user.enable', current value: 'true'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.disableGuest', current value: 'false'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.URLAclFile', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.realm.debug', current value: 'false'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.key.server', current value:
'/home/timoj/work/weblogic/myserver/demokey.pem'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.certificate.authority3', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.certificate.authority2', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.certificateCacheSize', current value: '3'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.clientRootCA', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.auth.enable', current value: 'true'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.group', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.caseSensitive', current value: 'true'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.certificate.server', current value:
'/home/timoj/work/weblogic/myserver/democert.pem'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.certificate.authority', current value:
'/home/timoj/work/weblogic/myserver/ca.pem'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.SSL.ciphersuites', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.key.export.lifespan', current value: '500'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.clientRootCA4', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.clientRootCA3', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.clientRootCA2', current value: 'null'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.group.enable', current value: 'true'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.acl.enable', current value: 'true'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.ssl.enable', current value: 'false'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.perm.enable', current value: 'true'
ke touko 24 10:24:16 GMT+03:00 2000:<I> <System Props>
java.security.manager =
ke touko 24 10:24:16 GMT+03:00 2000:<I> <System Props>
java.security.policy = =/home/timoj/work/weblogic/weblogic.policy
ke touko 24 10:24:22 GMT+03:00 2000:<I> <JMS> Init JMS Security
Timo Jantunen
Stonesoft Oyj, Optiwise R&D
http://www.stonesoft.com http://www.optiwise.com

Similar Messages

  • Exception while using unit of work commit

    Hi,
    I have using this code to create a object
    KbAdAlerts alert = new KbAdAlerts();
    alert.setAlertId(kmData.getAlertId());
    alert.setAlertDesc(kmData.getOutcome());
    alert.setAlertLastRevisionDate(KmUtils.convertReviewDate(kmData.getReviewDate()));
    alert.setAlertType(kmData.getAlertType());
    System.out.println("Alert Object :" + alert);
    KbAdAlerts alertClone = (KbAdAlerts) uow.registerObject(alert);
    System.out.println("Clone Alert:" + alertClone);
    uow.printRegisteredObjects();
    uow.commit();
    I am getting exception while using uow.commit(). I have gone into alert object and everything seems to be fine.
    Could you help me in this issue.
    Thanks,
    Ashish
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01400: cannot insert NULL into ("AD_OWNER"."KB_AD_ALERTS"."ALERT_ID")
    Error Code: 1400
    Call:insert into kb_ad_alerts(alert_id, alert_desc, alert_type, alert_last_revision_date)
    values
    (NULL, NULL, NULL, NULL)
    Query:InsertObjectQuery(oracle.ccr.admin.model.KbAdAlerts@6108)
         at oracle.toplink.exceptions.TopLinkException.<init>(TopLinkException.java:46)
         at oracle.toplink.exceptions.DatabaseException.<init>(DatabaseException.java:50)
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:282)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:658)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:707)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:496)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:442)
         at oracle.toplink.publicinterface.UnitOfWork.executeCall(UnitOfWork.java:1603)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:238)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObject(DatabaseQueryMechanism.java:355)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:433)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:60)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:622)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:586)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:479)
         at oracle.toplink.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:110)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:259)
         at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:603)
         at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:519)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2532)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:981)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:938)
         at oracle.toplink.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:240)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:161)
         at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3123)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1242)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1330)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:1097)
         at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:865)
         at oracle.ccr.admin.model.FeedbackServices.writeFeedback(FeedbackServices.java:116)
         at oracle.ccr.admin.view.AlertDetails.updateTables(AlertDetails.java:834)
         at oracle.ccr.admin.view.AlertDetails.commandButton1_action(AlertDetails.java:822)
         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:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
         at oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Hi,
    I am having a similar problem that results in this stack trace. The funny thing is that it occurs after a session.logout/login and re-read of the object I'm trying to update. The other thing is that if I remove objects from the transaction it just happens somewhere else - on a different object/descriptor. I am attempting to upgrade from 9.03 runtime to the 10.0.3.1 builder/runtime. I am connecting to a Sybase 12.5 db.
    Any ideas on this one?
    Thanks,
    Bret
    This is the sql that is found in the DatasourceCallQueryMechanism. We are not using any custom SQL.
    SQLCall(INSERT INTO Invoice (id, description, billingAddress, customerNote, invoiceNumber, startDate, stopDate, sentDate, commitDate, customerId, dueDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))
    java.lang.NullPointerException
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:213)
         at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:156)
         at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:170)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:426)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:65)
         at oracle.toplink.queryframework.InsertObjectQuery.executeCommitWithChangeSet(InsertObjectQuery.java:75)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:251)
         at oracle.toplink.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:47)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:542)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:100)
         at oracle.toplink.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:72)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2578)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:988)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:945)
         at oracle.toplink.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:243)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:218)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:174)
         at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3177)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1282)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1370)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:1137)
         at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:905)
         at com.tbs.database.DBBroker.mergeSingleObject(DBBroker.java:288)
         at com.tbs.database.DBBroker.merge(DBBroker.java:235)
         at com.tbs.database.DBBrokerSetInvoker.merge(DBBrokerSetInvoker.java:73)
         at com.tbs.database.TbsDataSource.merge(TbsDataSource.java:353)
    /////////////////////////////////

  • Invalid_path exception while using UTL_FILE.FOPEN

    Hi
    I am getting invalid_path exception while using the UTL_FILE.fopen subprogram. I tried finding out the reason but could not solve it. Please help.
    Below is my piece of code.
    create directory utldr as 'e:\utldir';
    declare
    f utl_file.file_type;
    s varchar2(200);
    begin
    dbms_output.put_line('1');
    f := utl_file.fopen('UTLDR','utlfil.txt','r');
    dbms_output.put_line('2');
    utl_file.get_line(f,s);
    dbms_output.put_line('3');
    utl_file.fclose(f);
    dbms_output.put_line('4');
    dbms_output.put_line(s);
    exception
    when utl_file.invalid_path then
    dbms_output.put_line('invalid_path');
    end;
    the result is:
    1
    invalid_path

    I am executing it from sys. The same user who created the directory.
    The output is as below:
    SELECT * FROM dba_directories
    OWNER     DIRECTORY_NAME     DIRECTORY_PATH
    SYS     MEDIA_DIR      d:\avale\rel4\demo\schema\product_media\
    SYS     LOG_FILE_DIR     d:\avale\rel4\assistants\dbca\logs\
    SYS     DATA_FILE_DIR     d:\avale\rel4\demo\schema\sales_history\
    SYS     EMP_DIR     E:\Oracle Directory
    SYS     REMOTED     \\10.1.1.12\oracle directory
    SYS     UTLDR     e:\utldir
    SELECT * FROM dba_tab_privs WHERE table_name='UTLDR'
    GRANTEE     OWNER     TABLE_NAME     GRANTOR     PRIVILEGE     GRANTABLE     HIERARCHY
    PUBLIC     SYS     UTLDR     SYS     READ     NO     NO

  • Security Exception while using OIM client API with Webcenter

    Hi,
    We are using OIM 11g Client api for creating user from our WebCenter portal application. But we are getting security as well as no such service exception while calling login from the OIM client.
    Exception::
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
         at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
         at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
         at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:114)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
    Caused by: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    Client Code::
    System.setProperty("java.security.auth.login.config", "Path to authwl.conf");
    System.setProperty("OIM.AppServerType", "weblogic");
    env = new Hashtable();
    env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL,"weblogic.jndi.WLInitialContextFactory");
    env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://host:14000/oim");
    client = new OIMClient(env);
    try {
    client.login(OIMUserName, OIMPassword);
    } catch (LoginException e) {
    e.printStackTrace();
    The exception is coming after executing the login code (not login exception).We logged into our application using weblogic user(even for any other user in OID,shared by OIM, is having same behaviour). The code is being executed from integrated webogic server and oim_server is running on a different server under a separate domain.
    Please suggest.
    Thanks

    There are files needed in your project.
    from the <OIMHOME>/config folder_
    xl.policy
    authwl.conf
    log.properties
    from the <OIMHOME>/ext folder_
    commons-logging.jar
    jakarta-oro-2.0.8.jar
    javagroups-all.jar
    jhall.jar
    log4j-1.2.8.jar
    mail.jar
    oscache.jar
    spring.jar
    wlfullclient.jar
    from the <OIMHOME>/lib folder_
    iam-platform-auth-client.jar
    iam-platform-context.jar
    iam-platform-pluginframework.jar
    iam-platform-utils.jar
    oimclient.jar
    XellerateClient.jar
    xlAPI.jar
    xlDataObjectBeans.jar
    xlUtils.jar
    xlVO.jar

  • Exception while using Nested types in Oracle

    Hi All,
    I am getting an exception while trying to use Nested types in Oracle. The same thing works in other systems. So it might be some problem with my configuration. Can anyone please help me out with this one. Thanks in advance..
    java.sql.SQLException: Internal Error
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1074)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1107)
    at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:81)
    at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:68)
    at oracle.sql.TypeDescriptor.initSQLName(TypeDescriptor.java:237)
    at oracle.sql.TypeDescriptor.getName(TypeDescriptor.java:198)
    at oracle.sql.StructDescriptor.getClass(StructDescriptor.java:1105)
    at oracle.sql.STRUCT.toJdbc(STRUCT.java:574)
    at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:502)
    at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:456)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81ImgBodyElements(OracleTypeCOLLECTION.java:1011)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81ImgBody(OracleTypeCOLLECTION.java:952)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:764)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearizeInternal(OracleTypeCOLLECTION.java:243)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:217)
    at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:891)
    at oracle.sql.ARRAY.getArray(ARRAY.java:315)
    at weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY.getArray(Unknown Source)
    Regards,
    Praveen G S

    Ok .. i got around this issue myself ..
    For others who might have had to face the same problem, let me tell them the problem that i had... i ll b happy if it helps someone ...
    The issue was improper privleges of the Nested Types in the schema to which my server was connecting. Once proper privelges were given, everything started working just fine ...

  • Exception while using JDIC

    I used jdic-0.9.1 for registering the file type association of the file format that i have created. While executing the code for registering the association it throws the following exception.
    java.lang.UnsatisfiedLinkError: no jdic in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
         at java.lang.Runtime.loadLibrary0(Runtime.java:788)
         at java.lang.System.loadLibrary(System.java:834)
         at org.jdesktop.jdic.filetypes.internal.WinRegistryWrapper.<clinit>(Unknown Source)
         at org.jdesktop.jdic.filetypes.internal.WinRegistryUtil.isSubKeyExist(Unknown Source)
         at org.jdesktop.jdic.filetypes.internal.WinRegistryUtil.isWin2kUserDefinedFileExtExist(Unknown Source)
         at org.jdesktop.jdic.filetypes.internal.WinAppAssociationWriter.isAssociationExist(Unknown Source)
         at org.jdesktop.jdic.filetypes.AssociationService.registerUserAssociation(Unknown Source)
         at conversion.RegisterAssociation.main(RegisterAssociation.java:23)
    Exception in thread "main"
    I have given the code here...
    mport org.jdesktop.jdic.filetypes.Association;
    import org.jdesktop.jdic.filetypes.AssociationAlreadyRegisteredException;
    import org.jdesktop.jdic.filetypes.AssociationService;
    import org.jdesktop.jdic.filetypes.RegisterFailedException;
    public class RegisterAssociation {
         * @param args
         public static void main(String[] args) {
              AssociationService associationService = new AssociationService();
              Association icubeAssociation = new Association();
              icubeAssociation.addFileExtension("icube");
              icubeAssociation.addAction(new org.jdesktop.jdic.filetypes.Action(
                        "open", "Path of application goes here"));
              icubeAssociation.setIconFileName("The icon file goes here");
              try {
                   associationService.registerUserAssociation(icubeAssociation);
              } catch (AssociationAlreadyRegisteredException e) {
              } catch (RegisterFailedException e) {
    }

    That is because it can't find the jdic dll file. If
    you're using Netbeans, you can just copy over
    jdic.dll file over to where jdic.jar file is located
    (and you have jdic.jar included in the library in
    your project). If you're not using Netbeans (or other
    IDE), you need to set java.library.path system
    property, but I don't recall the complete steps.. you
    can do a search for 'how to load dll in java'.
    Good luck,
    MaxI am also using NetBeans 5.5 and trying to work with JDIC, to no avail. I continue to get the following exception:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no jdic in java.library.pathAnd there is no jdic.dll nor jdic.jar that exists, this while doing a CVS checkout per instruction of jdic into its own project "JDIC_WIN32" working alongside my "GUI" project.
    Phil

  • How to handle "The specified resource does not exist" exception while using entity group transactions to purge WADLogs table

    Hi,
    We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
    records older than 15 days. The logic is like this.
    bool recordDoesNotExistExceptionOccured = false;
    CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
    partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
    TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
    TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.LessThanOrEqual, partitionKey));
    while (!recordDoesNotExistExceptionOccured)
    IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
    //// Batch entity delete.
    if (result != null && result.Count() > 0)
    Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
    foreach (var entity in result)
    TableOperation tableOperation = TableOperation.Delete(entity);
    if (!batches.ContainsKey(entity.PartitionKey))
    batches.Add(entity.PartitionKey, new TableBatchOperation());
    // A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
    if (batches[entity.PartitionKey].Count < 100)
    batches[entity.PartitionKey].Add(tableOperation);
    // Execute batches.
    foreach (var batch in batches.Values)
    try
    await wadLogsTable.ExecuteBatchAsync(batch);
    catch (Exception exception)
    // Log exception here.
    // Set flag.
    if (exception.Message.Contains(ResourceDoesNotExist))
    recordDoesNotExistExceptionOccured = true;
    break;
    else
    break;
    My questions are:
    Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    Would this logic fail in any particular case?
    How would this approach change if this code is in a worker which has multiple instances deployed?
    I have come up with this code by referencing the solution given
    here by Keith Murray.

    Hi Nikhil,
    Thanks for your posting!
    I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
    It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.   
    >> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
     >>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
    For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop. 
    >>Would this logic fail in any particular case?
    I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
    = true;" into your "else" block.
    >>How would this approach change if this code is in a worker which has multiple instances deployed?
    You don't change anything expect the "else" block. It would work fine on the worker role.
    If any question about this issue, please let me know free.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Exception while using Tomahawk

    I am using tomahawk datalist in a page. All works fine and data is also displaying on the page but i am getting the following exception:
    SEVERE: Error while serving resource: prototype.PrototypeResourceLoader/prototype.js, message : null
    ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
         at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
         at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
         at org.apache.catalina.connector.Response.flushBuffer(Response.java:537)
         at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:276)
         at org.apache.myfaces.renderkit.html.util.DefaultAddResource.serveResource(DefaultAddResource.java:560)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:125)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
         at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
         at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
         at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
         at org.apache.coyote.Response.action(Response.java:182)
         at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
         ... 19 more
    Nov 27, 2008 4:44:03 PM org.apache.myfaces.webapp.filter.ExtensionsFilter doFilter
    SEVERE: Exception wile retrieving addResource
    java.lang.IllegalStateException
         at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:418)
         at org.apache.myfaces.renderkit.html.util.DefaultAddResource.serveResource(DefaultAddResource.java:583)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:125)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

    ohh i got something new...
    When i delploy my project and run it for the first time it says:
    Nov 27, 2008 8:39:13 PM org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
    Nov 27, 2008 8:39:13 PM org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
    Nov 27, 2008 8:39:13 PM org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
    Nov 27, 2008 8:39:13 PM org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
    Nov 27, 2008 8:39:13 PM org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getStringInitParameter
    INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
    Nov 27, 2008 8:39:13 PM org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
    Nov 27, 2008 8:39:14 PM org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader getLastModified
    SEVERE: Unparsable lastModified : @lastModified@
    But everything runs fine on the page but after that when i refresh the page i got the exception, mentioned above

  • Getting NullPointer Exception while using  setNamedWhereClauseParam()

    Hi,
    I am using VO to execute an advance search query, for this i am first formatting the where and then setting the bind variable values programmatically.
    ViewObjectImpl myVO = //some code to get VO instance.
    myVO.setWhereClauseParams(null);
    myVO.setWhereClause(null);
    myVO.setWhereClause(whereClause); // some code to format where clase value based on value coming from user advance search form
    if (whereClause.contains(":pFullName")){
    myVO.defineNamedWhereClauseParam("pFullName", null, null);
    myVO.setNamedWhereClauseParam("pFullName",profileSearchHeaderRow.getAttribute("FullName")+"%");
    if (whereClause.contains(":JobName") ){
    myVO.defineNamedWhereClauseParam("JobName", null, null);
    myVO.setNamedWhereClauseParam("JobName",profileSearchHeaderRow.getAttribute("JobName"));
    if (whereClause.contains(":pJobName")){
    myVO.defineNamedWhereClauseParam("pJobName", null, null);
    myVO.setNamedWhereClauseParam("pJobName",profileSearchHeaderRow.getAttribute("JobName"));
    myVO.executeQuery();
    It is working fine for first time when i am giving only field A and B value next time if i will give only field A value in advance search i m getting below error,
    Earlier i was not using setNamedWhereClauseParam function i adding the field value while formatting the where clause that time it was working fine only problem was SQL Injection failing so i m trying with bind variable but its failing when changing the search criteria.
    Please let me know if i am missing anything in the code,
    <DCIteratorBinding> <releaseDataInternal> [167512] Releasing iterator binding:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [167513] Releasing iterator binding:variableIterator
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #14
    java.io.IOException: java.lang.NullPointerException
         at oracle.adfinternal.view.page.editor.renderkit.PageCustomizableRenderer.encodeAll(PageCustomizableRenderer.java:764)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:769)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1140)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:348)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:313)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.PageTemplateRenderer.encodeAll(PageTemplateRenderer.java:69)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.encodeEnd(ContextSwitchingComponent.java:155)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1299)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:800)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:294)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:214)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bi.nanserver.adf.servlet.BIADFServletFilter.doFilter(BIADFServletFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bi.presentation.runtime.binding.BIRegionBindingFilter.doFilter(BIRegionBindingFilter.java:40)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:109)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.generalsettings.model.filter.GeneralSettingsLocaleFilter.doFilter(GeneralSettingsLocaleFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.apps.fnd.applcore.common.ApplSessionFilter.doFilter(ApplSessionFilter.java:653)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    I am already logging debug log on console using below settings,
    -Doracle.ecsf.crawl.factory=oracle.ecsf.data.RelationalCrawlerImpl -Doracle.ecsf.crawl.mode.debug=true -Doracle.ecsf.split.mode=simple -Doracle.ecsf.context= -Doracle.ecsf.security.service= -Djbo.debugoutput=console

  • Classcast exception while using HttpsURLConnection

    I am using java1.3. I have downloaded all the jars in JSSE..however when i am using the HttpsURLConnection class i get ClassCase exception at
    HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
    I don't get any error while compiling however get the error when executing
    Any help on this will greatly appricated.
    Thanks
    Sudha

    Magic, that worked for me.
    Now the real question is why did it work. My code worked fine under JRE 1.3.1, but when I remove jsse.jar from my classpath and upgraded to JRE 1.4.1 it broke. By commenting out the System.setProperty it now works. Strange.
    Cheers,
    Paul

  • Java.lang.thread exception while using Xalan 2.0 in WLS 6.0

    Hi, I'm trying to use Xalan 2.0 in a servlet hosted by WLS. Ive
    modified Xalan's SimpleTransform sample to be a servlet. I
    create a Transformer with the .xsl, then call tranform() to
    print the tranformed xml to the response stream. The xml is
    tranformed correctly, but it throws a java.lang.thread
    exception. The standalone Xalan sample doesn't do this. Anyone
    else seen this problem?
    Here's the code of interestest, I apologize if its not formatted very well:
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException
         PrintWriter out = res.getWriter();
         res.setContentType("text/html");
         out.println("<html><head><title>XalanTest<title></head>");
         out.println("<body><h1>XalanTest</h1>");
         try{
         TransformerFactory tFactory = TransformerFactory.newInstance();
         StreamSource ss = new StreamSource("file:\\\\My-path\\birds.xsl");
         Transformer transformer = tFactory.newTransformer(ss);
         StreamResult SR = new StreamResult(out);
         transformer.transform(new StreamSource("file:\\\\My-path\\birds.xml"), SR );
         catch(Exception e){
         out.println("<p>" + e.toString() + "</p>");
         e.printStackTrace(out);
         out.println("<p>Exception</p>");
              out.println("</body></html>");

    It also looks like the workaround suggested does not work.
    I put the following code as workaround:
         response.setContentType("text/html");
         response.setHeader ("Pragma", "no-cache");
         Transformer transformer;
         TransformerFactory factory = TransformerFactory.newInstance();
         String stylesheet = "config\\closs\\applications\\webroot\\jsp\\example\\Load2.xsl";
         String sourceId = "config\\closs\\applications\\webroot\\jsp\\example\\Load2.xml";
         String outputFile = "config\\closs\\applications\\webroot\\jsp\\example\\Load2.html";
         String outputDirectFile = "config\\closs\\applications\\webroot\\jsp\\example\\Load2_Direct.html";
         try
              PrintWriter fout = new PrintWriter (new FileOutputStream (outputFile));
              OutputStream os = new ByteArrayOutputStream();
              transformer = factory.newTransformer(new StreamSource(stylesheet));
              transformer.transform(new StreamSource(sourceId), new StreamResult(outputDirectFile));
              transformer.transform(new StreamSource(sourceId), new StreamResult(os));
              os.flush ();
              os.close();
              out.print(os.toString());
              fout.print (os.toString ());
              fout.flush ();
              fout.close ();
         catch (Exception e)
              // Error Handler
         e.printStackTrace();
    The two .html files produced look exactly the same, which is good.
    However, the screen output to my html browser (Internet Explorer 5.50 sp1) produces
    different output.
    That is strange, but that shows that this bug does not have a known workaround
    "Rabinowitz" <[email protected]> wrote:
    >
    I have the same problem with java sun xml parser (jaxp 1-1)
    It is interesting to know that all this perfectly works under weblogic
    5.1, so
    I cannot migrate my application to 6.0
    So, the functionality of weblogic 6.0 degraded since 5.1.
    I cannot buy the explanation that that is not bea's fault, because it
    perfectly
    worked with the same version of xml parser.
    Now, their customer support is saying they have not decided whether this
    is a
    bug or a feature.
    Interesting to know that degradation of functionality could be a feature!
    It is now June 21, 3 months since this bug was reported, sp2 was shipped
    since
    that time, and this bug is still there.
    "Chuck H. Zhao" <[email protected]> wrote:
    I am having the exact same problem you are having. If we analyze the
    stack
    trace:
    javax.xml.transform.TransformerException: java.lang.Thread
    at
    org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
    ava:1212)
    at
    org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
    at java.lang.Thread.run(Thread.java:484)
    java.lang.ClassCastException: java.lang.Thread
    at
    weblogic.servlet.internal.ResponseHeaders.setDateHeader(ResponseHeaders.java
    :273)
    at
    weblogic.servlet.internal.ServletResponseImpl.setDateHeader(ServletResponseI
    mpl.java:449)
    at
    weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseIm
    pl.java:637)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
    mpl.java:124)
    at
    weblogic.servlet.internal.WLOutputStreamWriter.flush(WLOutputStreamWriter.ja
    va:124)
    at java.io.PrintWriter.flush(PrintWriter.java:120)
    at
    org.apache.xalan.serialize.SerializerToXML.flushWriter(SerializerToXML.java:
    1431)
    at
    org.apache.xalan.serialize.SerializerToXML.endDocument(SerializerToXML.java:
    629)
    at
    org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler
    ..java:180)
    at
    org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
    ava:1194)
    at
    org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
    at java.lang.Thread.run(Thread.java:484)
    What happened is: to support incremental output, Xalan-Java performs
    the
    transformation in a second thread while building the source tree inthe
    main
    thread. So Transformer.transform() creates a new thread to run the
    transformer.run() method, which will write to weblogic's internal
    ServletOutputStreamImpl, and in the end calls flush() on it.
    ServletOutputStreamImpl determines that the headers haven't been written
    yet, and the headers need to be written before any servlet output, so
    it
    calls ServletResponseImpl.writeHeaders(), which eventually calls
    ResponseHeaders.setDateHeader(). The last method assumes the thread
    is
    weblogic's internal ExecuteThread and tries to cast the thread as such,
    maybe to get the date from it. But the thread is a plain java.lang.Thread
    created by xalan, thus we get the java.lang.ClassCastException:
    java.lang.Thread
    This suggests a second workaround: call ServletResponse.flushBuffer()
    before any xalan stuff, which will force the headers to be written in
    weblogic's ExecuteThread. The shortcoming of this is that this will
    cause
    the response to be commited, and if the xalan stuff throws exception
    you can
    not forward to another page.
    Another thing is that xalan should not directly call flush() on
    ServletOutputStreamImpl at all. I will report it to xalan and see if
    they
    consider that a bug. If they fix that then we have a third workaround:
    set
    the buffer size of ServletResponse big enough to accomodate everything
    including the xslt outputs, so the ServletOutput does not need to be
    flushed
    during xalan code.
    I do not consider this problem a weblogic bug, since the servlet container
    has to right to expect any thread inside it to be its own. Serlvet2.2
    spec
    says:
    1.2 What is a Servlet Container?
    A Servlet Container may place security restrictions on the environment
    that
    a servlet executes in. In
    a Java 2 Platform Standard Edition 1.2 (J2SE) or Java 2 Platform Enterprise
    Edition 1.2 (J2EE)
    environment, these restrictions should be placed using the permission
    architecture defined by Java 2
    Platform. For example, high end application servers may limit certain
    action, such as the creation of
    a Thread object, to insure that other components of the container are
    not
    negatively impacted.
    Weblogic should explicitly warn the developers that creating threads
    inside
    the servlet container may have adverse effects, the same kind of problem
    we
    are having. (or maybe they already did somewhere in their documentation?)
    On the xalan side, I would suggest them to either give the option to
    switch
    the two threads, or to give the option to buffer the output and write
    it out
    in the main thread, which is exactly what you did in your first workaround.
    Any comments or thoughts on the subject are welcome.
    -- Chuck Zhao
    "MK Parini" <[email protected]> wrote in message
    news:[email protected]...
    I found, what I think to be a bug, and a work-around for it.
    When doing an XSLT Transformation, you must specify a StreamResult
    to which to write the output. I was doing my transformation in
    a
    servlet so I was writing my output to the HttpResponse
    (The variable res is a javax.servlet.http.HttpServletResponse
    object)
    StreamResult htmlTarget = new StreamResult(res.getWriter());
    If I use this, when I perform the transformation using the TRAX
    APIs,
    InputStream xslFile = context.getResourceAsStream(fileName);
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Templates xslTemplates = tFactory.newTemplates(new StreamSource(xslFile));
    transformer = xslTemplates.newTransformer();
    transformer.transform(xmlSource, htmlTarget);
    I receive the ClassCastException from the class
    weblogic.servlet.internal.ResponseHeaders.setDateHeader(ResponseHeaders.java
    :273),
    as seen in my previous posting.
    I discovered, if I write my output to a StringBuffer, and then
    I write
    the StringBuffer to the HttpResponse, I do not get the ClassCastException.
    For example,
    StringWriter myWriter = new StringWriter(2400);
    StreamResult htmlTarget = new StreamResult(myWriter);
    <Same transformation code as above>
    myWriter.close();
    PrintWriter out = res.getWriter();
    out.print(myWriter.toString());
    Is this a bug in the weblogic internal servlet class or am I just
    missing something?
    Also, one concern that I have with the workaround is that it might
    hurt performance.
    Any comments or thoughts on the subject are welcome.

  • Bad Record MAC. exception while using urlConnection.getInputStream()

    All,
    In my SAP J2EE instance, from filter I am trying to do get data from an url (protocol is https).
    For this I am using urlInstance.openConnection() after that urlConnection.getInputStream() and then reading from this input stream.
    When I use http protocol, everything works fine. But with https, during urlConnection.getInputStream(), I get an exception saying "Bad Record MAC".
    I tried to execute the same code in a standalone java program. It went fine with both http and https.
    I get this error only when I run in SAP J2EE instance and only with https.
    From the exception trace, I can see that while running in J2ee engine, the URLConnection instance is org.w3c.www.protocol.http.HttpURLConnection.
    When I run a standalone program from command prompt, the instance is com.ibm.net.ssl.www.protocol.https.r. This runs without any issues.
    I understand that these instances are different due to different URLStreamHandlerFactory instances.
    But I didnt set the factory instance in either of the programs.
    1. Is the exception I get is simply bcoz of instance org.w3c.www.protocol.http.HttpURLConnection?
    2. In that case how can I change the factory instance in j2ee engine?
    Please help.
    Thanks.
    Edited by: Who-Am-I on Nov 28, 2009 7:54 AM

    May be my question is too complex to understand. Let me put it simple.
    After upgrading to NW 7.01 SP5, an existing communication between SAP J2EE engine and a 3rd party software is not working.
    After a lot of debuggin I came to know that its happening at the filter we implemented to route the requests through the 3rd party authentication system.
    At the filter exception is coming from org.w3c.www.protocol.http.HttpURLConnection.getInputStream.
    This instance of HTTPURLConnection given by protocol handler factory(implementation of URLStreamHandlerFactory) which SAP is considering by default. I want to replace this protocol handler with another handler as I see no problems running the same program outside SAP J2EE instance.
    Can we change this protocol handler factory? Where can we change it?

  • Exception while using RSA BSAFE CryptoJ in Weblogic 7.0 (SP2)

    I need to verify the digital signature in the application (Web Tier - Servlet)
    and i have got the RSA - BSafe license and tried using the RSA API and this works
    fine in the stand alone environment. (weblogic.jar is not part of the classpath).
    I have tried the same program in the Weblogic environment the BSAFE jar's are
    kept in the classpath prior to weblogic.jar and while starting the server i am
    getting the following exception and server continues to start. (Security configuration
    doesn't changed)
    =============================================
    <18/02/2004 16:59:46> <Alert> <WebLogicServer> <000297> <Inconsistent security
    configuration, java.lang.NoSuchMethodError>
    java.lang.NoSuchMethodError
    at com.rsa.jsafe.JA_AlgID.berDecode(JA_AlgID.java:94)
    at com.rsa.jsafe.JA_AlgID.berDecodeAlgID(JA_AlgID.java:29)
    at com.rsa.certj.cert.X509Certificate.setSignatureAlgorithm(X509Certificate.java:893)
    at com.rsa.certj.cert.X509Certificate.setInnerDER(X509Certificate.java:764)
    at com.rsa.certj.cert.X509Certificate.setCertBER(X509Certificate.java:428)
    at com.rsa.certj.cert.X509Certificate.<init>(X509Certificate.java:328)
    at com.rsa.certj.cert.X509Certificate.<init>(X509Certificate.java:306)
    at utils.ValidateCertChain.convertChain(ValidateCertChain.java:258)
    at utils.ValidateCertChain.validateServerCertChain(ValidateCertChain.java:304)
    at weblogic.security.service.SSLManager.getServerCertificate(SSLManager.java:316)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:154)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:122)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:1548)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:891)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
    at weblogic.Server.main(Server.java:32)
    <18/02/2004 16:59:46> <Emergency> <Security> <090034> <Not listening for SSL,
    java.io.IOException: Inconsistent security configuration, null.>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000355> <Thread "ListenThread.Default"
    listening on port 7001, ip address 127.0.0.1>
    <18/02/2004 16:59:47> <Notice> <Management> <141030> <Starting discovery of Managed
    Server... This feature is on by default, you may turn this off by passing -Dweblogic.management.discover=false>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000331> <Started WebLogic Admin
    Server "IMTServer" for domain "IMTDomain" running in Development Mode>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000365> <Server state changed
    to RUNNING>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000360> <Server started in RUNNING
    mode>
    ==========================================
    If the weblogic.jar set first in the classpath and BSAFE jar's kept in the last
    the Signature verification fails and iam getting the following exception
    ========================================================
         at com.rsa.jsafe.crypto.ar.f(Unknown Source)
         at com.rsa.jsafe.crypto.c7.a(Unknown Source)
         at com.rsa.jsafe.crypto.b1.a(Unknown Source)
         at com.rsa.jsafe.crypto.av.f(Unknown Source)
         at com.rsa.jsafe.crypto.at.e(Unknown Source)
         at com.rsa.jsafe.provider.JS_Signature.engineVerify(Unknown Source)
         at java.security.Signature$Delegate.engineVerify(Unknown Source)
         at java.security.Signature.verify(Unknown Source)
    ==========================================================
    I believe that there seems to be different versions of BSAFE products. Could you
    please suggests that in what way i can overcome this issue. Is it possible to
    use the BSAFE jar only for the specific application (web application) without
    disturbing weblogic envrionment.
    Reponses are highly appreciated.

    Weblogic is using RSA Crypto-J 3.3.1 The easiest solution is probably to modify
    the signature verification code to use 3.3.1 api-s. The alternative solution would
    require writing your own classloader for the application that would load BSAFE
    classes from your jar.
    Pavel.
    "Gops" <[email protected]> wrote:
    >
    I need to verify the digital signature in the application (Web Tier -
    Servlet)
    and i have got the RSA - BSafe license and tried using the RSA API and
    this works
    fine in the stand alone environment. (weblogic.jar is not part of the
    classpath).
    I have tried the same program in the Weblogic environment the BSAFE
    jar's are
    kept in the classpath prior to weblogic.jar and while starting the server
    i am
    getting the following exception and server continues to start. (Security
    configuration
    doesn't changed)
    =============================================
    <18/02/2004 16:59:46> <Alert> <WebLogicServer> <000297> <Inconsistent
    security
    configuration, java.lang.NoSuchMethodError>
    java.lang.NoSuchMethodError
    at com.rsa.jsafe.JA_AlgID.berDecode(JA_AlgID.java:94)
    at com.rsa.jsafe.JA_AlgID.berDecodeAlgID(JA_AlgID.java:29)
    at com.rsa.certj.cert.X509Certificate.setSignatureAlgorithm(X509Certificate.java:893)
    at com.rsa.certj.cert.X509Certificate.setInnerDER(X509Certificate.java:764)
    at com.rsa.certj.cert.X509Certificate.setCertBER(X509Certificate.java:428)
    at com.rsa.certj.cert.X509Certificate.<init>(X509Certificate.java:328)
    at com.rsa.certj.cert.X509Certificate.<init>(X509Certificate.java:306)
    at utils.ValidateCertChain.convertChain(ValidateCertChain.java:258)
    at utils.ValidateCertChain.validateServerCertChain(ValidateCertChain.java:304)
    at weblogic.security.service.SSLManager.getServerCertificate(SSLManager.java:316)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:154)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:122)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:1548)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:891)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
    at weblogic.Server.main(Server.java:32)
    <18/02/2004 16:59:46> <Emergency> <Security> <090034> <Not listening
    for SSL,
    java.io.IOException: Inconsistent security configuration, null.>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000355> <Thread "ListenThread.Default"
    listening on port 7001, ip address 127.0.0.1>
    <18/02/2004 16:59:47> <Notice> <Management> <141030> <Starting discovery
    of Managed
    Server... This feature is on by default, you may turn this off by passing
    -Dweblogic.management.discover=false>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000331> <Started WebLogic
    Admin
    Server "IMTServer" for domain "IMTDomain" running in Development Mode>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000365> <Server state
    changed
    to RUNNING>
    <18/02/2004 16:59:47> <Notice> <WebLogicServer> <000360> <Server started
    in RUNNING
    mode>
    ==========================================
    If the weblogic.jar set first in the classpath and BSAFE jar's kept in
    the last
    the Signature verification fails and iam getting the following exception
    ========================================================
         at com.rsa.jsafe.crypto.ar.f(Unknown Source)
         at com.rsa.jsafe.crypto.c7.a(Unknown Source)
         at com.rsa.jsafe.crypto.b1.a(Unknown Source)
         at com.rsa.jsafe.crypto.av.f(Unknown Source)
         at com.rsa.jsafe.crypto.at.e(Unknown Source)
         at com.rsa.jsafe.provider.JS_Signature.engineVerify(Unknown Source)
         at java.security.Signature$Delegate.engineVerify(Unknown Source)
         at java.security.Signature.verify(Unknown Source)
    ==========================================================
    I believe that there seems to be different versions of BSAFE products.
    Could you
    please suggests that in what way i can overcome this issue. Is it possible
    to
    use the BSAFE jar only for the specific application (web application)
    without
    disturbing weblogic envrionment.
    Reponses are highly appreciated.

  • Security Exception while using Custom Entity Property Manager

    Hi,
    I am using Portal 7.0 UUP example (specified in dev2dev.com site) to implement
    custom entity property manager.
    It all works fine using Portal 7.0 admin tool.
    Now I am proving the same concept by writing java code to insert record in UUP_Example
    table.
    This is the code I am writing in my class
    UserManager userManager = getUserManager(); (calling method to get Remote Interface
    of UserManager).
    ProfileWrapper pw = userManager.createUser(identifier,password,"User");
    MyEntityPropertyManager myEntityPropertyManager=getMyEntityPropertyManager();(calling
    method to get remote interface of MyEntityPropertyManager)
    long num=myEntityPropertyManager.createUniqueId(null,identifier);
    pw.setProperty("UUPExample","word1","mike_headen");
    Code gets compiled successfully but when I execute these statements, following
    run time exception occurs:
    EJB Exception: ; nested exception is: java.lang.SecurityException: Users can only
    be modified by themselves, or by a member of the role DelegatedAdminRole||SystemAdminRole.
    This problem comes while executing last statement i.e
    pw.setProperty("UUPExample","word1","ajay_dogra");
    I know I am missing something here. Any guidance will be highly appreciated.
    Thanks
    Mike

    Mike,
    You approach is wrong and you have to code your program in a different way to
    get rid of this problem.
    Here, you are trying to update User property using pw.setProperty() even before
    authenticating and logging in the user.
    Why you are getting this error becuase user is not logged in and u are trying
    to update the user property.
    These are the steps you need to perform to update/insert user properties at the
    time of login.
    1. createUser(using usermanager.createUser).
    2. Authenticate user(Authentication.login(identifier, password, req);
    3. Initialse the profile in session
    ProfileWrapper profile =
    ProfileFactory.getProfile(identifier, null);
    4. Fire UserRegistrationEvent and Session Login event.
    5. Update user property using profilewrapper.setProperty.
    Hope this helps,
    You can either perform these steps in java or can use the usemanager custom tag
    in ur JSP.
    Thanks
    Sanjay
    Thanks
    Sanjay
    "Mike" <[email protected]> wrote:
    >
    Hi,
    I am using Portal 7.0 UUP example (specified in dev2dev.com site) to
    implement
    custom entity property manager.
    It all works fine using Portal 7.0 admin tool.
    Now I am proving the same concept by writing java code to insert record
    in UUP_Example
    table.
    This is the code I am writing in my class
    UserManager userManager = getUserManager(); (calling method to get Remote
    Interface
    of UserManager).
    ProfileWrapper pw = userManager.createUser(identifier,password,"User");
    MyEntityPropertyManager myEntityPropertyManager=getMyEntityPropertyManager();(calling
    method to get remote interface of MyEntityPropertyManager)
    long num=myEntityPropertyManager.createUniqueId(null,identifier);
    pw.setProperty("UUPExample","word1","mike_headen");
    Code gets compiled successfully but when I execute these statements,
    following
    run time exception occurs:
    EJB Exception: ; nested exception is: java.lang.SecurityException: Users
    can only
    be modified by themselves, or by a member of the role DelegatedAdminRole||SystemAdminRole.
    This problem comes while executing last statement i.e
    pw.setProperty("UUPExample","word1","ajay_dogra");
    I know I am missing something here. Any guidance will be highly appreciated.
    Thanks
    Mike

  • Exceptions while using JAXR

    While trying to query the services from the IBM and Microsoft UDDI the following exceptions come
    For IBM UDDI the exceptions are
    javax.xml.registry.JAXRException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404/testregistry/inquiryapi
    For Microsoft UDDI the exceptions are
    javax.xml.registry.JAXRException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404/inquire
    One more thing,once I create an account with those UDDI's will I be able to publish and delete my wsdl's into those registries using JAXR in my program
    Please help me out........
    Other than these UDDI's it work fine with RegistryServer

    My host is my machine name which is linux
    and port is the default one 8080
    I was able to ping the UDDI'S with the UDDIPing Example provided in SAAJ sample .So I am not at all behind a firewall.I am carrying out my requests over SSL.
    But when I am trying with JAXR adding the classification scheme it gave those exceptions
    The URL'S for the IBM UDDI and Microsoft UDDI's are
    http://uddi.ibm.com/testregistry/inquiryapi
    http://test.uddi.microsoft.com/inquire
    Registry Server is working fine only with the exception of when I am trying to use createExternalLink ,
    for some urls it gives me an exception saying that "can't validate against the URL.
    I am using JWSDP -1.3

Maybe you are looking for

  • Single Printing for Multiple ALVs in Splitter Containers

    Hi, I am creating multiple ALVs (3 to 4) of CL_GUI_ALV_GRID class in my report. The ALVs are being displayed inside the splitter containers of class CL_GUI_SPLITTER_CONTAINER. My question is how to print all the ALVs inside these multiple containers

  • Blue screen when boot from cd and cannot open diskutil

    HEllo i have problem my macbook pro 2011 i7 when i boot up after apple logo display white screen , when i boot from cd display blue screen , i'm format my ssd but same problem when i'm try open diskutil with CMD +R open Recovery network Any body can

  • I need API for Narrator in Ease of Access

    Hi, I need to see if Narrator accessibility is on/off. (Only on WP 8.1) How can it be done? Is there any API for this? I was googling for a long time and can't see anything.

  • External Hard Drive will not copy/open files.

    Today, I went to edit photos on my iMac. I have a 1tb G-Drive Mobile that I have been using lately to store photos/videos on. I last used the hard drive this past friday, 4/4/2014. When I opened Lightroom to open my photos the whole program froze. I

  • Multiple Screens Disables Monitor Video Preview

    I have noticed a new bug (for me anyway) that on my Mac Pro with two video cards I cannot load clips into the monitor and get a preview. I see the clip thumbnails in the timeline, but no video preview. I just tested this by unplugging my secondary di