Obtaining an instance of HttpsURLConnection

Hi,
I have an application, which is running within a BEA Weblogic Server. One of the more nasty peculiarities of this server is that it overwrites the standard URLStreamHandlerFactory. In particular, if I open a https URL, then I do receive an instance of weblogic.net.http.SOAPHttpsURLConnection, which implements the java.net.HttpURLConnection interface, but not javax.net.ssl.HttpsURLConnection.
Configuring the BEA version of HttpsURLConnection works completely different from the standard HttpsURLConnection. In particular, I can almost throw away a lot of code that has been implemented in the past. In other words, I'd clearly prefer to have a javax.net.ssl.HttpsURLConnection.
Unfortunately, it is not clear to me how to to that. So far, the only solution I found was creating a subclass of sun.net.www.protocol.https.Handler and use that. Of course, that works fine, but it's definitely a dirty solution. Do you have any ideas how to achieve the same without referencing sun.net?
Thanks,
Jochen

No. It's just how a static property behaves, which is of the type of the hosting class.
The singelton pattern ensures that you cannot create - using the new keyword or Activator.CreateInstance - more than one instance.
A static property simply "has" its value or reference type assigned. The singelton must first create it's only instance when called.

Similar Messages

  • Could not obtain an instance of KeyTabKeytab is corrupted

    Hello,
    We have been experiencing problems with server and JVM performance since we enabled SSO in our application.
    We are using WebLogic 10.3 and BEA JRockit(R) (build R27.6.3-40_o-112056-1.6.0_11-20090318-2103-solaris-sparcv9, compiled mode).
    After startup everything is running smoothly but after some time server stops responding:
    •     stops logging,
    •     stops serving pages,
    •     stops responding to web services.
    Also it’s using a lot of CPU time.
    Here is an example of last lines of console logs (I’ve skipped some configuration details replacing it with <…>):
    Debug is true storeKey true useTicketCache false useKeyTab true doNotPrompt false ticketCache is null isInitiator false KeyTab is <…> refreshKrb5Config is true principal is <…> tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Debug is true storeKey true useTicketCache false useKeyTab true doNotPrompt false ticketCache is null isInitiator false KeyTab is <…> refreshKrb5Config is true principal is <…> tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Refreshing Kerberos configuration
    Refreshing Kerberos configuration
    KeyTabInputStream, readName(): <…fully qualified domain name…>
    KeyTabInputStream, readName(): HTTP
    KeyTabInputStream, readName(): <…fully qualified domain name…>
    KeyTabInputStream, readName(): <…server host name…>
    KeyTabInputStream, readName(): HTTP
    KeyTabInputStream, readName(): <…server host name…>Could not obtain an instance of KeyTabKeytab is corrupted
    Could not obtain an instance of KeyTabKeytab is corrupted
    Key for the principal <…> not available in <…>
    Key for the principal <…> not available in <…>
    Kerberos password for <…>: Kerberos password for <…>:
    We have found the following bug description http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6919610 and it looks like our problem (at the end of log lines are doubled which suggests two parallel threads and “Could not obtain an instance of KeyTabKeytab is corrupted” is exactly what would be logged in such a situation).
    But is it possible that this causes the server stop responding?
    If it is, do you have any suggestions of workarounds? (I don’t think that people are waiting for fix to come in next JRockit version ;-)
    Also recently we’ve had Segmentation Fault with no dumps (but maybe it’s some other issue) .
    Thank's for any help,
    Kuba

    Hello,
    We have been experiencing problems with server and JVM performance since we enabled SSO in our application.
    We are using WebLogic 10.3 and BEA JRockit(R) (build R27.6.3-40_o-112056-1.6.0_11-20090318-2103-solaris-sparcv9, compiled mode).
    After startup everything is running smoothly but after some time server stops responding:
    •     stops logging,
    •     stops serving pages,
    •     stops responding to web services.
    Also it’s using a lot of CPU time.
    Here is an example of last lines of console logs (I’ve skipped some configuration details replacing it with <…>):
    Debug is true storeKey true useTicketCache false useKeyTab true doNotPrompt false ticketCache is null isInitiator false KeyTab is <…> refreshKrb5Config is true principal is <…> tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Debug is true storeKey true useTicketCache false useKeyTab true doNotPrompt false ticketCache is null isInitiator false KeyTab is <…> refreshKrb5Config is true principal is <…> tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Refreshing Kerberos configuration
    Refreshing Kerberos configuration
    KeyTabInputStream, readName(): <…fully qualified domain name…>
    KeyTabInputStream, readName(): HTTP
    KeyTabInputStream, readName(): <…fully qualified domain name…>
    KeyTabInputStream, readName(): <…server host name…>
    KeyTabInputStream, readName(): HTTP
    KeyTabInputStream, readName(): <…server host name…>Could not obtain an instance of KeyTabKeytab is corrupted
    Could not obtain an instance of KeyTabKeytab is corrupted
    Key for the principal <…> not available in <…>
    Key for the principal <…> not available in <…>
    Kerberos password for <…>: Kerberos password for <…>:
    We have found the following bug description http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6919610 and it looks like our problem (at the end of log lines are doubled which suggests two parallel threads and “Could not obtain an instance of KeyTabKeytab is corrupted” is exactly what would be logged in such a situation).
    But is it possible that this causes the server stop responding?
    If it is, do you have any suggestions of workarounds? (I don’t think that people are waiting for fix to come in next JRockit version ;-)
    Also recently we’ve had Segmentation Fault with no dumps (but maybe it’s some other issue) .
    Thank's for any help,
    Kuba

  • Obtaining the instance of the processing node

    I have a process that polls a database and I only want one soa instance to poll the database.
    I have found the meta link document that says how to do it.
    They provided the following example:
    <binding name="receiveService_binding" type="tns:receiveService_ptt">
    <pc:inbound_binding/>
    <operation name="receive">
    <jca:operation
    ActivationSpec="oracle.tip.adapter.db.DBActivationSpec"
    DescriptorName="receiveService.Movies"
    QueryName="receiveService"
    PollingStrategyName="LogicalDeletePollingStrategy"
    MarkReadFieldName="DELETED"
    MarkReadValue="READ${instance}"
    MarkReservedValue="MINE${instance}"
    MarkUnreadValue="FALSE"
    SequencingFieldName="TITLE"
    MaxRaiseSize="5"
    MaxTransactionSize="5"
    PollingInterval="5"
    NumberOfThreads="1"
    DelayCommit="false"
    PollForChildUpdates="false"
    UseBatchDestroy="false"
    ReturnSingleResultSet="false"
    MappingsMetaDataURL="receiveService_toplink_mappings.xml" />
    <input/>
    </operation>
    </binding>
    The only problem I am having is when I get the ${instance} a 0 is returned instead of the instance number.
    Am I missing something in the configuration of the soa instance or what???
    thanks
    james

    Disabled services cannot be started.
    You need to change its status to Manual to be able to do that.
    Once done, then to start:
    C:\> net start OracleService<your_sid>to stop:
    C:\> net stop OracleService<your_sid>

  • Please help!!!  How to obtain UIData instance?

    Hi,
    I have an <h:dataTable> tag on a .jsp which has its value bound to a backing bean property of a concrete implementation of DataModel.
    In the backing bean, I'd like to set the "First" property of the corresponding UIData component, but I don't know how to obtain a reference to the UIData object with just a reference to the DataModel object. How can I do this?
    Thanks and much appreciated,
    Eric.

    Hi Yuki,
    Great suggestions! Thanks.
    I'm experimenting with using component binding, and it seems to be a very promising solution. I wonder what are the reasons you hate it? Anything I have to watch out for?
    Btw, one difference I notice when using component binding is that the get() method for the component is NOT called during a postback to the same view, as opposed to using value binding where the get() method is called. Is this to be expected and why is that?
    Thanks,
    Eric.

  • Instance Id

    Is it possible to obtain the instance id in a BPEL process to assign it to a variable?
    Thanks,
    Rafikki

    Yeah here are the step by step to do this (needed it in one of my processes):
    1. In the Assign Activity from the Create drop down choose Copy Operation
    2. In the From type drop down choose Expression and then click the Xpath Expression Builder.
    3. From the Functions drop down choose BPEL XPATH Extension Functions and then pick getInstanceId.
    4. Click OK
    5. Assign to your variable and click OK.
    6. Click OK again in the Assign Activity.
    7. Test it.

  • Accessing application module instances directly from the AMPool

    Hi!
    I´m want to create an Application Module Pool Monitor, actually I need to know how many fetched rows an Application Module instance has.
    I made a jsp, that do the following:
    ApplicationPool pool = (ApplicationPool)poolMgr.getResourcePool(poolname);
    int instanceCount = pool.getInstanceCount();
    for (int i = 0; i < instanceCount; i++){       
    ApplicationModule am = pool.getInstance(i);
    and then works with the am instances, calculating the rows that each VO has fetched.
    Now, It is not yet clear to me if, when I use "pool.getInstance(i)",
    I'm locking the instance that is being use by another session (an user session), or trying to get a lock,
    and possibly creating a deadlock. Or the AMPool administrates the lock and I don´t need to worry about it.
    Thank in advance, and sorry for my bad english!
    (i forgot to mention, I´m using adf - bc 10.1.2 )
    Message was edited by:
    user506477

    Sure, we are having RAM problems, sometimes, and for reasons that are still unclear, a process begins to consume memory.
    What we need rigth now, is a tool that tell us how many rows in memory has each user, and which ViewObject is creating them. The idea is to make some kind of monitor that shows that, the AM that each user has, an the state of their VOs.
    I used the JSP in this page as a reference:
    http://radio.weblogs.com/0118231/stories/2004/05/10/gettingApplicationModulePoolStatisticsToAidWithSizeTuning.html
    I´m not trying to create a new AM management mechanism, simply a tool that shows the status of the application (and perhaps allows me, for instance, to clear the cache of a VO that has to many rows fetched).
    In my JSP I obtain an instance of the AMs using "pool.getInstance(i)", and access then the associated VOs. But I don´t know if accesing the AMs this way could create problems with users that have an AM assigned to them, for example, a deadlock.
    Thanks!

  • How to create an instance of a dynamically loaded class?

    Hi all,
    I am using ASM bytecode engineering framework to generate classes dynamically. I need to instantiate the classes dynamically as well. Request all to please enlighten me on the following points :
    (1) Presently I load the class using a custom class loader and then use Class.newInstance() method to obtain an instance. However, I read that reflection is slow. So is their a faster way to instantiate in this case?
    (2) The name of the classes are also generated automatically. And I don't know which class will actually be instantiated at runtime. So I have to store the refernce returned by Class.newInstance() in an Object type variable. And when I wish to invoke a method / access a data member on that instance, every time I need to cast the object to the appropriate class using Class.cast(). Can anyone please suggest a more efficient way to hold the reference?
    Thanks and Regards,
    Vinit_J

    Have those classes implement a particular interface, and hold the instances in references to that interface. If you're thinking "that's a bit restricting" then maybe you should re-think whether loading a class whose responsibilities are completely unknown at compile-time is as useful as you first thought it was

  • Best way to have only one  instance of an object in web application.

    Hello,
    I defined a class that provides services to my web application: subscribes user, check if user already subscrubed etc. The objects don't need to save any session information. So it is like a Stateless Session Bean (from what I've read about Session beans).
    The webapp is small and I don't want to use EJBs.
    What would be the best way to have one instance of the above class in my webapp ?
    Would making the class static be a good method ? Using a factory ?
    Is there a way to put in web.xml something that asks the container to instantiate an object that is not a servlet and place it in Application scope, so that I cann retrieve it whenever required in my app ?
    Other suggestions ?
    Thank you,
    Vlad.

    Hi
    The best way to have only one instance is use the singleton pattern. The idea is : the class has a private
    contructor, a public static method that returns an instance of this object and a static member that is false if not any instance and true if there si an instance.
    To obtain one instance you can do some like
    MyObject ob=MyObject.getIntance();
    this method inspect the static member and returns null if true. If false set to true and return the object
    via the private constructor.
    You can lear more at book of Gramma .... (gang of four)
    Hope this helps

  • Obtaining an activex COM interface from another COM interface

    I have Animatics SmartMotors and am using their SMIEngine.dll, which is a COM dll. I'm having trouble with a particular interface called ISMICMotion. The help information for obtaining an instance of it is as follows:
    The client application
    can obtain an instance of this interface, using the available ISMIComm interface.  The following examples show how to obtain
    this interface in Visual Basic and Visual C++. 
    In these examples CommInterface is assumed to be the available ISMIComm
    interface.
    Visual
    Basic:
    Dim
    CMotionInterface As ISMICMotion
          Set
    CMotionInterface = CommInterface
    Visual
    C++:
        ISMICMotionPtr    CMotionInterface;
        HRESULT
    hr=CommInterface.QueryInterface(__uuidof(ISMICMotion),&CMotionInterface);
        if
    (FAILED(hr))
              AfxMessageBox("The interface
    \"ISMICMotion\" not found!");
              return;
    I can open a reference to the ISMICMotion interface using Automation Open but the operation of the methods from the ISMICMotion interface is dependent on the ISMIComm interface. So opening an independent reference doesn't work and the ISMIComm interface does not have anything like a GetISMICMotion reference method.
    Is there any way to achieve in LabVIEW what the above code does?
    It seems to me that I should be able to acquire proper dependencies using only the exposed methods. Is it because the makers of the SMIEngine.dll have not followed some COM rules?
    thanks for you help,
    Louis

    Hi Adam,
    The issue I had was with initializing the  ISMICMotion interface which is used for Contouring Mode, also called Coordinated Motion. I've attached a VI with two initialization examples. The first in green is the typical init I use to control motors with individual Motor RefNums. If you are not trying to do Coordinated Motion with the CMotion interface then you would use this init. The second in orange is the init routine I used to start Coordinated Motion. The key there is the Variant to Data VI. I don't remember exactly how it works in this case because it was a while back when I figured this out, but I remember finding relevant information in the Developer Zone on using the Variant to Data VI with Automation or ActiveX.
    I hope this helps.
    best regards,
    Louis
    Attachments:
    Types of SmartMotor Initialization Routines.vi ‏80 KB

  • Setting process instance variable

    Hi,
    I've a process with a instance variable "dossierVar" of class Dossier.
    I've the following code to go through the existing processes :
    Fuego.Papi.BusinessProcess bp;
    bp.connectTo(url : Fuego.Server.directoryURL, user : "adminfonc", password : "agra2009",
    process : processName);
    Fuego.Papi.InstanceFilter instF = InstanceFilter();
    instF.create(processService : bp.processService);
    instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
    Fuego.Instance[] instances = bp.getInstancesByFilter(filter : instF);
    foreach (instance in instances) {
    I'd like to know how to set the variable "dossierVar" of these instances ?
    Thanks you for our help

    Hi,
    take a look in this post.
    Obtain an instance variable of one process from another process
    If your variable is not a separeted one, so this code works well in order to get the variables value.
    Thanks
    Marcos Chiodi Martins

  • Is there better way to do this?  (Xml Pretty Print | node removing)

    Hi all, I have been working at home on a small project to help my Java Jedi training. :-)
    My app saves quotes from authors in an xml file.
    I have a class [XmlRepository extends Thread] that holds control of an xml file to handle requests for Nodes.
    When I remove a node I get a Line Space above the node that was removed, or better put my node gets replaced by a empty line.
    Pretty print or correct Node removing.
    part of my xml is like this (I have resumed it for readability):
        <entities forUser="ffffffff-ffff-ffff-ffff-ffffffffffff">
            <quotes/>
            <authors>
                <author id="f156c570-c676-4d69-9b15-ae7d859ff771" languageCode="en" regenerateAs="com.fdt.cognoscere.entities.sources.Author">
                    <lastNames>Poe</lastNames>
                    <firstNames>Edgar Allan</firstNames>
                </author>
                <author id="35dc0c5a-3813-4a10-af49-8d4ea1c2cee0" languageCode="en" regenerateAs="com.fdt.cognoscere.entities.sources.Author">
                    <lastNames>Wilde</lastNames>
                    <firstNames>Oscar</firstNames>
                </author>
                <author id="317f72ea-add6-4bd2-8c63-d8b373a830ab" languageCode="en" regenerateAs="com.fdt.cognoscere.entities.sources.Author">
                    <lastNames>Christie</lastNames>
                    <firstNames>Agatha</firstNames>
                </author>
                <author id="28047c89-b647-4c40-b6c7-677feaf2dfda" languageCode="en" regenerateAs="com.fdt.cognoscere.entities.sources.Author">
                    <lastNames>Shakespeare</lastNames>
                    <firstNames>William</firstNames>
                </author>
            </authors>
        </entities>If I remove A Node ( Edgar Allan Poe (1st in this case)) the resulting Xml when saved is like this (I have added the space indentation just as it is outputted by my code):
        <entities forUser="ffffffff-ffff-ffff-ffff-ffffffffffff">
            <quotes/>
                <author id="35dc0c5a-3813-4a10-af49-8d4ea1c2cee0" languageCode="en" regenerateAs="com.fdt.cognoscere.entities.sources.Author">
                    <lastNames>Wilde</lastNames>
                    <firstNames>Oscar</firstNames>
                </author>
                <author id="317f72ea-add6-4bd2-8c63-d8b373a830ab" languageCode="en" regenerateAs="com.fdt.cognoscere.entities.sources.Author">
                    <lastNames>Christie</lastNames>
                    <firstNames>Agatha</firstNames>
                </author>
                <author id="28047c89-b647-4c40-b6c7-677feaf2dfda" languageCode="en" regenerateAs="com.fdt.cognoscere.entities.sources.Author">
                    <lastNames>Shakespeare</lastNames>
                    <firstNames>William</firstNames>
                </author>
            </authors>
        </entities>this is how I initialize the XML DOM Handlers, and the method for removing a Node:
         * Initializes factory instances and member variables.
        private void initialize() {
            //obtain an instance of a documentFactory create a document documentBuilder
            this.documentFactory = DocumentBuilderFactory.newInstance();
            //Configure the documentFactory to be name-space aware and validate trough an xsd file
            this.documentFactory.setNamespaceAware(true);
            this.documentFactory.setValidating(true);
            this.documentFactory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
            try {
                //obtain an instance of an XPathFactory
                this.xpathFactory = XPathFactory.newInstance(XPathFactory.DEFAULT_OBJECT_MODEL_URI);
                //obtain an instance of the xpath evaluator object
                this.xpathEvaluator = this.xpathFactory.newXPath();
                //set namespace mapping configurations
                NamespaceContextMap namespaceMappings = new NamespaceContextMap();
                namespaceMappings.put("xml", "http://www.w3.org/XML/1998/namespace");
                namespaceMappings.put("xmlns", "http://www.w3.org/2000/xmlns/");
                namespaceMappings.put("xsd", "http://www.w3.org/2001/XMLSchema");
                namespaceMappings.put("xsi", "http://www.w3.org/2001/XMLSchema-instance");
                namespaceMappings.put(this.schemaNamespaceMapping, this.schemaNamespace);
                //add mappings
                this.xpathEvaluator.setNamespaceContext(namespaceMappings);
            } catch (XPathFactoryConfigurationException ex) {
                Logger.getLogger(XmlRepository.class.getName()).log(Level.SEVERE, null, ex);
            try {
                //obtain a trasformer factory to save the file
                this.transformerFactory = TransformerFactory.newInstance();
                this.transformerFactory.setAttribute("indent-number", 4);
                //obtain the transforme
                this.transformer = this.transformerFactory.newTransformer();
                //setup transformer
                this.transformer.setOutputProperty(OutputKeys.METHOD, "xml");
                this.transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                this.transformer.setOutputProperty(OutputKeys.MEDIA_TYPE, "text");
                this.transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
            } catch (TransformerConfigurationException tcex) {
                Logger.getLogger(XmlRepository.class.getName()).log(Level.SEVERE, null, tcex);
         * Removes a node by evaluating the XPATH expression.
         * @param xpath A String instance with the XPATH expression representing the element to remove.
         * @throws com.fdt.cognoscere.storage.exceptions.UnableToRemoveException When an exception occurs that prevents the repository to execute the remove statement.
        public void removeNode(final String xpath) throws UnableToRemoveException {
            Node nodeToRemove = null;
            Node parentNode = null;
            //verify xpath
            if (xpath == null)
                throw new IllegalArgumentException("The xpath argument cannot be null.");
            //verify that the repository is loaded
            if (!this.loaded)
                throw new IllegalStateException("The XmlRepository faild to load properly and it is in an invalid state. It cannot perfom any operation.");
            try {
                //get the node to remove out of the xpath expression
                nodeToRemove = this.getNode(xpath);
                //throw an exception if no node was found to remove
                if (nodeToRemove == null)
                    throw new UnableToFindException("The node element trying to be remove does not exist.");
                //obtain the parent node to remove its child
                parentNode = nodeToRemove.getParentNode();
                //remove the node from the parent node
                nodeToRemove = parentNode.removeChild(nodeToRemove);
            } catch.......removed to save space{
            } finally {
                //normalize document
                this.document.normalize();
        }Please tell me if I could do this better,
    thanks,
    f(t)

    franciscodiaztrepat wrote:
    When I remove a node I get a Line Space above the node that was removed, or better put my node gets replaced by a empty line.Replaced? No, there's already a new-line character after the node that was removed. And there was one before that node too. You didn't remove either of those, so after the removal there are two consecutive new-line characters. As you can see.
    And no, trying to pretty-print the XML document won't remove any of those. It might add whitespace to make the document nicely indented, but it won't ever remove whitespace. If you want whitespace removed then you'll have to do it yourself.
    For example, after you remove a node, also remove the node following it if it's a whitespace text node. Or something like that.

  • How to get a UDF value inside print event.

    I'm designing an add-on that will print 3 labels based on different criteria when and Invoice or a Delivery ticket is print.  Each label will go to a different printer since these are specifilly dedicated to each type of label/form.
    My problem is that that I have 2 UDF in the header of the marketing documents (Y/N fields) that flag me when 2 of the labels needs to be printed.  I have tried unsuccessfully to get the value from the UDF items in the form, I got several information like cardname, shipto address and total from the marketing document form, but no UDF can be access. 
    Below find copy of my routine (tPOTD is my UDF), this code will only work if there is only one instance of the form open, now is there's a way of knowing the instance number of a specific form?
    Private Sub SBO_Application_PrintEvent(ByRef printeventInfo As SAPbouiCOM.PrintEventInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.PrintEvent
            Dim s As String
            Dim DocType As String
            Dim oForm As SAPbouiCOM.Form
            Dim tInvNum As SAPbouiCOM.EditText
            Dim tName As SAPbouiCOM.EditText
            Dim tshipto As SAPbouiCOM.EditText
            Dim ttotal As SAPbouiCOM.EditText
            Dim tPOTD As SAPbouiCOM.ComboBox
            If printeventInfo.BeforeAction = True And printeventInfo.PrintEventType = SAPbouiCOM.BoPrintEventTypes.pet_Print Then
                oForm = SBO_Application.Forms.Item(printeventInfo.FormUID)
                If oForm.TypeEx = "133" Or oForm.TypeEx = "60090" Then
                    DocType = "Invoice"
                Else
                    DocType = "Delivery"
                End If
                tInvNum = oForm.Items.Item("8").Specific
                tName = oForm.Items.Item("54").Specific
                tshipto = oForm.Items.Item("92").Specific
                ttotal = oForm.Items.Item("29").Specific
    ' Next line is to get the value of the UDF but it fails finishing the routine and no exceptions raise
                tPOTD = SBO_Application.Forms.GetForm("-" + oForm.TypeEx, oForm.TypeCount - 1).Items.Item("U_PrintOTD").Specific
                s = tName.Value + Chr(13) + Chr(10) + Replace(tshipto.Value, Chr(13), Chr(13) + Chr(10)) + Chr(13) + _
                    Chr(10) + Chr(13) + Chr(10) + DocType + ": " + tInvNum.Value + "   Total: " + ttotal.Value
            End If
    EndSub

    First off, do you have the UDF form visible?  If not, I'm not aware of a way to retrieve the UDF data without the DI-API.
    Assuming you're printing with the form active, you can use the SBO_Application.Forms.ActiveForm.TypeCount value to obtain the "instance" of the form, I'd guess.  I haven't tried it, but I assume it would work:
    UDFForm = SBO_Application.Forms.GetFormByTypeAndCount(-133, SBO_Application.Forms.ActiveForm.TypeCount)
    Then your field would be:
    UDFValue = oUDFForm.Items.Item("U_MYFIELD").Specific
    Message was edited by:
            Curtis Fry

  • Issue in setting custom registry in WAS 6.1

    Hi,
    I am trying to setup agent on WAS 6.1 as per the documentation :- http://docs.sun.com/app/docs/doc/820-3675/gcann?a=view
    And i am getting an error while trying to set the Custom Registry of WebSphere Application Server 6.1.
    The error on my WAS Admin console comes when i try to click the ok button in the standalone custom registry window.
    Error on console is as :-
    'SECJ7339E: Exception raised while validating admin name'
    My server logs are as : -
    [9/15/08 18:11:08:884 IST] 00000026 SystemErr     R Caused by: java.lang.RuntimeException: Exception caught in AmWebsphereManager initializer: Failed to obtain service instance com.sun.identity.agents.websphere.AmRealmUserRegistry
    at com.sun.identity.agents.websphere.AmWebsphereManager.<clinit>(AmWebsphereManager.java:170)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    at com.sun.identity.agents.websphere.AmAgentUserRegistry.getRealmUserRegistry(AmAgentUserRegistry.java:228)
    at com.sun.identity.agents.websphere.AmAgentUserRegistry.getUsers(AmAgentUserRegistry.java:107)
    at com.ibm.ws.security.registry.UserRegistryImpl.getUsers(UserRegistryImpl.java:382)
    at com.ibm.ws.security.core.SecurityAdmin.getUsers(SecurityAdmin.java:702)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [9/15/08 18:11:08:884 IST] 00000026 SystemErr     R  at com.sun.identity.agents.websphere.AmWebsphereManager.<clinit>(AmWebsphereManager.java:170)
    [9/15/08 18:11:08:884 IST] 00000026 SystemErr     R  at java.lang.J9VMInternals.initializeImpl(Native Method)
    [9/15/08 18:11:08:900 IST] 00000026 SystemErr     R  at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    [9/15/08 18:11:08:900 IST] 00000026 SystemErr     R  ... 65 moreMy amAgent Logs are as : -
    ERROR: AmAgentLog: Unable to create AmAgentRemoteLog instance, will attempt to use local logging only.
    [AgentException Stack]
    com.sun.identity.agents.arch.AgentException: Unable to load IAmAgentRemoteLog: com.sun.identity.agents.log.AmAgentRemoteLog
    at com.sun.identity.agents.arch.ServiceFactory.getAmAgentRemoteLog(ServiceFactory.java:306)
    at com.sun.identity.agents.log.AmAgentLog.initialize(AmAgentLog.java:70)
    [AgentException Stack]
    com.sun.identity.agents.arch.AgentException: Failed to initialize AmAgentRemoteLog instance
    at com.sun.identity.agents.log.AmAgentRemoteLog.initialize(AmAgentRemoteLog.java:74)
    at com.sun.identity.agents.arch.ServiceFactory.getAmAgentRemoteLog(ServiceFactory.java:304)
    at com.sun.identity.agents.log.AmAgentLog.initialize(AmAgentLog.java:70)
    at com.sun.identity.agents.arch.ServiceFactory.getAmAgentLog(ServiceFactory.java:289)
    at com.sun.identity.agents.log.AmAgentLogManager.<init>(AmAgentLogManager.java:66)
    at com.sun.identity.agents.log.AmAgentLogManager.<clinit>(AmAgentLogManager.java:180)My amSMS logs are as : -
    09/15/2008 06:11:08:509 PM IST: Thread[WebContainer : 2,5,main]
    ERROR: SMSJAXRPCObject:getRootSuffix:Exception:
    java.rmi.RemoteException: no-server-found
    at com.sun.identity.jaxrpc.SOAPClient.getValidURL(SOAPClient.java:195)
    at com.sun.identity.jaxrpc.SOAPClient.call(SOAPClient.java:313)
    at com.sun.identity.jaxrpc.SOAPClient.send(SOAPClient.java:481)
    at com.sun.identity.jaxrpc.SOAPClient.send(SOAPClient.java:467)
    at com.sun.identity.sm.jaxrpc.SMSJAXRPCObject.getRootSuffix(SMSJAXRPCObject.java:393)
    at com.sun.identity.sm.SMSEntry.<clinit>(SMSEntry.java:272)
    09/15/2008 06:11:08:619 PM IST: Thread[WebContainer : 2,5,main]
    ERROR: ServiceManager::isRealmEnabled unable to initialize
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key loginError
    at java.util.ResourceBundle.getObject(ResourceBundle.java:342)
    at java.util.ResourceBundle.getString(ResourceBundle.java:302)
    at com.sun.identity.authentication.spi.AuthLoginException.getLocalMessage(AuthLoginException.java:280)
    at com.sun.identity.authentication.spi.AuthLoginException.getLocalMessage(AuthLoginException.java:291)
    at com.sun.identity.authentication.spi.AuthLoginException.fetchStackTrace(AuthLoginException.java:309)
    at com.sun.identity.authentication.spi.AuthLoginException.printStackTrace(AuthLoginException.java:259)My amWebSphere logs are as : -
    09/15/2008 06:11:08:728 PM IST: Thread[WebContainer : 2,5,main]
    ERROR: AmWebsphereManager initialization failed
    [AgentException Stack]
    com.sun.identity.agents.arch.AgentException: Failed to obtain service instance com.sun.identity.agents.websphere.AmRealmUserRegistry
    at com.sun.identity.agents.websphere.AmWebsphereServiceFactory.getAmRealmUserRegistry(AmWebsphereServiceFactory.java:87)
    at com.sun.identity.agents.websphere.AmWebsphereManager.<init>(AmWebsphereManager.java:63)
    at com.sun.identity.agents.websphere.AmWebsphereManager.<clinit>(AmWebsphereManager.java:165)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key loginError
    at java.util.ResourceBundle.getObject(ResourceBundle.java:342)
    at java.util.ResourceBundle.getString(ResourceBundle.java:302)
    at com.sun.identity.authentication.spi.AuthLoginException.getLocalMessage(AuthLoginException.java:280)
    at com.sun.identity.authentication.spi.AuthLoginException.getLocalMessage(AuthLoginException.java:291)
    at com.sun.identity.authentication.spi.AuthLoginException.fetchStackTrace(AuthLoginException.java:309)
    at com.sun.identity.authentication.spi.AuthLoginException.printStackTrace(AuthLoginException.java:259)
    at com.sun.identity.util.impl.DebugImpl.writeIt(DebugImpl.java:218)
    at com.sun.identity.util.impl.DebugImpl.writeIt(DebugImpl.java:206)
    at com.sun.identity.util.impl.DebugImpl.record(DebugImpl.java:199)
    at com.sun.identity.util.impl.DebugImpl.error(DebugImpl.java:192)
    at com.iplanet.am.util.Debug.error(Debug.java:536)
    at com.sun.identity.agents.arch.Module.logError(Module.java:239)Please suggest what the issue can be ?
    I have a windows XP Professional OS, AM server on WAS 6.1.0.2 (in RAD) and AM agent on WAS 6.1.0.2 (in RAD).
    thanks,
    Nimish Gupta

    After following the steps for 'Supplemental Instructions for Installing and Configuring Policy Agent 2.2–01 for IBM WebSphere Application Server' at the url, ' http://docs.sun.com/app/docs/doc/819-2796/gggvb?a=view ' , I was able to get rid of the logs errors mentioned above.
    However I am still not able to customize my registry in WAS 6.1. I get a different error this time as : -
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R javax.management.RuntimeErrorException: Error occured in RequiredModelMBean while trying to invoke operation getUsers
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1110)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.security.admintask.ValidateAdminName.afterStepsExecuted(ValidateAdminName.java:560)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.executeReal(AbstractTaskCommand.java:640)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.execute(AbstractTaskCommand.java:595)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.security.UserRegistryDetailActionGen.validateAdminId(UserRegistryDetailActionGen.java:262)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.security.UserRegistryDetailActionGen.processAdminId(UserRegistryDetailActionGen.java:240)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.security.CustomUserRegistryDetailAction.execute(CustomUserRegistryDetailAction.java:177)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:371)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:229)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R Caused by: java.lang.NoClassDefFoundError: com.iplanet.ums.Guid
         at java.lang.J9VMInternals.verifyImpl(Native Method)
         at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
         at com.iplanet.am.sdk.common.DCTreeServicesHelper.<clinit>(DCTreeServicesHelper.java:66)
         at java.lang.J9VMInternals.initializeImpl(Native Method)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:144)
         at com.iplanet.am.sdk.remote.RemoteServicesImpl.<init>(RemoteServicesImpl.java:95)
         at com.iplanet.am.sdk.remote.CachedRemoteServicesImpl.<init>(CachedRemoteServicesImpl.java:115)
         at com.iplanet.am.sdk.remote.CachedRemoteServicesImpl.getInstance(CachedRemoteServicesImpl.java:137)
         at com.iplanet.am.sdk.remote.RemoteServicesFactory.<clinit>(RemoteServicesFactory.java:87)
         at java.lang.J9VMInternals.initializeImpl(Native Method)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
         at com.iplanet.am.sdk.remote.RemoteServicesProviderImpl.getDirectoryServicesImpl(RemoteServicesProviderImpl.java:54)
         at com.iplanet.am.sdk.AMDirectoryAccessFactory.instantiateImpls(AMDirectoryAccessFactory.java:132)
         at com.iplanet.am.sdk.AMDirectoryAccessFactory.initialize(AMDirectoryAccessFactory.java:105)
         at com.iplanet.am.sdk.AMDirectoryAccessFactory.getDirectoryServices(AMDirectoryAccessFactory.java:191)
         at com.sun.identity.idm.IdServicesFactory.initialize(IdServicesFactory.java:127)
         at com.sun.identity.idm.IdServicesFactory.getDataStoreServices(IdServicesFactory.java:179)
         at com.sun.identity.idm.AMIdentityRepository.searchIdentities(AMIdentityRepository.java:210)
         at com.sun.identity.agents.websphere.AmRealmUserRegistry.getUsers(AmRealmUserRegistry.java:174)
         at com.sun.identity.agents.websphere.AmAgentUserRegistry.getUsers(AmAgentUserRegistry.java:107)
         at com.ibm.ws.security.registry.UserRegistryImpl.getUsers(UserRegistryImpl.java:382)
         at com.ibm.ws.security.core.SecurityAdmin.getUsers(SecurityAdmin.java:702)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
         at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
         at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
         at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
         at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
         at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
         at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
         at com.ibm.ws.security.admintask.ValidateAdminName.afterStepsExecuted(ValidateAdminName.java:560)
         at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.executeReal(AbstractTaskCommand.java:640)
         at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.execute(AbstractTaskCommand.java:595)
         at com.ibm.ws.console.security.UserRegistryDetailActionGen.validateAdminId(UserRegistryDetailActionGen.java:262)
         at com.ibm.ws.console.security.UserRegistryDetailActionGen.processAdminId(UserRegistryDetailActionGen.java:240)
         at com.ibm.ws.console.security.CustomUserRegistryDetailAction.execute(CustomUserRegistryDetailAction.java:177)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
         at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:371)
         at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:229)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.verifyImpl(Native Method)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.common.DCTreeServicesHelper.<clinit>(DCTreeServicesHelper.java:66)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initializeImpl(Native Method)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initialize(J9VMInternals.java:144)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.RemoteServicesImpl.<init>(RemoteServicesImpl.java:95)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.CachedRemoteServicesImpl.<init>(CachedRemoteServicesImpl.java:115)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.CachedRemoteServicesImpl.getInstance(CachedRemoteServicesImpl.java:137)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.RemoteServicesFactory.<clinit>(RemoteServicesFactory.java:87)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initializeImpl(Native Method)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.RemoteServicesProviderImpl.getDirectoryServicesImpl(RemoteServicesProviderImpl.java:54)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.AMDirectoryAccessFactory.instantiateImpls(AMDirectoryAccessFactory.java:132)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.AMDirectoryAccessFactory.initialize(AMDirectoryAccessFactory.java:105)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.AMDirectoryAccessFactory.getDirectoryServices(AMDirectoryAccessFactory.java:191)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.idm.IdServicesFactory.initialize(IdServicesFactory.java:127)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.idm.IdServicesFactory.getDataStoreServices(IdServicesFactory.java:179)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.idm.AMIdentityRepository.searchIdentities(AMIdentityRepository.java:210)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.agents.websphere.AmRealmUserRegistry.getUsers(AmRealmUserRegistry.java:174)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.agents.websphere.AmAgentUserRegistry.getUsers(AmAgentUserRegistry.java:107)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.ibm.ws.security.registry.UserRegistryImpl.getUsers(UserRegistryImpl.java:382)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.ibm.ws.security.core.SecurityAdmin.getUsers(SecurityAdmin.java:702)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at java.lang.reflect.Method.invoke(Method.java:615)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at java.lang.reflect.Method.invoke(Method.java:615)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      ... 50 more

  • How to get the table name and bind columns names in an INSERT statement ?

    I have an INSERT statement with input parameters (for example
    INSERT INTO my_table VALUES (:a, :a, :a)) and I want to know
    without parsing the statement which is the name of table to
    insert to and the corresponding columns.
    This is needed to generate the SELECT FOR UPDATE statement to
    refetch a BLOB before actually writing to it. The code does not
    know in advance the schema (generic code).
    Thanks in advance,
    Joseph Canedo

    Once you have prepared your statement, you can execute the
    statement with the OCI_DESCRIBE_ONLY mode before binding any
    columns. Then you can use OCIParamGet to find out about each
    column (column index is 1-based). You should get OCI_NO_DATA or
    ORA-24334 if there are no more columns in the statement. Note
    that the parameter descriptor from OCIParamGet is
    allocated/freed internally by OCI; you do not need to manage it
    explicitly. The parameter descriptor is passed to OCIAttrGet in
    order to obtain for instance the maximum size of data in the
    column OCI_ATTR_DATA_SIZE. You can also get the column name in
    this way, although I do not remember the #define off the top of
    my head. Getting the table name appears to be much more
    difficult; I have never had to do that yet. Good luck. -Ralph

  • How to set a new DocumentBuilderFactory in my application?

    Hello Suners,
    I really need some help to set a new DocumentBuilderFactory in my application.
    I have a new instance of DocumentBuilderFactory with my settings and i need to set it in the application so that it use it to show some special DOM elements.
    DocumentBuilderFactory.newInstance("com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl", null) ;now i just need a clue how to make it recognizable to my application i mean how to make my application obtain a reference to the new DocumentBuilderFactory so it can use the factory to configure and obtain parser instances?.
    Edited by: abulseed on Aug 29, 2010 6:59 AM

    abulseed wrote:
    now i just need a clue how to make it recognizable to my application i mean how to make my application obtain a reference to the new DocumentBuilderFactory so it can use the factory to configure and obtain parser instances?.That code already produces a reference to the new DocumentBuilderFactory (assuming it's correct code). The normal thing to do with the reference would be to assign it to a variable. Then your application could use the variable, which refers to the factory, to do those things which it is supposed to do.

Maybe you are looking for