Message Builtin

Hi,
Im using forms 6i. Im not able to show the message on the working screen. using alert we can do it.
But i want to show the message on the working screen using message built in.
The following code is not working,
message('Test',ACKNOWLEDGE);
Help will be appreciated.
Regards
Sankar.M.N

Ammad is right, with the Message built-in the only way you can push the content of the Message into a popup is to call Message() twice. Thankfully, there are three different types of Alerts you can create (Note, Caution and Stop). Most Forms applications I've worked on had a wrapper class they used to display messages in one of the three different Alert types or in the status bar through a single call. The wrapper class was an overloaded library procedure that displayed the desired message with a single call rather than multiple calls required for an alert. For example, create a library package called MSG with a single exposed procedure called DISPLAY (or what ever you want to call it) and overload it so you can pass a message text, alert type, button names, etc. Here is an example of the procedure signature:
CREATE OR REPLACE PACKAGE MSG IS
   /* Define the types of Alert Button Titles that are allowed */  
   /* You could use a VARCHAR2 parameter that allows the user */
   /* to specify the Button Title, but I prefer to define the titles */
   BTN_OK        CONSTANT NUMBER:= 1;
   BTN_CANCEL    CONSTANT NUMBER:= 2;
   BTN_SAVE      CONSTANT NUMBER:= 3;
   BTN_YES       CONSTANT NUMBER:= 4;
   BTN_NO        CONSTANT NUMBER:= 5;
   --ETC......
   /* Define the Alert Types */
   TYPE_NOTE    CONSTANT NUMBER := 1;
   TYPE_CAUTION CONSTANT NUMBER := 2;
   TYPE_STOP    CONSTANT NUMBER := 3;
   /* display text in Status Bar */
   PROCEDURE DISPLAY (p_msg_txt VARCHAR2); 
   /* display text in an Alert with just one button */
   PROCEDURE DISPLAY (p_msg_txt VARCHAR2, p_msg_type NUMBER, p_btn_1 NUMBER);
   /* display text in an Alert with two buttons and return button pressed) */
   PROCEDURE DISPLAY (p_msg_txt VARCHAR2, p_msg_type NUMBER, p_btn_1 NUMBER, p_btn_2 NUMBER, p_btn_pressed OUT NUMBER);
   /* display text in an Alert wit three buttons and return button pressed */
   PROCEDURE DISPLAY (p_msg_txt VARCHAR2, p_msg_type NUMBER, p_btn_1 NUMBER, p_btn_2 NUMBER, p_btn_3 NUMBER, p_btn_pressed OUT NUMBER);
