[e-Tester]: Adding Content to Authentic Plugin ActiveX

Hi everyone,
Altova XMLSpry provides a free ActiveX plugin, which I am using in my webapplication (written using JSPs) to edit XML content.
Has anyone tried e-Tester to enter content in this special ActiveX plugin? I can't seem to enter any text data (or sometimes, it appears in the wrong places, when I am playing it back)..
Many thanks,
Nuno Viana ([email protected])

Hi,
thanks for your reply!
Basically, the Authentic Plugin is an ActiveX object, which is scrollable and contains a form with input-text fields, pull-down menus and clickable links which make the form itself to change length (adding or removing of new input fields dynamically).
Well...I tried to record the writing of text in a couple of the input-text fields, as well as selecting appropriate options from the pull-down menus. I had to scroll-down the object itself since the embedded form inside the ActiveX control is larger than the MS IE windows's height.
Anyway, I have used the "Windows Event Record" (as suggested by the manual) when clickin/entering text/choosing options...but when playing it back, I saw a couple of characters appearing in different input-fields, as if the (x,y) coordinates previously recorded were somehow wrong...and the characters were being actually entered in different places in the form instead of being added to the correct input text field...
Thanks for any help.
Nuno

Similar Messages

  • Unable to login using OAM Custom Authentication Plugin

    Hi,
    I have a problem with OAM Custom Authentication Plugin, My Plugin is Activate successfully. When try to login from Access Manager SSO login page, it is unable to login. I am getting followiing message in the log file.
    I am return ExecutionStatus.SUCCESS from my Java code and I have only one step where I have attached Plugin and my Steps Orchestration is
    On Success -> Success
    On Failure -> Failure
    On Error -> Failure
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:process_creds.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :process_creds with status fail.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:is_resource_protected.
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.AuthzEngineController processEvent
    INFO: Processing Event is_resource_protected
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.AuthzEngineController processEvent
    INFO: Is Resource Protected status : success
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :is_resource_protected with status success.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:check_valid_session.
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.sso.SSOEngineController processEvent
    INFO: Processing Event check_valid_session
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.sso.SSOEngineController processEvent
    INFO: Processing Event check_valid_session
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :check_valid_session with status fail.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:process_creds.
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.credcollect.CredCollectEngineController handleProcessCredentials
    INFO: Successfully validated the submitted credentials.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :process_creds with status success.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:validate_creds.
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.AuthnEngineController processEvent
    INFO: Processing Event validate_creds
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.authn processEvent
    INFO: Policy ID : DB User Authentication Scheme
    Jun 12, 2013 9:06:22 AM oracle.security.am.engine.authn.internal.controller.AuthenticationEngineControllerImpl validateUser
    INFO: Authentication Scheme Id: DB User Authentication Scheme.
    Jun 12, 2013 9:06:22 AM oracle.security.am.engine.authn.internal.controller.AuthenticationEngineControllerImpl validateUser
    INFO: Runtime Authentication Scheme: Scheme name: = DB User Authentication Scheme
    Scheme Challenge URL: = http://idmlab.tigerit.com:14100/oam/server/
    Scheme Challenge Mec: = FORM
    Scheme Challenge Par: = {contextType=default, username=string, contextValue=OAM, password=sercure_string, challenge_url=/pages/login.jsp}
    Authentication Module Name: = DB Authentication module
    Jun 12, 2013 9:06:22 AM oracle.security.am.engine.authn.internal.executor.AuthenticationSchemeExecutor execute
    INFO: Authentication Module Factory Class: DB Authentication module.
    Jun 12, 2013 9:06:22 AM oracle.security.am.common.diagnostic.DiagnosticUtil getDynamicPath
    INFO: DiagnosticUtil: enetered getDynamicPath
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.common.adapters.OAMLoggerImpl info
    INFO: Registering collector at runtime.
    Jun 12, 2013 9:06:22 AM oracle.security.am.common.diagnostic.impl.MetricHierarchy getOrCreateCollector
    INFO: Collector already exists, reusing existing.
    Jun 12, 2013 9:06:22 AM oracle.security.am.common.diagnostic.DiagnosticUtil getDynamicPath
    INFO: DiagnosticUtil: enetered getDynamicPath
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.common.adapters.OAMLoggerImpl info
    INFO: Registering collector at runtime.
    Jun 12, 2013 9:06:22 AM oracle.security.am.common.diagnostic.impl.MetricHierarchy getOrCreateCollector
    INFO: Collector: ["PluginPhaseEvent.oracle.security.am.plugin.diagnostic.PluginPhaseEvent@6d6a08fb":" Collector    : OAMS/OAM/Plugin/AUTHN/Plugin_SamplePlugin/PluginLocate
      Type     : PHASE_EVENT
      Metrics  : 511
      LogLevel : OFF
      EnableRate : false  EnablePersistence : false"], registered at runtime.
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.common.adapters.OAMLoggerImpl info
    INFO: Registering collector at runtime.
    Jun 12, 2013 9:06:22 AM oracle.security.am.common.diagnostic.impl.MetricHierarchy getOrCreateCollector
    INFO: Collector already exists, reusing existing.
    User Name: test and Password : test
    Authentication Successfull return ExecutionStatus.SUCCESS
    Jun 12, 2013 9:06:22 AM oracle.security.am.engine.authn.internal.controller.AuthenticationEngineControllerImpl validateUser
    INFO: Result of Authentication Scheme Execution: false.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :validate_creds with status fail.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:check_authn_retry.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :check_authn_retry with status success.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:cred_collect.
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.credcollect.CredCollectEngineController handleCollectCredentials
    INFO: Processing Event cred_collect
    Jun 12, 2013 9:06:22 AM oracle.security.am.engines.enginecontroller.credcollect.CredCollectEngineController handleCollectCredentials
    INFO: Credential collection process success.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :cred_collect with status success.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:PBL_return.
    Jun 12, 2013 9:06:22 AM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :PBL_return with status success.
    Can anyone help me regarding this issue.
    Thanks
    Tamim Khan

    Hi,
    Little update about authentication plugin, please see the log file below, Result of Authentication Scheme Execution:true, now but, still the cookie is LOGGEDOUTCONTINUE and still I am unable to login.  
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.controller.util.BasicCacheHandler sync
    INFO: Cache data sync:InProcess for request -414941018507193158;
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.controller.util.BasicCacheHandler sync
    INFO: Cache data sync:Success for request -414941018507193158;
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:process_creds.
    Jun 19, 2013 1:51:44 PM oracle.security.am.engines.enginecontroller.credcollect.CredCollectEngineController handleProcessCredentials
    INFO: Successfully validated the submitted credentials.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :process_creds with status success.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:validate_creds.
    Jun 19, 2013 1:51:44 PM oracle.security.am.engines.enginecontroller.AuthnEngineController processEvent
    INFO: Processing Event validate_creds
    Jun 19, 2013 1:51:44 PM oracle.security.am.engines.enginecontroller.authn processEvent
    INFO: Policy ID : DB Authentication Scheme
    Jun 19, 2013 1:51:44 PM oracle.security.am.engine.authn.internal.controller.AuthenticationEngineControllerImpl validateUser
    INFO: Authentication Scheme Id: DB Authentication Scheme.
    Jun 19, 2013 1:51:44 PM oracle.security.am.engine.authn.internal.controller.AuthenticationEngineControllerImpl validateUser
    INFO: Runtime Authentication Scheme: Scheme name: = DB Authentication Scheme
    Scheme Challenge URL: = http://idmlab.tigerit.com:14100/oam/server/
    Scheme Challenge Mec: = FORM
    Scheme Challenge Par: = {contextType=external, username=string, contextValue=/oam, password=sercure_string, challenge_url=http://192.168.1.220:14100/ssologin/ssologin.jsp}
    Authentication Module Name: = DB Authentication Module
    Jun 19, 2013 1:51:44 PM oracle.security.am.engine.authn.internal.executor.AuthenticationSchemeExecutor execute
    INFO: Authentication Module Factory Class: DB Authentication Module.
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.diagnostic.DiagnosticUtil getDynamicPath
    INFO: DiagnosticUtil: enetered getDynamicPath
    Jun 19, 2013 1:51:44 PM oracle.security.am.engines.common.adapters.OAMLoggerImpl info
    INFO: Registering collector at runtime.
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.diagnostic.impl.MetricHierarchy getOrCreateCollector
    INFO: Collector already exists, reusing existing.
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.diagnostic.DiagnosticUtil getDynamicPath
    INFO: DiagnosticUtil: enetered getDynamicPath
    Jun 19, 2013 1:51:44 PM oracle.security.am.engines.common.adapters.OAMLoggerImpl info
    INFO: Registering collector at runtime.
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.diagnostic.impl.MetricHierarchy getOrCreateCollector
    INFO: Collector already exists, reusing existing.
    User Name: test and Password : test
    Set 1st  Responce
    Set 2nd  Responce
    Set 3rd  Responce
    Setting cookie
    Authentication Successfull return ExecutionStatus.SUCCESS
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.diagnostic.DiagnosticUtil getDynamicPath
    INFO: DiagnosticUtil: enetered getDynamicPath
    Jun 19, 2013 1:51:44 PM oracle.security.am.engines.common.adapters.OAMLoggerImpl info
    INFO: Registering collector at runtime.
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.diagnostic.impl.MetricHierarchy getOrCreateCollector
    INFO: Collector already exists, reusing existing.
    Jun 19, 2013 1:51:44 PM oracle.security.am.engine.authn.internal.controller.AuthenticationEngineControllerImpl validateUser
    INFO: Result of Authentication Scheme Execution: true.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :validate_creds with status fail.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:check_authn_retry.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :check_authn_retry with status success.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:cred_collect.
    Jun 19, 2013 1:51:44 PM oracle.security.am.engines.enginecontroller.credcollect.CredCollectEngineController handleCollectCredentials
    INFO: Processing Event cred_collect
    Jun 19, 2013 1:51:44 PM oracle.security.am.engines.enginecontroller.credcollect.CredCollectEngineController handleCollectCredentials
    INFO: Credential collection process success.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :cred_collect with status success.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller: processing Event:PBL_return.
    Jun 19, 2013 1:51:44 PM oracle.security.am.controller.MasterController processEvent
    INFO: Master Controller:  Event processing finished :PBL_return with status success.
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.controller.util.BasicCacheHandler sync
    INFO: Cache data sync:InProcess for request -414941018507193158;
    Jun 19, 2013 1:51:44 PM oracle.security.am.common.controller.util.BasicCacheHandler sync
    INFO: Cache data sync:Success for request -414941018507193158;
    Can anyone help me please.
    Thanks
    Tamim Khan

  • How to Specify Metadata When Adding Content Using iTunes U Web Service?

    I've been developing Java applications using iTunes U Web service and uploaded content to iTunes U site using iTunes U Web service without problem. Now I want to add metadata fields (name, artist name, album name, etc.) for the tracks I uploaded. It seems to me that "AddTrack" will do. So I tested it but it neither adds a track under the specified group nor updates metadata fields for an existing track. It turned out "MergeTrack" actually updates metadata fields for an existing track. So is there any way to specify metadata at the time of adding content using iTunes U Web service? And what exactly does AddTrack do? This is all about contents hosted by iTunes U site and no RSS is involved.
    I'm referring to the "AddTrack" method in iTunes U Web service:
    http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/iTunesUWebServices/c hapter18_section_21.html#//appleref/doc/uid/AdminGuide-CH13-SW26

    Thanks for all the replies. My question is whether there is any way to specify metadata WHEN adding content using iTunes U Web service. Specifying metadata AFTER adding content can be achieved by MergeTrack (weird naming) and it does work.
    As for setting track level meta-data in the media file and then upload it, there're several reasons against that, among which are:
    1. Some track metadata are context-dependent. A video about buildings on Michigan Ave in Chicago can be track #2 in a history course and described as "historic view of the Magnificent Mile", but the same media can also be track #5 in a landscape design course and described as something like "contemporary architecture". Setting these metadata in the media file itself is not the preferred way to do it since it implies maintaining a version of the same media for any course/group it gets uploaded to.
    2. Setting metadata in a location separate from the media file helps track the metadata change and search for media without digging into the media itself.
    3. If MergeTrack "updates" metadata, there got to be some other method that "creates" metadata - that's what a well-designed API should look like. And setting metadata in the media file is not an equivalent to a "create metadata" method call. In rickwolf's term, that implicit AddTrack should actually be made explicit so the party uploading content can explicitly specify metadata instead of having iTunes U extract metadata from the media.
    It is still not clear what "AddTrack" does exactly, maybe rickwolf is right - it's only relevant to tracks created through RSS.
    So it seems to me there is no other way to specify metadata WHEN adding content using iTunes U Web service than setting metadata in the media file. To me it is more like a design flaw.
    Message was edited by: Stone Xiang
    Message was edited by: Stone Xiang
    Message was edited by: Stone Xiang

  • Adding Content

    First let me say that the documentation, while accurate, is not helpful.
    One task I have is to use the generic webservice to add content. I have created multipart/related content to post to the server. The content looks exactly like the content (except for the exact contents of the XML portion, obviously) the server sends when i get a document using the webservice.
    The server doesn't like it. I get a 500 error with no logging of anything... anywhere.
    What is the correct way to go about adding content using the generic webservice?

    I guess a level of frustration is building up here.
    I am looking at this stuff:
    http://docs.oracle.com/cd/E21764_01/doc.1111/e10807/a01_wsdl_and_soap.htm#BEHFACEG
    A co-worker found some sample applications (not sure where) which demonstrate that the sample file (below) can be posted.
    I am trying to adapt to my client app what is in the sample app (which like many sample apps is inexplicably written to run from a command line) to get it working
    and am running into one of 2 different errors. With the lack of logging on the server side; it is very hard to tell what is happening here.
    I think I am 1 or 2 small code errors away from having this working but I can't discern a logical path to a debugging approach from here.
    ------123454321
    Content-Type: text/xml; charset=utf-8
    Content-ID: <SoapContent>
    <?xml version='1.0' ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <idc:service xmlns:idc="http://www.stellent.com/IdcService/" IdcService="CHECKIN_UNIVERSAL">
    <idc:document dDocName="SoapTest001" dDocAuthor="sysadmin" dDocTitle="Soap Test 001 Document" dDocType="Document" dSecurityGroup="Secure" dDocAccount="">
    <idc:file name="primaryFile" href="c:/temp/primary.txt"></idc:file>
    <idc:file name="alternateFile" href="c:/temp/alternate.html"></idc:file>
    </idc:document>
    </idc:service>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ------123454321
    Content-Type: text/plain
    Content-ID: <primaryFile>
    This is the primary text.
    This is line two.
    This is line three.
    This is line four.
    This is line five.
    ------123454321
    Content-Type: text/html
    Content-ID: <alternateFile>
    <html>
    <head>
    <title>Alternate File Title</title>
    </head>
    <body>
    <table>
         <tr><td>This is the first row.</td></tr>
         <tr><td>This is the second row.</td></tr>
         <tr><td>This is the third row.</td></tr>
         <tr><td>This is the fourth row.</td></tr>
         <tr><td>This is the fifth row.</td></tr>
         <tr><td>This is the sixth row.</td></tr>
         <tr><td>This is the seventh row.</td></tr>
    </table>
    </body>
    </html>
    ------123454321--
    client app:
    import java.io.*;
    import java.net.*;
    import java.util.ArrayList;
    import java.util.List;
    import org.apache.commons.codec.binary.Base64;
    public class SOAPClient {
         public String urlIn;
         public String action;
         public String xmlContent="";
         public byte[] mimeDoc;
         public String uuid;
         public String user;
         public String password;
         public String messageOut;
         public String resultText;
         public String stackTrace;
         public boolean multiPart;
         public int statusIndicator = 0;
         public List outputObject = new ArrayList();
         // class shared variable space
         private InputStream responseIn;
         private byte[] responseInBytes;
         private List mimeHolder = new ArrayList();
         private List lengthHolder = new ArrayList();
         private List payloadHolder = new ArrayList();
         public SOAPClient (String thisURL, String thisAction, String thisXML){
              urlIn = thisURL;
              action = thisAction;
              xmlContent = thisXML;
         public SOAPClient (String thisURL, String thisAction, String boundry, byte[] documentIn, String un, String pw){
              urlIn = thisURL;
              action = thisAction;
              uuid = boundry;
              mimeDoc = documentIn;
              user = un;
              password = pw;
         public void executeCall () throws IOException{
              String retValue = soapPostaction();
              if(retValue.length() < 1 && messageOut.length() < 1){
                   messageOut = "No data returned";
              if(retValue.length() > 1 && messageOut.length() < 1){
                   messageOut = "Call suceeded";
              resultText = retValue;
         public static void main(String[] args) {
           protected String soapPostaction() {
                String outputText = "";
                try {
                     URL u = new URL(urlIn);
                     URLConnection uc = u.openConnection();
                     HttpURLConnection connection = (HttpURLConnection) uc;
                     connection.setDoOutput(true);
                     connection.setDoInput(true);
                     connection.setRequestMethod("POST");
                     connection.setRequestProperty("SOAPAction", action);
                     if(xmlContent.length() > 10){
                            connection.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");
                            OutputStream out = connection.getOutputStream();
                            Writer wout = new OutputStreamWriter(out);
                            wout.write(xmlContent);
                            wout.flush();
                            wout.close();                      
                     } else {
                            connection.setRequestProperty("Content-Type", "Multipart/Related;boundary=" + uuid + ";type=text/xml; start=\"<SoapContent>\"");
                            connection.setRequestProperty("Content-Length",String.valueOf(mimeDoc.length));
                            String userpassword = user + ":" + password;
                            byte[] encoded = Base64.encodeBase64(userpassword.getBytes());
                            connection.setRequestProperty("Authorization", "Basic " + encoded);
                            connection.setDoOutput(true);
                            OutputStream wout = connection.getOutputStream();
                            int br = 0;
                            byte[] bf = new byte[mimeDoc.length];
                            InputStream dataOut = new ByteArrayInputStream(mimeDoc);
                            while(br != -1){
                                 br = dataOut.read(bf);
                                 wout.write(bf);
                            wout.flush();
                            wout.close();                                              
                     // get the body of the response
                     responseIn = connection.getInputStream();
                     byte[] buffer = new byte[1];
                     ByteArrayOutputStream baos = new ByteArrayOutputStream();
                     int bytesread = 0;
                     while(bytesread != -1){
                          bytesread = responseIn.read(buffer);
                          baos.write(buffer);
                     responseInBytes = baos.toByteArray();
                     // figure out what the server returned
                     String header = "";
                     String[] boundryMarker = null;
                     String boundryMarkerString = null;
                     for (int j = 1; ; j++) {
                        header = uc.getHeaderField(j);
                        if (header == null)
                             break;
                        if (uc.getHeaderFieldKey(j).startsWith("Content-Type"))
                             break;
                     if(header != null){
                          String[] headerParts = header.split(";");
                          if(headerParts[0].substring(0,headerParts[0].length()).startsWith("multipart/related")){
                                 for (int x = 0;x < headerParts.length;x++){
                                      if (headerParts[x].substring(0,8).startsWith("boundary")){
                                      boundryMarker = headerParts[x].split("=");
                                      boundryMarkerString = "--" + boundryMarker[1].substring(1,boundryMarker[1].length()-1);
                     ByteArrayInputStream readDataIn = new ByteArrayInputStream(responseInBytes);
                     // for multipart/related documents we need to read through the array and
                     // find the boundary markers so we can dig the various parts out
                     if(boundryMarkerString != null){
                          MyBufferedReader brd = new MyBufferedReader();
                          Reader dataIn = new BufferedReader(new InputStreamReader(readDataIn));
                          brd.TplBufferedReader(dataIn);
                          String thisLine = "";
                          String testLine = "";
                          int startLine = 1;
                          int endLine = 0;
                          int z = 0;
                          String[] lineBuffer = new String[400];
                          outer:
                          while(thisLine != null){
                               // find start
                               testLine = thisLine.trim();
                               if(testLine.startsWith(boundryMarkerString)){
                                    thisLine = brd.readLine(); // throw away line
                                    if(thisLine == null)
                                         break outer;
                                  z = z + thisLine.getBytes().length;
                                      String tempHolder = brd.readLine(); // this is the content type. We actually need to read this line
                                    lineBuffer = tempHolder.split(":");
                                  z = z + tempHolder.getBytes().length;
                                    thisLine = brd.readLine(); // throw away line
                                  z = z + thisLine.getBytes().length;
                                    thisLine = brd.readLine(); // throw away line
                                  z = z + thisLine.getBytes().length;
                                      startLine = z;
                                    // find end
                                      inner:
                                    while(thisLine != null){
                                       thisLine = brd.readLine();
                                       testLine = thisLine.trim();
                                       z = z + thisLine.getBytes().length;
                                       if(testLine == null || testLine.startsWith(boundryMarkerString)){
                                            endLine = z - startLine - boundryMarkerString.length() - 4; // constant accounts for newline and eof characters
                                            break inner;
                                    getStreamPortion (lineBuffer[1].trim(), startLine, endLine);
                                    continue outer;
                               thisLine = brd.readLine();
                               if(thisLine != null){
                                      z = z + thisLine.getBytes().length;                                
                          multiPart = true;
                     } else {
                          multiPart = false;
                     ByteArrayInputStream dumpData = new ByteArrayInputStream(responseInBytes);
                     outputText = convertStreamToString(dumpData);
                     stackTrace = "";
                     messageOut = "Sucess";
                     statusIndicator = 0;
                     return outputText;
                catch (IOException e) {
                     statusIndicator = '1';
                     try {
                          StringWriter sw = new StringWriter();
                          e.printStackTrace(new PrintWriter(sw));
                          stackTrace = sw.toString();
                          messageOut = "Java IO error: check \"stackTrace\" for details.";
                          sw.close();
                     catch (IOException er){
                     return "";
                } finally {
                     System.gc();
           private void getStreamPortion (String mimeType, int startAt, int endAt) throws IOException{
                String localMime = mimeType;
              byte[] outBuffer = new byte[endAt];
              int q;
              int z = 0;
              for(q=0;q<responseInBytes.length;q++){
                   if(q>=startAt && q<=(endAt + startAt)){
                        outBuffer[z]= responseInBytes[q];
                        z = z + 1;
                   if(z >= endAt)
                        break;
              mimeHolder.add(mimeHolder.size(), localMime);
              lengthHolder.add(lengthHolder.size(),Integer.toString(outBuffer.length));
              payloadHolder.add(payloadHolder.size(),outBuffer);
                List tempAr = new ArrayList();
                tempAr.add(mimeHolder.get(outputObject.size()));
                tempAr.add(lengthHolder.get(outputObject.size()));
                tempAr.add(payloadHolder.get(outputObject.size()));
                outputObject.add(tempAr);
         public String convertStreamToString(InputStream is) throws IOException {
                if (is != null) {
                     Writer writer = new StringWriter();
                     char[] buffer = new char[1024];
                     try {
                          Reader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
                          int n;
                          while ((n = reader.read(buffer)) != -1) {
                               writer.write(buffer, 0, n);
                     } finally {
                          is.close();
                          return writer.toString();
                     } else {
                          return "";}
      }

  • Error in custom OAM authentication plugin

    Hi All
    I am trying to build a custom OAM authentication plugin using JDeveloper. Here are the version information:
    OAM - 11.1.1.5 BP04
    WLS - 10.3.5
    Issue:
    I get the following error in the OAM logs when I try to activate the plugin.
    [2012-11-14T09:39:17.996-08:00] [oam_server1] [WARNING] [] [oracle.oam.extensibility.lifecycle] [tid: DistributedCache:DistributionCache:EventDispatcher] [userId: <anonymous>] [ecid: 0000Jfzyiy6EgKI5qrH7iY1GcxMc000002,0] [APP: oam_server] Activation failed due to felix bundle exception while installing and starting the bundle.Unresolved constraint in bundle oamCustomAuthPlugin [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=oracle.security.am.plugin.ExecutionStatus)[[
    org.osgi.framework.BundleException: Unresolved constraint in bundle oamCustomAuthPlugin [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=oracle.security.am.plugin.ExecutionStatus)
    at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3404)
    The names of jar file, class file, plugin xml file etc are all same. My plugin code is very generic and I have the following values in the plugin's manifest and xml file
    Plugin xml file [oamCustomAuthPlugin.xml]:
    <Plugin name="oamCustomAuthPlugin" type="Authentication">
    <author>uid</author>
    <email>[email protected]</email>
    <creationDate>09:32:20, 2011-11-13</creationDate>
    <version>4</version>
    <description>OAM Custom Authentication plugin</description>
    <interface>oracle.security.am.plugin.authn.AbstractAuthenticationPlugIn</interface>
    <implementation>com.company.oam.oamCustomAuthPlugin</implementation>
    <configuration>
    <AttributeValuePair>
    <Attribute type="string" length="20">INPUT_PARAM1</Attribute>
    <mandatory>true</mandatory>
    <instanceOverride>false</instanceOverride>
    <globalUIOverride>true</globalUIOverride>
    <value>Param1</value>
    </AttributeValuePair>
    <AttributeValuePair>
    <Attribute type="string" length="20">INPUT_PARAM2</Attribute>
    <mandatory>true</mandatory>
    <instanceOverride>false</instanceOverride>
    <globalUIOverride>true</globalUIOverride>
    <value>Param2</value>
    </AttributeValuePair>
    </configuration>
    </Plugin>
    Manifest File [MANIFEST.MF]:
    Ant-Version: Apache Ant 1.7.1
    Bundle-Version: 1.0.0.4
    Bundle-Name: oamCustomAuthPlugin
    Bundle-Activator: oamCustomAuthPlugin
    Bundle-ManifestVersion: 2
    Created-By: 17.0-b17 (Sun Microsystems Inc.)
    Import-Package: oracle.security.am.plugin,oracle.security.am.plugin.authn
    Bundle-SymbolicName: oamCustomAuthPlugin
    Bundle-RequiredExecutionEnvironment: JavaSE-1.6
    Please let me know if you have faced a sinilar issues in the past. Please help !!

    Try with Import-Package: org.osgi.framework;version="1.3.0",oracle.security.am.plugin,oracle.security.am.plugin.authn,oracle.security.am.plugin.api If it doesn't work try with - Import-Package: org.osgi.framework;version="1.3.0",oracle.security.am.plugin,oracle.security.am.plugin.authn,oracle.security.am.plugin.api ,oracle.security.am.plugin.ExecutionStatus

  • URGENT help required : Custom Authentication Plugin for validation of users

    Hi Experts.
    I'm a newbie and am stuck in middle of nowhere.
    I have been asked to develop a custom authentication plug-in which would validate a user using the attributes such as a userid and a shared-userid.
    shared-userid is just a custom id that would be generated on the basis of some logic.
    Currently I'm using OAM 10.1.4.3.0 on WINDOWS server and as everybody, I'm also not able to find any sample files or sample folder structure.
    As per one of the other threads https://forums.oracle.com/forums/thread.jspa?messageID=3838474, sample code and sample folders are removed from this particular version and were present in some previous version.
    So, can anyone please help me out with the following:
    1. How can I proceed to accomplish this task, i.e. to check whether a user-id and a shared-userid both are validated and a user is granted access.
    2. Are all of these files required to create a custom authentication plug-in or can we proceed only with the ".c" file (i.e. make file, authn.c, and a dll file made using the make file and .c file)
    3. Can anybody provide me with a sample file or a sample code written in "C" wherein the plug-in connects to the LDAP and searches for a particular dn for comparison or something. Also a sample make file for windows to convert the .c file to .dll.
    PLEASEEEE help me ASAP.
    Regards
    Edited by: 805912 on Nov 15, 2011 7:18 PM

    Hi,
    Regarding question 2, you also need the header file is supplied in the Access Server installation directory, under ...access\oblix\sdk\authn_api and is called authn_api.h. you need this to build the dll which must then be placed in the Access Server's ...\access\oblix\lib directory.
    Regarding question 3, if you install an earlier version of the Access Server, ie 10.1.4.2 or less, then you will get a \access\oblix\sdk\authentication\samples\authn_api directory that contains a basic sample authentication plugin. However, there is still documented in the 10.1.4.3 Developer Guide another sample plugin, simplapi.c, in the 10.1.4.3 Developer Guide with instructions on how to use it. It does work, but unfortunately requires a couple of edits to get it working after copy&pasting it (no code changes, just fairly obvious case changes eg changing ObanPlugin* to ObAnPlugin*). I used the following commands to get it to compile into a .so file on unix:
    g++44 -c -fPIC -Wno-deprecated -m32 simpleapi.c
    g++44 -shared -nostdlib -lc -m32 simpleapi.o -o simpleapi.so
    but I really would not know if or how these translate into a Windows environment.
    Regards,
    Colin
    Edited by: ColinPurdon on Nov 15, 2011 2:50 PM

  • HT1451 Getting a -54 error while iTunes is adding content.

    Getting a -54 error while iTunes is adding content. Any ideas on how to recify error. I am trying to rebuild the database without much luck. My media content is kept on a seperate drive than the system.
    Thanks
    Jim

    The CD I imported (in the above post) is now not in my iTunes library. Any help would be appreciated .

  • I added content to a document in Pages on my Mac last night, which was saved to icloud and this morning it was gone. Can I get my precious work back? Thanks

    Hello
    I added content to a document in Pages on my Mac last night, which was saved to icloud and this morning the additions were gone. Can I get my precious work back? Thanks

    Just thought I'd add my solution, I decided to go with WebDAV and I think it actually works better than the iTunes way, the steps are pretty much the same but avoiding the iTunes interface just makes things easier and faster.
    I followed this guide but it does have a small mistake in the httpd-dav.conf file, on line 2, where it's WebServer/WebDAV">, it should be <Directory "/Library/WebServer/WebDAV">.
    The tricky part is setting permissions which if wrong will give you errors when connecting with the iPad, I opted to set all to Read&Write since my home network has a hardware firewall. Another convenience was to add an alias to the webdav share on the Desktop.
    I'm still expecting the call from Apple but even if they fix the iTunes I'm sticking with WebDAV, atleast until I see what's new with iOS5 and iCloud this fall which should bring true sync for documents (I'm hoping that they will offer encryption with my own keys, if not, then I'll probably keep using WebDAV).

  • Testing JMS content conversion

    Hi Experts,
    I have a scenario MQ-->PI--ECC.
    MQ sends a flat file and there is JMS content conversion used in sender JMS channel. On MQ side channels are not yet setup. Now I need to test if JMS content conversion is working properly. I cannot test by triggering flat file from RWB.
    Is there a way I can trigger a file from any third party tools and test the content conversion. Do you have any suggestions to make this test possible.
    Thanks,
    Avinash.

    Hi Avinash
    One option is to create a temporary File/FTP sender channel and use it in the sender agreement replacing the JSM channel. In the File/FTP channel, use the MessageTransformBean to achieve content conversion. This way, you can test out the content conversion parameters, and once the JMS server is ready, you can just swap it.
    Rgds
    Eng Swee

  • Adding Content To the Top-Level of Navigation bar ?

    Hi,experts ,
       i have a problem with adding content to the top-level of navigation bar ?
    I have the authority of administration.I have added a customizing role with the entry-point property to myself userid . I have checked my navigation-target page's property can be visible in top-level navigation. I checked my my display level is set as 2 .
       However ,i dont get the folder content at the top-level navigation.Anyway,when i check the delta link trace,there is no folder that connect to my role .
       Anyone helps me out ?
    Thanks in Advance .

    Hi Eleanor,
    If you already created a role with an entry point and assigned it directly to you user, you may just have to refresh the portal page. You may also check the authorizations of you role.

  • [svn:osmf:] 10587: Modified the Akamai Plugin Sample app: 1) Added the new MAST plugin; 2) Added support to load the plugins as static or dynamic

    Revision: 10587
    Author:   [email protected]
    Date:     2009-09-24 18:42:35 -0700 (Thu, 24 Sep 2009)
    Log Message:
    Modified the Akamai Plugin Sample app: 1) Added the new MAST plugin; 2) Added support to load the plugins as static or dynamic
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.actionScriptProperties
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.project
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.css
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxml

    Revision: 10587
    Author:   [email protected]
    Date:     2009-09-24 18:42:35 -0700 (Thu, 24 Sep 2009)
    Log Message:
    Modified the Akamai Plugin Sample app: 1) Added the new MAST plugin; 2) Added support to load the plugins as static or dynamic
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.actionScriptProperties
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.project
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.css
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxml

  • Whats the difference between adobe flashplayer plugin,activex and adobe flashplayer?

    whats the difference between adobe flashplayer plugin,activex and adobe flashplayer?

    How does Flash Player differ on various browsers?

  • How to install downloaded "additional value-added content" for CS6?

    I purchased CS6 and downloaded using Akamai Download Manager.  In addition to the main CS6 download, there were additional files that are also available to download.  There names indicate they are"additional value-added content not included in the trial version" of CS6. Downloading them leads to file folders that can be opened, and selecting the appropriate language folders leads to what appears to be a folder of fonts. Once this file folder is downloaded, how do I go about ensuring these fonts are actually installed on my (Mac) computer?

    Like any font - you add them to your Fontbook utility.
    Mylenium

  • OID External Authentication Plugin - Conceptual question

    Hi-
    Does anyone know the answer to this: If I enable the External Authentication Plugin for OID (to AD) does that mean that if I have any accounts in OID which do not exist in AD, they won't be able to authenticate?
    Also, if anyone knows of some conceptual documentation on this, please let me know. All I could find was how to install it, but not how it works. (do I need to match users on CN or uid or what?)
    Thanks

    Hi,
    Once you are done with user accounts synchorinzation successfully using dipassistant tool from edirectory to OID. Inorder to update/flush the user accounts password that which are synchronized to OID, in such case OID eDirectory External Authenctiation plugin will be used (oidspediri.sh file) located under <ORACLE_HOME>ldap/admin. Provide th neccessary eDirectory Details.
    Regards,
    ABP

  • Error during connection test for Content Producers in FPN

    Hi,
    I have a question regarding connection test for content producers in FPN. Please let me explain the scenario,
    The portal server (PS1) is in the network domain say "XYZ.com" and we are accessing the portal from different domain say "ABC.com" via browser. We need to configure another portal (PS2) which is in the network domain say "mno.XYZ.com" with PS1 using FPN. We have imported the certificates of portal PS1 (consumer) in PS2 (producer) portal server and done the required trust configurations using VA in PS2 portal server.
    Then we created a new content producer object for the PS2 portal (producer) in PS1 portal. But when we did the "Connection Tests" it gets failed with the following error message,
    "Could not retrieve the WSDL file; the handshake URL may not exist or may be invalid".
    Can any one please tell me why this error message is coming. Is it due to any network connection issue?
    Thanks,
    Gokul.

    Hi Ginger,
    somehow, yes :-) I deployed the iFlow for customer master replication. After creating a customer the trace looked different and terminated at the reverse proxy. So the simple connect somehow is not able to do the same...
    Cheers
    Florian

Maybe you are looking for

  • Quicktime 7.3 Overrun error

    I upgraded to 7.2 then did the 7.3 Quicktime + iTunes update right after now I am unable to start iTunes or Quicktime. Here is the error I receive when starting Quicktime http://blacktemplars.org/files/quicktime/overrun_error.png I tried uninstalling

  • Where did ML go?

    I bought ML from the App store and downloaded it overnight.  I have no idea where it went.  No indiction of a error.  The App Store has billed me. How do I install it?  Where do I find it?

  • Create Relation Type ContactPartner with own Relationtype

    Hi everybody, i copied the relationtype BUR001 (Contact Partner) into the Type ZUR001. Now when I create a new Contact Partner with a new bol-Object  lv_fac =  lv_core->get_entity_factory( 'BuilContactPerson' ). lr_builcontactperson = lv_fac->create(

  • Need Java Mail help

    good evening everybody iam new to JavaMail i used an example from oracle site that uses JavaMail to send an email, the applications tells me that the email has been sent successfully, but sadly i did't find any new emails in the email inbox i sent to

  • Is it possible to copy a piece of image of a certain shape?

    Hi, I�m trying to get some information in the JAVA API about retrieving a part of a Graphic Screen in a specific shape. Basically, I want to do this a) Create a Line2D.Double object. b) Copy the Graphic Screen "piece" that corresponds to this Line2.D