END MSG;This of course, is just the Package Specification, but it demonstrates the concept. This overloaded procedure in turn calls a private package procedure that does all the work of setting the alert properties, displaying the message text, recording which button was pressed and return the button pressed to the p_btn_pressed OUT parameter. Using this method - or a similar method - it allows you to display a message to your users with minimal coding. If you are working with a multi-language application, you could change the p_msg_txt parameter to a NUMBER that would refer to a message stored in a table.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Can we get a message in report run times without  red color X  button!!

    Hi Gurus!!
    I want to show a successful message after report is successful
    but when I user RSRW.message(................) then everytime I
    get red colr X button with message which also comes when there
    is error. I want to get rid of red X button.
    Please advise
    Thanks.
    SP

    hello,
    the srw.message builtin was ment for debugging purposes and not
    so mauch for end-user interaction.
    if you want more functionality you might want to create this in
    oracle forms and call oracle reports from there.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Initial Message before login screen

    I am facing a problem,
    I need to display a message once before login screen, the message will be more than 200 characters I tried to use Alert and message builtin but the limitation was that only 200 characters can be displayed thru these builtins, therefore I am unable to display the message.
    How Can I do that ?

    You could null out the on-logon trigger and call your own Form which displays the message and the calls Logon built-in.
    Regards
    Grant Ronald
    Forms PM

  • Report Manager problem: The user or group name 'BUILTIN\Administrators' is not recognized. (rsUnknownUserName)

    Hello,
    I have a big  problem with Reporting Services 2005 working on Windows 2003 Server.
    RS work as Network service, on subdomain reporting.mydomain with SSL wildcard certificate *.mydomain,
    Anonymous access: disabled and basic authentication: enabled
    ReportManager and reportServer has defualt virtual folders  (/reporting, /reportserver)
    My problem is:
    1) I can't manage security roles and site settings with report maanger. when I try assign roles to new user or group I get followng error:
    "The user or group name 'BUILTIN\Administrators' is not recognized. (rsUnknownUserName) Get Online Help"
    when i try to execute reports in report manager, parameters controls are not displayed correctly (very simple text boxes) and I can see:
    The selected report is not ready for viewing. The report is still being rendered or a report snapshot is not available. (rsReportNotReady)
    and I can't see my report in browser (IE 6.0) but only export to PDF, Excel...
    other functionality are working  fine i.e upload new files, creatign folders....
    2) Also my reportserver virtual folder does not work correctly.
    When I navigate to mydomain/reportserver I can see content of this virtual folder, than when I navigate to ReportService.soap i can see normal ReportServer view
    reporting.mydomain - /Reportserver/
    [To Parent Directory]
           Montag, 10. April 2006    16:31        <dir> bin
      Dienstag, 6. September 2005    01:12       488278 Catalog.sql
      Dienstag, 6. September 2005    01:12        14738 CatalogTempDB.sql
          Freitag, 21. April 2006    19:45        10555 Copy of rsreportserver.config
          Freitag, 14. April 2006    17:29           76 global.asax
           Freitag, 15. Juli 2005    01:12        26582 ModelGenerationRules.smgl
           Montag, 10. April 2006    16:31        <dir> Pages
           Montag, 10. April 2006    16:31        <dir> ReportBuilder
            Montag, 13. Juni 2005    14:07          143 ReportExecution2005.asmx
            Montag, 13. Juni 2005    14:06       196337 ReportingServices.wsdl
            Montag, 13. Juni 2005    14:07          131 ReportService.asmx
            Montag, 13. Juni 2005    14:07          131 ReportService.soap
            Montag, 13. Juni 2005    14:07          139 ReportService2005.asmx
          Dienstag, 13. Juni 2006    20:01        10580 rsreportserver.config
            Montag, 13. Juni 2005    14:07        11845 rssrvpolicy.config
           Montag, 10. April 2006    16:31        <dir> Styles
           Freitag, 17. Juni 2005    01:09         2673 web.config
    but me reports are not displayed correctly, I can run reports but top bar with parameters, export and print function are not displayed in correct format.
    (simple textboxes, and icons)
    reporting.mydomain/ReportServer - /
    Microsoft SQL Server Reporting Services Version 9.00.1399.00
    I think it is security issue. What schould i do to solve this problems?
    Wojtek

    Hi Wojtek
    I just wanted to know if you found a solution for part (1).  I just recently encountered the problem where:
    "when i try to execute reports in report manager, parameters controls are not displayed correctly (very simple text boxes) and I can see:
    The selected report is not ready for viewing. The report is still being rendered or a report snapshot is not available. (rsReportNotReady) "
    However all my reports are run from the most recent data.  The rsReportNotReady message appears in Report Manager but not the Report Server interface; the latter is able to render the reports.   But both have incorrectly displayed textbox inputs.
    Thanks
    nemo

  • The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your server administrator

    I got this problem when I tried to configure out-going email and add an account to farm administrator group.
    I configure out-going email according to this website http://technet.microsoft.com/en-us/library/cc288949.aspx
    Here are the screen shots.
    The SMTP server and email accounts work out OK when I use Outlook 2010 to test.
    Anyone can help me about it? Thanks.
    Here is the log.
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         E-Mail                        
    8gsf
    High    
    #160008: The e-mail address 'admin3.sharepoint@domain' contains illegal
    characters. df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         General                      
    8kh7 High    
    Cannot complete this action.  Please try again.
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         E-Mail                        
    7946 Critical
    Cannot complete this action.  Please try again.
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         Runtime                      
    tkau Unexpected
    Microsoft.SharePoint.SPException: The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your
    server administrator.    at Microsoft.SharePoint.ApplicationPages.AclInv.SendEmailInvitation(EntityEditor picker, String subject, String message)     at Microsoft.SharePoint.ApplicationPages.AclInv.BtnOK_Click(Object sender, EventArgs e)
        at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String
    eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStage...
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    The e-mail address I have tested it for several times and there is no problem.
    Anyone has any clue about this error?

    Hi.
    This I have seen before...
    It can be that the SMTP relay server is configured to only allow certain IP ranges or addresses.
    It can be that the firewall on the SP server does not allow for SMTP traffic (normally 25, for example for Exchange).
    It can be that there is an Antivirus on the SP server(Client AV) that prohobits the Timer service to send email from this server. I have seen MacAfee do this. Needed an policy change.
    If, its the builtin SMTP service you are using, check this link:
    http://blog.sharepointrx.com/2010/11/18/setting-up-the-iis-smtp-server-for-sending-email-from-sharepoint-2010-on-server-2008-r2/
    Check that and try again.
    Regards
    Thomas Balkeståhl - Technical Specialist - SharePoint -
    http://blog.blksthl.com
    Download the SharePoint Branding Project here
    Download the SharePoint 2010 Site Settings Explained here

  • Warning messages thrown while trying to connect to BW Cube

    We have Websphere Application Server to deploy our servlets. The problem is when we connect to BW Server through BI Java SDK, it generates the following WARNING messages:
    [2/9/06 17:48:14:682 CET] 179cdd40 SystemOut     O Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    [2/9/06 17:48:14:682 CET] 179cdd40 SystemOut     O Error Message is :com/sap/guid/GUIDGeneratorFactory
    [2/9/06 17:48:14:688 CET] 179cdd40 SystemOut     O Warning ! Protocol Implementation [com.sap.security.core.client.ws.SecurityProtocol] could not be loaded (ClassNotFound) !
    [2/9/06 17:48:14:688 CET] 179cdd40 SystemOut     O Error Message is :com.sap.security.core.client.ws.SecurityProtocol
    [2/9/06 17:48:20:325 CET] 179cdd40 SystemOut     O Warning ! Provider [SecurityProtocol] not found for feature in logical port [MsXmlAnalysisSoap] !
    [2/9/06 17:49:25:069 CET] 179cdd40 WebGroup      I SRVE0180I: [Shell-CCL] [/Shell-CCL] [Servlet.LOG]: /jsps/cclMyOrderHistory.jsp: init
    [2/9/06 17:51:00:564 CET] 179cdd40 WebGroup      I SRVE0180I: [Shell-CCL] [/Shell-CCL] [Servlet.LOG]: CCLMyOrderHistoryDownloadServlet: init
    [2/9/06 22:08:23:755 CET] 7b749d56 SystemOut     O Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    [2/9/06 22:08:23:755 CET] 7b749d56 SystemOut     O Error Message is :com/sap/guid/GUIDGeneratorFactory
    [2/9/06 22:08:23:762 CET] 7b749d56 SystemOut     O Warning ! Protocol Implementation [com.sap.security.core.client.ws.SecurityProtocol] could not be loaded (ClassNotFound) !
    [2/9/06 22:08:23:762 CET] 7b749d56 SystemOut     O Error Message is :com.sap.security.core.client.ws.SecurityProtocol
    [2/9/06 22:08:24:943 CET] 7b749d56 SystemOut     O Warning ! Provider [SecurityProtocol] not found for feature in logical port [MsXmlAnalysisSoap] !
    Any clues on this one. What causes this and why?
    Thanks in advance.

    http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#_59_
    The thin drivers are classes12.zip/classes111.zip. classes12.zip being the most recent release. You can download it from
    http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/winsoft.html
    (the general download site is http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html )
    Jamie

  • Log messages from multiple instances in single file.

    Hi!
    I have a requirement that i need to log messages from muliple instances of the same object in a file. The new file will be created every day. Likewise, multiple objects might have various instances each.
    One class
    ->multiple instances
    -> log message stored in single file.
    Note :
    I am using the Message driven bean. I need to log from the bean class. JDK 1.3
    If u could help me out that would be great.

    As long as they are all from the same OS program (a single Java VM), that's OK - you can use Log4j, and use a rotating file logger.
    If you point two different virtual machine processes at the same file, one may have it open when the other is trying to rotate it, and your rotation may fail (at best) and/or you may lose the old log (the worst case).
    If you need to collect log messages from multiple processes (or even multiple machines), use a syslog-based logger (Log4j has a SyslogAppender) or use Log4j's SocketAppender to write to a log4j-builtin log listener (SocketNode).

  • WD Java -BuiltIn Type or Simple Type expected

    Hi,
    As part of ECC upgrade we reimported RFCs into WD from new ECC system. We have 6 DCs and created 6 separate activities.
    Except one activity, rest of all activities got activated and released. For one DC, I got error BuiltIn Type or Simple Type expected while activating activity.
    Hence I followed the instructions as explained in below thread by creating new activity added local files into DTR. When I release this new activity, I got
    "Activity Containing only folders are not considered for activation and transport". and pending activity got activated without any error hence I released.
    https://scn.sap.com/thread/1523050
    What does mean of the message? 
    One more question is, while I did the same check for rest of DCs whether any files available locally or not, I found some of the files showing in local in each DC. So, is these local files will create any issues in future WebDynpro changes or creating / activating activities.
    Please advise the better approach to fix these issues permanently.
    Thank you,
    Ian

    if it is activated in nwdi, i think those dc are in good shape.
    if you don't know wd dc structure and what should be checked in, you just compare the failed one with the good one, then you should know what is missing

  • Complex types in fault messages - is this possible in WLS8.1?

    Hi all,
    I'm writing a standard WSDL and want to return a complex type (or at least, a customised simple type) in a fault. This has been previously discussed here: http://forums.bea.com/bea/thread.jspa?threadID=600004053&tstart=15. I've given full details below, but the short story is that if a <fault> message if a complex type, then wsdl2service fails with odd errors. If on the same WSDL/schema I change the exception type to a builtin type (like xsd:string), it all works fine.
    Google yields nothing, but if anyone has some pointers on how to do it or where to read, I'd be grateful.
    Cheers,
    -Tim West
    Details:
    I have a message and operation:
      <message name="AirlineException">
        <part name="AirlineException" element="tns:AirlineException"/>
      </message>
      <portType name="AirlinePort">
        <operation name="getCustomer">
          <input message="tns:getCustomerIn"/>
          <output message="tns:getCustomerOut"/>
          <fault name="AirlineException" message="tns:AirlineException"/>
        </operation>
      </portType>Where AirlineException is defined thus:
          <complexType name="AException">
            <sequence>
              <element name="message" type="string" nillable="true"/>
            </sequence>
          </complexType>
          <element name="AirlineException" type="tns:AException"/>(If I can get this to work, I will flesh out the complexType with some more information).
    When I attempt to generate bindings with autotype and wsdl2service, autotype works but wsdl2service fails like this:
    generate-server-binding-jar:
    [autotype] Autotyping for wsdl Deploy/airline/airline-ws-server_war/WEB-INF/airline.wsdl
    [wsdl2service] Generating web service from wsdl Deploy/airline/airline-ws-server_war/WEB-INF/airline.wsdl
    [wsdl2service] C:\...\org\jacksonwest\airline\binding\AirlineException.java:13:
           package org.jacksonwest.airline.binding.types does not exist
    [wsdl2service] private org.jacksonwest.airline.binding.types.AException info;
    [wsdl2service] ^
    [wsdl2service] C:\...\org\jacksonwest\airline\binding\AirlineException.java:15:
          package org.jacksonwest.airline.binding.types does not exist
    [wsdl2service] public AirlineException(org.jacksonwest.airline.binding.types.AException t) {
    [wsdl2service] ^
    [wsdl2service] C:\...\org\jacksonwest\airline\binding\AirlineException.java:19:
          package org.jacksonwest.airline.binding.types does not exist
    [wsdl2service] public org.jacksonwest.airline.binding.types.AException getAirlineException() {
    [wsdl2service] ^
    [wsdl2service] C:\...\org\jacksonwest\airline\binding\AirlineException.java:23:
          package org.jacksonwest.airline.binding.types does not exist
    [wsdl2service] public void setAirlineException(org.jacksonwest.airline.binding.types.AException t) {
    [wsdl2service] ^
    [wsdl2service] 4 errors
    [wsdl2service] java.io.IOException: Compiler failed executable.execNow, if I change the type of element 'AirlineException' to a built-in type like 'string', it all works fine. Also, I can use the generated 'AException' type in an <input> or <output> message - it's the combination of complexType and <fault> that causes the problem.
    My service was originally document/literal, and I've since rewritten it as rpc/literal, as I've had more success with rpc than document on Java platforms. The problem exists in both WSDL styles.
    I've read at http://e-docs.bea.com/wls/docs81/notes/new.html that WLS8.1 should be now able to handle complexTypes in faults, but for the life of me I can't do it!

    I got it :)
    The bizarre compile errors were being caused by the old version of the classes being present on the classpath that I supplied to wsdl2service. When I removed them (leaving only weblogic.jar and webservices.jar on the classpath), it worked fine first time.
    So, my guess is that the ones on the classpath (the old ones) were taking precedence over the newly-generated ones, and these were obviously not compatible!
    Cheers,
    -Tim

  • Inline Message with non english language....

    we can see the properties file in the properties file like
    javax.faces.component.UIInput.REQUIRED=error:{0}.
    so it will show the message like "textfield1 " value is required.
    but i want it shows "mytext"<--japanese value is required..
    it looks like that the error message's {0} is read the components id.
    so i need to change the code like set&#12508;&#12479;&#12531;() or get&#12508;&#12479;&#12531;()..
    its really a bad solution........
    may i let the inlin message get the component's title for the textforamt's {0} ?
    thanks
    and
    best regards
    koji

    You -can- change the builtin required-validator message, and there's a tutorial written on that that I think will be posted shortly; but you are basically providing a new bundle value for the builtin required-validator's key, so you don't have the chance to supply additional parameters to the message. So if you want to insert the title property or any other property or computed string, you need to do your own validator.
    P.S. It's not hard. At JavaOne I showed how to do one during James Gosling's keynote demo; the Creator demo was just 5 minutes or so and in that time I wrote a simple credit card number validator, deployed it and verified the results in the browser. You can see the keynote here:
    http://www.sun.com/aboutsun/media/video/javaone/gosling.html
    -- Tor
    http://blogs.sun.com/tor

  • Manually refreshing TGT leads to "Message stream modified" error

    We wish to use Kerberos to implement application authentication without needing username/password. We have code which gets the TGT and can get other tickets from that, and those tickets can successfully be used with LDAP to make queries. However, the TGT will expire after 10 hours, unless (for example) the lockscreen is used to supply a username/password, at which point the TGT is renewed.
    We understand that it should be possible to renew the TGT from the application, so that long-running processes do not require another login. The ticket's metadata says it is renewable, and we have set options to say we want to do this. We get hold of the ticket and do refresh(), and this attempts to renew the Credentials. However, the attempt fails with the following exception:
    javax.security.auth.RefreshFailedException: Failed to renew Kerberos Ticket for client [email protected] and server krbtgt/[email protected] - Message stream modified (41)
    Having traced the executing code down through the debugger, it goes down through KerberosTicket.refresh(), Credentials.renew(), is constructing a new EncryptedData and does Cipher.getInstance() with transformation "DES/CBC/NoPadding". This gets down to a Provider, which raises the exception.
    We have checked that we only have one matched pair for serviceprincipalname.
    So the questions are: (a) should it be possible to refresh the TGT in this way, or is it simply impossible to refresh it without a username and password?; (b) if it should be possible, what is the likely cause of the exception?
    A debug trace of an attempt looks like:
    H:\support\users\paulw\Workspace\kerberos\bin>java -Dsun.security.krb5.debug=true -Djava.security.krb5.realm=NMS.DEV.PS.GE.COM -Djava.security.krb5.kd
    c=UKCBGDC01DFPS -Djava.security.auth.login.config=jaas.conf JaasAcn
    KinitOptions cache name is C:\Documents and Settings\paulw\krb5cc_paulwAcquire default native Credentials
    Obtained TGT from LSA: Credentials:
    [email protected]
    server=krbtgt/[email protected]
    authTime=20090127152629Z
    startTime=20090127152629Z
    endTime=20090128012629Z
    renewTill=20090203152629Z
    flags: FORWARDABLE;RENEWABLE;INITIAL;PRE-AUTHENT
    EType (int): 23
    Authentication succeeded!
    [email protected]
    Start time = Tue Jan 27 15:26:29 GMT 2009, Expires = Wed Jan 28 01:26:29 GMT 2009, isCurrent = true, isInitial=true, [email protected].
    GE.COM, ServerPrincipal=krbtgt/[email protected]
    Using builtin default etypes for default_tgs_enctypes
    default etypes for default_tgs_enctypes: 3 1 23 16 17.
    CksumType: sun.security.krb5.internal.crypto.RsaMd5CksumType
    EType: sun.security.krb5.internal.crypto.ArcFourHmacEType
    KrbKdcReq send: kdc=UKCBGDC01DFPS UDP:88, timeout=30000, number of retries =3, #bytes=1799
    KDCCommunication: kdc=UKCBGDC01DFPS UDP:88, timeout=30000,Attempt =1, #bytes=1799
    KrbKdcReq send: #bytes read=106
    KrbKdcReq send: #bytes read=106
    KDCRep: init() encoding tag is 126 req type is 13
    KRBError:sTime is Tue Jan 27 16:00:42 GMT 2009 1233072042000
    suSec is 717480
    error code is 52
    error Message is Response too big for UDP, retry with TCP
    realm is NMS.DEV.PS.GE.COM
    sname is krbtgt/NMS.DEV.PS.GE.COM
    msgType is 30
    KrbKdcReq send: kdc=UKCBGDC01DFPS TCP:88, timeout=30000, number of retries =3, #bytes=1799
    DEBUG: TCPClient reading 1783 bytes
    KrbKdcReq send: #bytes read=1783
    KrbKdcReq send: #bytes read=1783
    EType: sun.security.krb5.internal.crypto.ArcFourHmacETypeerr: javax.security.auth.RefreshFailedException: Failed to renew Kerberos Ticket for client [email protected] and server krbtgt/[email protected] - Message stream modified (41)
    The problem is reproducible with a simple java client and has been reproduced on two machines within the corporate network using different kdc's. It is also reproducible on a customers site where the ticket expiry is 1 hour.
    thanks
    paul

    If it helps.. the client code and config file.
    If someone has a working system and could confirm whether the general principle here is correct, that would be much appreciated.
    thanks
    paul
    java -Dsun.security.krb5.debug=true -Djava.security.krb5.realm=<realm-name> -Djava.security.krb5.kdc=<kdc-name> -Djava.security.auth.login.config=jaas.conf JaasAcn
    * @(#)JaasAcn.java
    * Copyright 2001-2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or
    ...snip
    * intended for use in the design, construction, operation or
    * maintenance of any nuclear facility.
    import java.util.*;
    import javax.security.auth.kerberos.*;
    import javax.security.auth.*;
    import javax.security.auth.login.*;
    import com.sun.security.auth.callback.TextCallbackHandler;
    import java.security.*;
    import javax.security.auth.Subject;
    * This JaasAcn application attempts to authenticate a user
    * and reports whether or not the authentication was successful.
    public class JaasAcn {
         public static void main(String[] args) {
              // Obtain a LoginContext, needed for authentication. Tell it
              // to use the LoginModule implementation specified by the
              // entry named "JaasSample" in the JAAS login configuration
              // file and to also use the specified CallbackHandler.
              LoginContext lc = null;
              try {
                   lc = new LoginContext("JaasSample", new TextCallbackHandler());
              } catch (LoginException le) {
                   System.err.println("Cannot create LoginContext. "
                             + le.getMessage());
                   System.exit(-1);
              } catch (SecurityException se) {
                   System.err.println("Cannot create LoginContext. "
                             + se.getMessage());
                   System.exit(-1);
              System.out.println("Time is now " +new Date());
              try {
                   // attempt authentication
                   lc.login();
              } catch (LoginException le) {
                   System.err.println("Authentication failed:");
                   System.err.println("  " + le.getMessage());
                   System.exit(-1);
              System.out.println("Authentication succeeded!");
              Subject mSubject = lc.getSubject();
              Iterator li = mSubject.getPrincipals().iterator();
              // Should only have one Principal
              if ( li.hasNext() ) {
                   Principal lPrincipal = (Principal) li.next();
                   System.out.println(lPrincipal.toString());
              li = mSubject.getPrivateCredentials().iterator();
              if ( li.hasNext() ) {
                   Object lObject = (Object) li.next();
                   if ( lObject instanceof KerberosTicket ) {
                        KerberosTicket lKerberosTicket = (KerberosTicket) lObject;
                        System.out.println(
                                  "Start time=" + lKerberosTicket.getStartTime() +
                                  ", Expires=" + lKerberosTicket.getEndTime() +
                                  ", RenewUntil=" + lKerberosTicket.getRenewTill() +
                                  ", isCurrent=" + lKerberosTicket.isCurrent() +
                                  ", isRenewable=" + lKerberosTicket.isRenewable() +
                                  ", isInitial=" + lKerberosTicket.isInitial() +
                                  ", ClientPrincipal=" + lKerberosTicket.getClient().toString() +
                                  ", ServerPrincipal=" + lKerberosTicket.getServer().toString());            
                        try {
                             lKerberosTicket.refresh();
                        catch ( RefreshFailedException e )
                             System.err.println("err: " + e);
    /** Login Configuration for the JaasAcn and
    ** JaasAzn Applications
       [email protected]
       doNotPrompt=true
       useKeyTab=true
    JaasSample {
       com.sun.security.auth.module.Krb5LoginModule required
       useTicketCache=true
       renewTGT=true
       debug=true;
    };

  • PLSQL_TABLE Builtin

    I've just encountered this builtin in a program that is generated from Designer6i.
    I'm getting error messages.
    Where can I find documentation on this
    builtin?
    Can't find anything in PL/SQL docs or
    Forms docs.
    Help?
    Haakon
    null

    There are some rather misleading statements about varrays in the www.java2s.com document, e.g. +"Elements in a varray can only be modified as a whole, not individually"+ and +"You can change the size of a varray later."+ Then again, nobody in their right mind would use a varray anyway.

  • "no sites defined" message ...but there are!

    I'm hoping you can please help me.
    I've been having a few management problems lately and this is
    only the latest installment which is mostly a reoccurrence of
    earlier problems.
    I was trying to attach a template and encountered this error
    message.
    {ok, this thing isn't accepting any of my screenshots...
    sorry}
    "Dreamweaver stores templates in the root folder of a site,
    but there are no sites defined.
    Please add a site."
    As you can see below, when I click on "Manage Sites" I do
    have 2 sites defined and my index page, for one, is finding it ok
    for an earlier attachment.
    What's going on here?
    Thanks for your help,
    hank hauffe
    houston

    I'm afraid I'm going to expose my ignorance here but I
    exported this informaiton from Manage Sites:
    Marion's Ledge site:
    <?xml version="1.0" encoding="utf-8" ?>
    <site>
    <localinfo sitename="Marion's Ledge" ftporrdsserver="TRUE"
    refreshlocal="TRUE" autouploadfiles="TRUE" maintainsyncinfo="TRUE"
    rewritedocrellinks="FALSE" cache="TRUE" httpaddress="
    http://" relativeTo="DOCUMENT"
    caseSensitiveLinks="FALSE" curserver="webserver"/>
    <remoteinfo accesstype="ftp" host="ftp.marionsledge.org"
    remoteroot="/var/www/html/" usefirewall="FALSE" usepasv="TRUE"
    useSFTP="FALSE" useftpoptimization="TRUE"
    usealternaterename="FALSE" pathNameCharacterSet="iso-8859-1"/>
    <designnotes usedesignnotes="TRUE"
    sharedesignnotes="FALSE"/>
    <sitemap pagesperrow="200" columnwidth="125"
    showdependentfiles="FALSE" showpagetitles="FALSE"
    showhiddenfiles="FALSE"/>
    <fileviewcolumns sharecolumns="TRUE">
    <column name="Local Files" align="left" show="TRUE"
    share="FALSE" builtin="TRUE" localwidth="180" remotewidth="180"
    />
    <column name="Notes" align="center" show="FALSE"
    share="FALSE" builtin="TRUE" localwidth="56" remotewidth="56" />
    <column name="Size" align="right" show="TRUE"
    share="FALSE" builtin="TRUE" localwidth="-2" remotewidth="-2" />
    <column name="Type" align="left" show="TRUE"
    share="FALSE" builtin="TRUE" localwidth="80" remotewidth="80" />
    <column name="Modified" align="left" show="TRUE"
    share="FALSE" builtin="TRUE" localwidth="122" remotewidth="122"
    />
    <column name="Checked Out By" align="left" show="FALSE"
    share="FALSE" builtin="TRUE" localwidth="-1" remotewidth="-1" />
    </fileviewcolumns>
    <appserverinfo servermodel="" urlprefix="
    http://ftp/marionsledge.org/domains/marionsledge.org/html/"
    connectionsmigrated="TRUE" serverobjectsversion="1"
    defaultdoctype="HTML" accesstype="ftp" host="ftp.marionsledge.org"
    remoteroot="/var/www/html/" usefirewall="FALSE" usepasv="TRUE"
    useSFTP="FALSE" useftpoptimization="TRUE"
    usealternaterename="FALSE" testsvrbinaccesstype="ftp"
    testsvrbinhost="ftp.marionsledge.org"
    testsvrbinremoteroot="/var/www/html/" usefirewall="FALSE"
    usepasv="TRUE" useSFTP="FALSE" useftpoptimization="TRUE"
    usealternaterename="FALSE" pathNameCharacterSet="iso-8859-1"
    testsvrbinaccesstype="none"/>
    <cloaking enabled="TRUE" patterns="FALSE">
    <cloakedpattern pattern=".png"/>
    <cloakedpattern pattern=".fla"/>
    </cloaking>
    <contributorintegration enabled="FALSE"/>
    </site>
    Second Cup Swing site:
    <?xml version="1.0" encoding="utf-8" ?>
    <site>
    <localinfo sitename="Second Cup Swing"
    ftporrdsserver="TRUE" refreshlocal="TRUE" autouploadfiles="TRUE"
    maintainsyncinfo="TRUE" rewritedocrellinks="FALSE" cache="TRUE"
    httpaddress="
    http://" relativeTo="DOCUMENT"
    caseSensitiveLinks="FALSE" curserver="webserver"/>
    <remoteinfo accesstype="ftp" host="ftp.secondcupswing.com"
    remoteroot="domains/secondcupswing.com/html/" usefirewall="FALSE"
    usepasv="TRUE" useSFTP="FALSE" useftpoptimization="TRUE"
    usealternaterename="FALSE" pathNameCharacterSet="iso-8859-1"/>
    <designnotes usedesignnotes="TRUE"
    sharedesignnotes="FALSE"/>
    <sitemap pagesperrow="200" columnwidth="125"
    showdependentfiles="FALSE" showpagetitles="FALSE"
    showhiddenfiles="FALSE"/>
    <fileviewcolumns sharecolumns="TRUE">
    <column name="Local Files" align="left" show="TRUE"
    share="FALSE" builtin="TRUE" localwidth="180" remotewidth="180"
    />
    <column name="Notes" align="center" show="FALSE"
    share="FALSE" builtin="TRUE" localwidth="56" remotewidth="56" />
    <column name="Size" align="right" show="TRUE"
    share="FALSE" builtin="TRUE" localwidth="-2" remotewidth="-2" />
    <column name="Type" align="left" show="TRUE"
    share="FALSE" builtin="TRUE" localwidth="80" remotewidth="80" />
    <column name="Modified" align="left" show="TRUE"
    share="FALSE" builtin="TRUE" localwidth="122" remotewidth="122"
    />
    <column name="Checked Out By" align="left" show="FALSE"
    share="FALSE" builtin="TRUE" localwidth="-1" remotewidth="-1" />
    </fileviewcolumns>
    <appserverinfo servermodel="" urlprefix="
    http://ftp.secondcupswing.com/domains/secondcupswing.com/html/"
    connectionsmigrated="FALSE" serverobjectsversion="1"
    defaultdoctype="HTML" accesstype="ftp"
    host="ftp.secondcupswing.com"
    remoteroot="domains/secondcupswing.com/html/" usefirewall="FALSE"
    usepasv="TRUE" useSFTP="FALSE" useftpoptimization="TRUE"
    usealternaterename="FALSE" testsvrbinaccesstype="ftp"
    testsvrbinhost="ftp.secondcupswing.com"
    testsvrbinremoteroot="domains/secondcupswing.com/html/"
    usefirewall="FALSE" usepasv="TRUE" useSFTP="FALSE"
    useftpoptimization="TRUE" usealternaterename="FALSE"
    pathNameCharacterSet="iso-8859-1" testsvrbinaccesstype="none"/>
    <cloaking enabled="TRUE" patterns="FALSE">
    <cloakedpattern pattern=".png"/>
    <cloakedpattern pattern=".fla"/>
    </cloaking>
    <contributorintegration enabled="FALSE"/>
    </site>
    Maybe this is tied into the same problem but in my File
    window I see the ftp for ML & ScS but I no longer see distinct
    selections to see my local files for the two sites. The dropdown
    menu gives me access to my hard disk and then I have find them in
    the expandable directory.
    Thanks for trying to help,
    -hank

  • Best way to call web service from Message Driven Bean

    I'm q'ing msgs up and would like to use a message driven bean to forward them to
    an external web service. Weblogic workshop does not seem to support web service
    controls in an EJB project. Any suggestions?
    Thanks,
    Paul

    Paul,
    A non-trivial alternative, since you have the WSDL, would be to forget about trying
    to use generated client code and just use JAX-RPC dynamic invocation instead.
    That's how I call external web services from within an EJB in situations in which
    generated client code cannot be incorporated prior to deployment. Minimally all
    that is required is the WSDL and the service name, port name, and operation name,
    although if non-builtin parameter types are used then you will have to manipulate
    the service's type mapping registry.
    Mark
    "Paul" <[email protected]> wrote:
    >
    I've taken our wsdl and generated a web service in Workshop 8.1 using
    XMLBeans.
    This produces a web page that contains a link"Java Proxy" for downloading
    generated
    client code. I assume this is the same as clientgen. It's interesting
    that
    it does not
    use XMLBeans like the web service that generated it. It uses a different
    serialization
    method.
    I've used this generated code to call the web service. Although the
    client seems
    to run
    successfully to completion, I get the following error in the weblogic
    server console:
    <Sep 29, 2003 7:46:24 AM EDT> <Error> <WLW> <000000> <Failure=com.bea.wlw.runtim
    e.core.request.ResponseValidationException: java.lang.RuntimeException:
    Protocol
    'http-soap' not available on this operation. [ServiceException]>
    <Sep 29, 2003 7:46:24 AM EDT> <Warning> <WLW> <000000> <Returning HTTP
    500 due
    t
    o SOAP fault occurring on DispFile=pjm.srcm.webservices.face.Receptor>
    Frustrating...
    Bruce Stephens <[email protected]> wrote:
    Hi Paul,
    Could you not first use clientgen on the external webservice, then take
    the stubs it created, then add these to your code along with the
    onMessage(Message msg) and roll it into the MBean?
    We don't have exactly that example, but you might take a look at this
    one to get some ideas:
    http://webservice.bea.com/message.zip
    Hope this helps,
    Bruce
    Paul wrote:
    Bruce,
    Don't think this will work for us. We are receiving data internallythrough
    a JMS queue. We need to pull it off the queue (MDB), massage it alittle and
    send it to an external web service. The link you sent me was howto implement
    a web service with JMS.
    I started out by trying to use the Web Service and JMS controls butit doesn't
    seem like I can use a JMS control because that requires a conversationID,
    which we don't have because nothing is comming in through a web services.
    Paul
    Bruce Stephens <[email protected]> wrote:
    Hi Paul,
    There is a chapter in the docs on this. See if this helps,
    http://edocs.bea.com/wls/docs81/webserv/jms.html#1067060
    Thanks,
    Bruce
    Paul wrote:
    I'm q'ing msgs up and would like to use a message driven bean to
    forward
    them to
    an external web service. Weblogic workshop does not seem to supportweb service
    controls in an EJB project. Any suggestions?
    Thanks,
    Paul

  • Please elaborate on localized error messages

    hi;
    i would appreciate it if someone can ellaborate on the localized messages subject (localized and customized - not the builtin one of the RI).
    i see there is a <message-bundle> element in the faces config. if i put it there (with my bundle path), will the faces implementation call the setMesageBundle on the Application object? it does not seem to do that.
    any help is appreciated
    thanks in advance

    This seems to work OK for me, so it may be down to where you are placing your resource bundle. I've got mine in the root of WEB-INF/classes and the message-bundle tag in faces-config.xml just specifies the base name (i.e. without path info or .properties extension).

Maybe you are looking for

  • Adobe Acrobat 9 - Print Form

    My users are able to fill out a form and save it as a PDF onto their computers.  They can re-open it and the data they entered is visible, however when they choose to print the document, the field data does not print.  I need help!

  • When exporting, type becomes misaligned

    Hi I've been puzzling over this for a while and would appreciate any comments. I've set a catalogue using CS2 in Univers font. It has quite a few images that are reduced PDFs of other publications (mostly set in Univers). When I print to PDF or PS ev

  • Changing the colour of part of an image

    This is hopefully an easy one! I have an image in a menu here (the red 'Supagard' one) that I need to change the background of from black to the blue to match the rest of the image : link here I've had a rummage, and seen how to change colours by sel

  • Change sql Statement of VO

    JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660 how can i change the complete sql query statement of VO ??

  • Can I run airtunes through an ethernet cable?

    OK, so we discover that AirTunes is not very reliable, keeps cutting out, and is not really an appropriate part of a Hi-Fi system. If I want to have the Mac a long way from my amp, an alternative is a long audio cable. Pricey, and prone to interferen