Singleton construction error

I am getting singleton constrution error. when creating an instance of a class in JSP.
i just did A a = A.getA();
getA is static method there in A class.
Please let me know what is the cause and how to clear this error
~Aman

What error do you get ?

Similar Messages

  • Settlement of Assets under Construction - Error Message

    Dear Friends,
    In one of the Co, Codes we are using the Category FXA to settle the assets under construction and when we define the Asset No. in the Settlement Receiver, the system gives the error message " Receiver Categ. G/L is not allowed by Settlement Prof. AI for this sendor".  Message No. KD031.
    It is not understood why the system is referring to the GL when we are putting in the Asset No. as the Settlement Receiver. However, in other Company Code we are not facing this problem. What could be the issue and what do we need to check.
    Thanks for the help.
    Regards,

    Hi Raj
    posting to Asset, also posts to FI-GL i.e. the recon account.. hence, system might be asking to allow GL
    If your settl receiver is FXA, settlement will be made to that only.. Dont worry on that front
    Regards
    Ajay M

  • Database Construction Error

    I am new to Java and am having trouble figuring out why I am throwing this error when running the jar file.
    My code builds the jar file without error, but when I try to run the application from the jar file, I get the error
    in my code that reads, " Unable to open Database!". I'm assuming there is an error in the creation of
    the database and that it is null. I have tried to reconfigure the Java db in Netbeans, but have not been
    successful. Any ideas? My code is below. thanks.
    public fine() {
    // Prevent multiple instances...
    if (!obtainLock()) {
    return;
    Database database = null;
    try {
    database = new Database(SqlEngine.DERBY);
    } catch (Exception e) {
    System.out.println(e);
    JOptionPane.showMessageDialog(null, "Unable to open the database!", "Error", JOptionPane.ERROR_MESSAGE);
    MainFrame mainFrame = new MainFrame(database);
    mainFrame.show();
    }

    Sorry Abillconsl here is that code.
    public class Database {
    /** Create a local connection to a database engine.
    * @param sqlEngine is the database engine type.
    * @throws ClassNotFoundException if there is an error loading the driver.
    * @throws SQLException if there is an error connecting to the database.
    public Database(SqlEngine sqlEngine) throws ClassNotFoundException, SQLException {
    this.sqlEngine = sqlEngine;
    try {
    Class.forName(sqlEngine.getDriverName());
    } catch (Exception e) {
    throw new ClassNotFoundException(e.getMessage());
    con = DriverManager.getConnection(sqlEngine.getLocalUrl());
    /** Create a connection to a database engine.
    * @param sqlEngine is the database engine type.
    * @param url is the URL to connect to.
    * @throws ClassNotFoundException if there is an error loading the driver.
    * @throws SQLException if there is an error connecting to the database.
    public Database(SqlEngine sqlEngine, String url) throws ClassNotFoundException, SQLException {
    this.sqlEngine = sqlEngine;
    try {
    Class.forName(sqlEngine.getDriverName());
    } catch (Exception e) {
    throw new ClassNotFoundException(e.getMessage());
    con = DriverManager.getConnection(url);
    /** Close the database connection.
    * @throws SQLException if there is an error connecting to the database.
    public void close() throws SQLException {
    con.close();
    con = null;
    /** Encode a SQL qury string.
    * @param s is the string to encode.
    * @return the encoded string.
    public static String escape(String s) {
    if (s.indexOf("'") != -1 ) {
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < s.length(); i++) {
    char c = s.charAt(i);
    if (c == '\'') {
    sb.append("''");
    }else {
    sb.append(c);
    return sb.toString();
    return s;
    * Retrieve a field id from dbid table for a given field name
    * @param fieldName of the field as defined in the database
    * @return database identifier number for a field or zero if not found
    public RwInteger getDBID(RwString fieldName){
    ResultSet rs = null;
    Statement stmt = null;
    RwInteger dbid = new RwInteger(0);
    try {
    stmt = con.createStatement();
    rs = stmt.executeQuery("SELECT DBID FROM dbid WHERE FieldName = '"+fieldName.toString()+"'");
    while(rs.next()) {
    dbid = new RwInteger(rs.getInt("DBID"));
    } catch (SQLException e) {
    System.out.println("Unable to Retreive FieldID for FieldName: " + fieldName.toString());
    e.printStackTrace();
    return dbid;
    /** Retrieves a field name from dbid table for a given dbid.
    * @param dbid the database field identifier number for the field
    * @return field name as defined in the database
    public String getFieldName(int dbid){
    ResultSet rs = null;
    Statement stmt = null;
    String fieldName = ""; // field name not found.
    try {
    stmt = con.createStatement();
    rs = stmt.executeQuery("SELECT FieldName FROM dbid WHERE DBID = " + dbid);
    while(rs.next())
    fieldName = rs.getString("FieldName");
    } catch (SQLException e) {
    System.out.println("Unable to Retrieve FieldName for DBID: " + dbid);
    e.printStackTrace();
    return fieldName;
    /** Generate the friendly name for a particular field.
    * @param rwType is the field to name.
    * @return the friendly name for a specified field.
    public String friendlyName(RwType rwType) {
    return RecordType.forDbid(rwType.getFieldId())
    + "(" + (rwType.getSequenceNumber() + 1)
    + ":" + (rwType.getRecordId() + 1) + ")."
    + AbstractRecord.getFieldName(con, rwType.getFieldId());
    // Database related variables.
    public Connection con = null;
    public static SqlEngine sqlEngine = null;
    /** Unit test.
    * @param args the command line arguments
    public static void main(String[] args) {
    try {
    Database db = new Database(SqlEngine.DERBY);
    int dbid = 1605;
    String name = db.getFieldName(dbid);
    RecordType recordType = RecordType.forDbid(dbid);
    System.out.println("DBID " + dbid + " is field " + name + " in " + recordType);
    AbstractRecord record = AbstractRecord.newInstance(recordType, db.con);
    RwType rwType = record.getField(name);
    System.out.println("rwType = " + rwType);
    db.close();
    } catch (Exception e) {
    System.out.println(e);
    }

  • Error on Import/Install

    I get the following error on Install of a newly imported app:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 42, column 34: PLS-00103: Encountered the symbol &amp;quot;;&amp;quot; when expecting one of the following: * &amp;amp; | - + / at mod remainder rem =&amp;gt; .. &amp;lt;an exponent (**)&amp;gt; || ORA-06550: line 89, column 1: PLS-00103: Encountered the symbol &amp;quot;NULL&amp;quot; when expecting one of the following: end not pragma final instantiable order overriding static member construct
    Error installing application.
    Return to application.
    The app runs fine in the existing schema.
    I get the same error when trying to import into apex.oracle.com.
    I can email the export file, if need be.
    Thanks!
    Karen

    Karen,
    I examined the export. It's got some problems. Wherever it was originally exported from may not have had an AL32UT8 DAD or something else went wrong, I don't know what.
    I had to remove the following sections from the file because of the non-ASCII characters within them (both are page template creation blocks) . Also, the last line-and-a-half was missing from the end of the file (file was truncated).
    --application/shared_components/user_interface/templates/page/printer_friendly_nero
    prompt  ......Page template 40994267148473618
    begin
    declare
      c1 varchar2(32767) := null;
      c2 varchar2(32767) := null;
      c3 varchar2(32767) := null;
      l_clob clob;
      l_length number := 1;
    begin
    c1:=c1||'< html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">'||chr(10)||
    '< head>'||chr(10)||
    '#HEAD#'||chr(10)||
    '< title>#TITLE#< /title>'||chr(10)||
    '< link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_16/theme_V2_NMFS.css" type="text/css" />'||chr(10)||
    '< !--[if IE]>< link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_16/ie.css" type="text/css" />< ![endif]-->'||chr(10)||
    '< style>'||chr(10)||
    '@media print'||chr(10)||
    '{'||chr(10)||
    '.screenOnly {display:none;}'||chr(10)||
    '}'||chr(10)||
    '< /style>'||chr(10)||
    '< /head>'||chr(10)||
    '< body #ONLOAD';
    c1:=c1||'#>#FORM_OPEN#';
    c2:=c2||'#FORM_CLOSE#< /body>'||chr(10)||
    '< /html>';
    c3:=c3||'< !¿ Display PRINT and GO BACK links ¿>'||chr(10)||
    '< BR/>'||chr(10)||
    '< a href=¿javascript:history.go(-1);¿ class=¿screenOnly¿>'||chr(10)||
    '< img src=¿&IMAGE_PREFIX.prev_arrow.gif¿ align=¿absmiddle¿ hspace=¿2¿>'||chr(10)||
    ' application'||chr(10)||
    '< /a>'||chr(10)||
    ''||chr(10)||
    '< a href="javascript:window.print();" class="screenOnly">'||chr(10)||
    '< img src=¿&IMAGE_PREFIX.print02.gif¿ align=¿absmiddle¿ hspace=¿2¿>'||chr(10)||
    'Print this Page'||chr(10)||
    '< /a>'||chr(1|
    '< hr class=¿screenOnly¿/>'||chr(10)||
    '< !¿End display of PRINT and GO';
    c3:=c3||' BACK links ¿>'||chr(10)||
    ''||chr(10)||
    '< table summary="" cellpadding="0" width="100%" cellspacing="0" border="0">'||chr(10)||
    '< tr>'||chr(10)||
    '< td width="100%" vlign="top">< div class="t16messages">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#< /div>#BOX_BODY##REGION_POSITION_01##REGION_POSITION_02##REGION_POSITION_04##REGION_POSITION_05##REGION_POSITION_06##REGION_POSITION_07##REGION_POSITION_08#< /td>'||chr(10)||
    '< td valign="top">#REGION_POSITION_03#< br />< /td>';
    c3:=c3||''||chr(10)||
    '< /tr>'||chr(10)||
    '< /table>';
    wwv_flow_api.create_template(
      p_id=> 40994267148473618 + wwv_flow_api.g_id_offset,
      p_flow_id=> wwv_flow.g_flow_id,
      p_name=> 'Printer Friendly NERO',
      p_body_title=> '',
      p_header_template=> c1,
      p_box=> c3,
      p_footer_template=> c2,
      p_success_message=> '< div class="t16success">#SUCCESS_MESSAGE#< /div>',
      p_current_tab=> '',
      p_current_tab_font_attr=> '',
      p_non_current_tab=> '',
      p_non_current_tab_font_attr => '',
      p_top_current_tab=> '',
      p_top_current_tab_font_attr => '',
      p_top_non_curr_tab=> '',
      p_top_non_curr_tab_font_attr=> '',
      p_current_image_tab=> '',
      p_non_current_image_tab=> '',
      p_notification_message=> '< div class="t16notification">#MESSAGE#< /div>',
      p_navigation_bar=> '< div class="t16NavigationBar">#BAR_BODY#< /div>',
      p_navbar_entry=> '< a href="#LINK#" class="t16NavigationBar">#TEXT#< /a>',
      p_app_tab_before_tabs=>'',
      p_app_tab_current_tab=>'',
      p_app_tab_non_current_tab=>'',
      p_app_tab_after_tabs=>'',
      p_region_table_cattributes=> ' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"',
      p_theme_id  => 103,
      p_theme_class_id => 5,
      p_reference_id=> 37215628872136368,
      p_translate_this_template => 'N',
      p_template_comment => '3');
    end;
    null;
    end;
    prompt  ......Page template 43075210995059888
    begin
    declare
      c1 varchar2(32767) := null;
      c2 varchar2(32767) := null;
      c3 varchar2(32767) := null;
      l_clob clob;
      l_length number := 1;
    begin
    c1:=c1||'< html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">'||chr(10)||
    '< head>'||chr(10)||
    '#HEAD#'||chr(10)||
    '< title>#TITLE#< /title>'||chr(10)||
    '< link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_16/theme_V2_NMFS.css" type="text/css" />'||chr(10)||
    '< !--[if IE]>< link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_16/ie.css" type="text/css" />< ![endif]-->'||chr(10)||
    '< style>'||chr(10)||
    '@media print'||chr(10)||
    '{'||chr(10)||
    '.screenOnly {display:none;}'||chr(10)||
    '}'||chr(10)||
    '< /style>'||chr(10)||
    '< /head>'||chr(10)||
    '< body #ONLOAD';
    c1:=c1||'#>#FORM_OPEN#';
    c2:=c2||'#FORM_CLOSE#< /body>'||chr(10)||
    '< /html>';
    c3:=c3||'< !¿ Display PRINT and GO BACK links ¿>'||chr(10)||
    '< BR/>'||chr(10)||
    '< a href=¿javascript:history.go(-1);¿ class=¿screenOnly¿|chr(10)||
    '< img src=¿&IMAGE_PREFIX.prev_arrow.gif¿ align=¿absmiddle¿ hspace=¿2¿>'||chr(10)||
    'Return to application'||chr(10)||
    '< /a>'||chr(10)||
    ''||chr(10)||
    '< a href="javascript:window.print();" class="screenOnly">'||chr(10)||
    '< img src=¿&IMAGEFIX.print02.gif¿ align=¿absmiddle¿ hspace=¿2¿>'||chr(10)||
    'Print this Page'||chr(10)||
    '< /a>'||chr(10)||
    '< hr class=¿screenOnly¿/>'||chr(10)||
    '< !¿End display of PRINT and GO';
    c3:=c3||' BACK links ¿>'||chr(10)||
    ''||chr(10)||
    '< table summary=lpadding="0" width="100%" cellspacing="0" border="0">'||chr(10)||
    '< tr>'||chr(10)||
    '< td width="100%" valign="top">< div class="t16messages">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#< /div>#BOX_BODY##REGION_POSITION_01##REGION_POSITION_02##REGION_POSITION_04##REGION_POSITION_05##REGION_POSITION_06##REGION_POSITION_07##REGION_POSITION_08#< /td>'||chr(10)||
    '< td valign="top">#REGION_POSITION_03#< br />< /td>';
    c3:=c3||''||chr(10)||
    '< /tr>'||chr(10)||
    '< /table>';
    wwv_flow_api.create_template(
      p_id=> 43075210995059888 + wwv_flow_api.g_id_offset,
      p_flow_id=> wwv_flow.g_flow_id,
      p_name=> 'Printer Friendly NERO',
      p_body_title=> '',
      p_header_template=> c1,
      p_box=> c3,
      p_footer_template=> c2,
      p_success_message=> '< div class="t16success">#SUCCESS_MESSAGE#< /div>',
      p_current_tab=> '',
      p_current_tab_font_attr=> '',
      p_non_current_tab=> '',
      p_non_current_tab_font_attr => '',
      p_top_current_tab=> '',
      p_top_current_tab_font_attr => '',
      p_top_non_curr_tab=> '',
      p_top_non_curr_tab_font_attr=> '',
      p_current_image_tab=> '',
      p_non_current_image_tab=> '',
      p_notification_message=> '< div class="t16notification">#MESSAGE#< /div>',
      p_navigation_bar=> '< div class="t16NavigationBar">#BAR_BODY#< /div>',
      p_navbar_entry=> '< a href="#LINK#" class="t16NavigationBar">#TEXT#< /a>',
      p_app_tab_before_tabs=>'',
      p_app_tab_current_tab=>'',
      p_app_tab_non_current_tab=>'',
      p_app_tab_after_tabs=>'',
      p_region_table_cattributes=> ' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"',
      p_theme_id  => 104,
      p_theme_class_id => 5,
      p_reference_id=> 37215628872136368,
      p_translate_this_template => 'N',
      p_template_comment => '3');
    end;
    null;
    end;
    /So I was able to install the application in your workspace, less these two templates.
    The method I used was to edit the security group and application ID in the file and try to install it into one of my workspaces using SQL*Plus. The progress indicators (prompts) show where the installation fails, when it fails, e.g., at a certain page, page template, etc.. Then it's a matter of locating errant blocks in the indicated portion of the file, excising them, and repeating the process until it succeeds. When it does succeed, the next step is to upload the file and use the install wizard.
    Scott

  • Important: singleton questions...

    While I was developing a program, I found there is a question bothering me alot. It is singleton question. For example, I created an object 1. when I was implementing another object, I thought I need to use object 1, so I instiated an instance. But when I was implementing third object, I accidently create another instance of object 1. Now problem has came, I have two instance for object 1.
    What I really want is to only use one instanc of object!
    In order to avoid conquering this confusing, I come out a conclusion. I think we can use two ways to make sure there exists only one object instance in the program.
    one way is pass the object as parameter, like:
    public void getTable( Properties configSettings);
    another way is make a single class, this class will allow only one object instance exists.
    implementation:
    public class Singleton {
    private static Singleton instance;
    public Singleton getSingleton();
    public Singleton() {
    instance = null;
    public Singleton getSingleton(){
    if( instance ==0){
    return instance = new Singleton;
    Is this implementation right? It seems I missed sth?

    two things that dubwai already included in his code:
    - make sure the constructor is not public (so new instances can't be created outside the class)
    - provide a "getInstance(...)" method that will retrieve the one and only static instance...
    class Singleton
      private static Singleton instance = null;
      protected Singleton( Object param )
        // do something with param...
      public Singleton getInstance( Object param )
        if(instance == null)
          instance = new Singleton(param);
        return instance;
    }Note that this has the potential confusion that the parameter sent in getInstance() is only used the first time its called.
    It's recommended that you avoid the need for extra parameters in the singleton construction. If you only need one instance of the object then that's probably the case anyway (I can't think of a reason for params).

  • \\?\UNC\server\share - verylongpath errors out

    In Windows Explorer the UNC long path construction errors out as:
    Windows cannot access \\?\UNC\server\share
    (Error: 0x80004005)
    Background:
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
    To specify an extended-length path, use the "\\?\" prefix. For example, "\\?\D:\very long path".
    The "\\?\" prefix can also be used with paths constructed according to the universal naming convention (UNC). To specify such a path using UNC, use the "\\?\UNC\" prefix. For example, "\\?\UNC\server\share", where
    "server" is the name of the computer and "share" is the name of the shared folder.
    What am I missing here? The UNC prefix never worked for me.

    Hi,
    It is a Windows explorer restriction (MAX_PATH). Windows explorer is different than the file system for its API. If you prefix the file name with "\\?\" and call the Unicode versions of the Windows APIs, then you can use file names up to 32K characters
    in length. In other words, the \\?\ prefix is a way to enable long paths while working with the Windows file APIs. 
    If you need to use the out-of-length type file in Windows explorer, your need to make the name shorter to remove a file like this from the server itself.
    For more detailed information, you could refer to the Microsoft support answer in the thread below:
    Increase 255 Character limitation on file servers
    https://social.technet.microsoft.com/Forums/itmanagement/en-US/bad56182-5ea1-42ff-8f4d-acd0463d067e/increase-255-character-limitation-on-file-servers?forum=winserverfiles
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • OVM Manager cluster construct issue

    Hi Guys,
    I'm trying to build a demo insfrastructure for Oracle VM for SPARC with Oracle VM Manager for managment. Here is an overview of my infrastructure:
    - 2 T5220 with same configuration (2 x 32 core CPU, 32 Go RAM)
    - 1 ESX VM hosting Oracle VM Manager with Oracle Linux 5 as OS.
    ## For OVM Server for SPARC ##
    ldm -V
    Logical Domains Manager (v 3.1.1.0.5)
            Hypervisor control protocol v 1.7
            Using Hypervisor MD v 1.4
    System PROM:
            Hypervisor      v. 1.10.7.      @(#)Hypervisor 1.10.7.f 2013/08/09 19:14\015
            OpenBoot        v. 4.33.6.      @(#)OpenBoot 4.33.6.e 2014/01/14 15:19
    ## For OVM Manager ##
    Version: 3.3.1.776
    ovs-agent for SPARC version: 3.3.1-b776
    I try to built a HA environment using ovm manager. Every thing is good until I try to add server to server pool. Add the first server is OK, but it stays on error state because of a cluster construct error.
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: create_cluster to server: ovmsrv01 failed. OVMAPI_4004E Sync command failed on server: 192.168.25.250. Command: create_cluster, Server error: org.apache.xmlrpc.XmlRpcException: :(22, 'Invalid argument') 
    Caused by: com.oracle.ovm.mgr.api.exception.ServerOperationException: OVMAPI_4004E Sync command failed on server: 192.168.25.250. Command: create_cluster, Server error: org.apache.xmlrpc.XmlRpcException: :(22, 'Invalid argument') 
    The second server can't be add to the pool until the first one issue is fixed! I'm confuse. Have I use good version for each package? I'm looking for a compatibility matrix between Manager, osv agent and ovm server for sparc, If any one can redirect me to a relevant web page ou doc!!!
    Somebody can point me to a solution?
    Thank a lot!

    HI All,
    Here is the complete fail message when trying to add a node to server's pool:
    10:36:07,369: Starting operation 'Server Cluster Construct' on object '[ServerDbImpl] e7:e6:aa:63:ee:85:c2:3d:d6:80:b3:33:28:aa:1a:d3 (ovmsrv02)'
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: create_cluster to server: ovmsrv02 failed. OVMAPI_4004E Sync command failed on server: 192.168.25.251. Command: create_cluster,
    Server error: org.apache.xmlrpc.XmlRpcException: :(22, 'Invalid argument')

  • Returning a HashMap K, M from a method of a class typed M

    So, this is what I have. I have a class parameterized for a bean type of a collection it receives, and in a method of the class, I need (would like) to return a HashMap typed as <K, M> as in:
    public class MyClass<M> {
       private Collection<M> beanList;
       public HashMap<K, M> getMap(  /* what do I do here */ );
    }I tried to cheat from looking at the Collections.sort method, knowing it uses the List type in its return type as in:
    public static <T extends Comparable<? super T>> void sort(List<T> list)So, I am trying:
    public HashMap<K, M> getMap(Class<K> keyType)But, it is telling me I need to create class K.
    So... how does the Collections.sort method get away with it and I can't????
    I suppose I could write the method as:
    public HashMap<Object, M> getMap()but became somewhat challenged by my first guess.
    Any ideas... or just go with the HashMap with the untyped key?

    ejp wrote:
    provided K is inferable from the arguments.Or from the assignment context:
    Set<String> empty = Collections.emptySet();
    Otherwise you have to parameterise the class on <K, M>.You may also specifically provide K when you use the method if the context doesn't give the compiler enough information or if you want to override it.
    Example:
    Set<Object> singleton1 = Collections.singleton("Hello"); //error
    Set<Object> singleton2 = Collections.<Object>singleton("Hello"); //fineEdited by: endasil on 14-May-2010 4:13 PM

  • Application Runs Under Windows 8.1 But Not Under Windows XP (I Know XP Is Deprecated)

    The problem is with the obtuse error message put out by Windows's program loader. It reads, in part, "..is not a valid Win32 application." The application runs everywhere except on Windows XP. Looking for root cause of the problem. It's a very
    simple application. Only a few lines of code. 
    C:\Packaged-Software\32-BIT\Reboot.exe is not a valid Win32 application.
    Proposed nature of the problem:
    1. The file was downloaded from a website but the download was incomplete.
    2. The full file system filename path contains bad characters such blank space.
    3. Visual Studio constructed an application that won't run anywhere much less on XP.
    4. The supporting libraries are not properly installed (e.g. .NET Framework4, and VCREDIST).
    Retorts:
    1. The file wasn't downloaded from a website and is intact.
    2. The filename path doesn't contain any spaces.
    3. The application runs under Windows 8.1.  Also on Windows 7.
    4. The supporting libraries are properly installed.
    So, what's the problem?  One surely will not discover the root cause from "not a valid application."
    Body must be 4 to 60000 characters long.  I had put the code here.  It isn't 60000 character long.  But it validated as if there are more than 60000 characters.  Sorry for the incomplete submission due to website construction error.
    MARK D ROCKMAN

    Hi F7H2fw,
    How did you develop the application ?
    Here is a similar symptom and this may explain the issue somehow:
    Setup.exe is not a valid Win32 application
    http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx
    I suspect there is a compatibility issue here .
    Considering this is more likely a developing issue .It is recommended to ask for help from our MSDN Forum .They are more familiar with the developing issue .If it is possible ,please attach the code in that thread .Thanks for your understanding and cooperation.
    MSDN Forum
    https://social.msdn.microsoft.com/Forums/en-US/home
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Configuring Oracle Application Server to use a user friendly url

    Hi All,
    I am having trouble configuring the apache httpd.conf file within an applicaton server to be able to use user-friendly urls for the infrastructure identity management tools server. I also need this for security reasons as well as hardware reasons - loadbalancing.
    At the moment I have a standard setup, whereby the sso application server is using port 7777. I would like the user not to enter the port, but to enter just a standard url, like http://login.<company>.com.au, so that if the user needs to modify oid using the oiddas web application, they can enter something like http://login.<company>.com.au/oiddas/ rather than http://<machine host name>:7777/oiddas/. This would also be used by portal for sso logins.
    From the standard installation, Apache was configured as follows:
    Port 7777
    Listen 7777
    ServerName <machine host name>
    DocumentRoot <root document folder>
    Now reading the documentation from the Oracle Application Server Installation notes for the Http Server, they document how to do this (in the loadbalancer section - this will eventually be used in the hardware setup):
    Port 80
    Listen 7777
    Listen 80
    # Virtual Hosts
    # This section is mandatory for URLs that are generated by
    # the PL/SQL packages of the Oracle Portal and various other components
    # These entries dictate that the server should listen on port
    # 7777, but will assert that it is using port 80, so that
    # self-referential URLs generated specify www.oracle.com:80
    # This will create URLs that are valid for the browser since
    # the browser does not directly see the host server.oracle.com.
    NameVirtualHost <machine ip>:7777
    <VirtualHost <nameofmachine>:7777>
    ServerName login.<company>.com.au
    Port 80
    </VirtualHost>
    # Since the previous virtual host entry will cause all links
    # generated by the Oracle Portal to use port 80, the server.company.com
    # server needs to listen on 80 as well since the Parallel Page
    # Engine will make connection requests to Port 80 to request the
    # portlets.
    NameVirtualHost <machine ip>:80
    <VirtualHost <nameofmachine>:80>
    ServerName login.<company>.com.au
    Port 80
    <VirtualHost>
    Note that I used slightly different names for the url's rather than the oracle names www.oracle.com and server.oracle.com
    Now after applying this, I noticed not only could I not go to the oiddas from the original machine name, but also couldnt go there from the new machine name.
    Also I was not even able to go to the standard index page whereby you can go to the enterprise manager for the application server, from either names.
    The following urls provide me with "The Page Cannot Be Displayed" error message:
    http://login.<company>.com.au:7777/
    http://<nameofmachine>:7777/
    The following urls provide me with "Page Under Construction" error message:
    http://login.<company>.com.au/
    http://<nameofmachine>/
    Could someone please tell me why this is the case, considering I am using the installation procedures Oracle has published within the Oracle Http Server Admistrators Guide (http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14007/netconf.htm#sthref379).
    Cheers
    Rodney

    Hi Rondey,
    Ik think that I can see your probleem.
    Just change the following line at your httpd.conf, then restart the component.
    First of all if the port is installed with nr. 7777. then the listen process will be on port 7778
    the second thing is just try to do the following steps
    ((Port 80 to Port 7777)))
    Listen 7778
    %%%% In loadbalancer section %%%%%%
    just add the following lines
    Listen 80
    Listen 8103
    Listen 8102
    NameVirtualHost *
    NameVirtualHost *:8103 or 80
    If you want to use this ports (8103 or 8102) for other site (url), then
    <VirtualHost *:80>
    ServerName <machine ip> or (host name)
    Hear from U,
    Regards,
    Hamdy

  • How to properly handle Exception thrown in a .tag file?

    I've got a .jsp file that makes use of some custom tags, each defined in their own .tag file, and located in WEB-INF/tags. I'm having a lot of trouble with the scenario of cleanly dealing with an exception raised by scriptlets in either a .jsp file, and a .tag file. I'm using both Java and Tomcat 6....
    Originally, I wanted to use .tag files in order to componentize common elements that were present in .jsp pages, as well as move ugly scriptlets out of .jsp pages, and isolate them in tag files with their associated page elements.
    Things started getting hairy when I started exploring what happens when an exception is thrown (bought not handled) in a scriptlet in a .tag file. Basically, my app is a servlet that forwards the user to various .jsp pages based on given request parameters. The forwarding to the relevant .jsp page is done by calls to the following method:
    servletContext.getRequestDispatcher("/" + pageName).forward(request, response);
    Where 'pageName' is a String with the name of the .jsp I want to go to...
    Calls to this method are enclosed in a try block, as it throws both a ServletException, and IOException...
    When either my .jsp, or .tag throw an exception in a scriptlet, the exception is wrapped in a JSPException, which is then wrapped in a ServletException.
    I can catch this exception in my servlet... but then what? I want to forward to an error page, however, in the catch block, I can't forward in response to this exception, as that results in an IllegalStateException, as the response has already been committed. So what do I do? How do I get from this point, to my "error.jsp" page?
    It was suggested to me that I use the <% @ page isErrorPage="true" %> directive in my error.jsp,
    and the in my real .jsp, use <%page errorPage="/error.jsp" %>.
    This works great when the exception is thrown in my .jsp.... But when the exception is thrown in the .tag file... not so much...
    My .jsp page was rendered up until the point where the <my:mytag/> (the tag with the offending raised exception) was encountered. Then, instead of forwarding to the error page when the error in the tag is encountered, the error page is rendered as the CONTENT of of my TAG. The rest of the .jsp is then NEVER rendered. I checked the page source, and there is no markup from the original .jsp that lay below the my tag. So this doesn't work at all. I don't want to render the error page WITHIN the half of the .jsp that did render... Why doesn't it take me away from the .jsp with the offending tag altogether and bring me to the error.jsp?
    Then it was suggested to me that I get rid of those page directives, and instead define error handling in the web.xml using the following construct:
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/error</location>
    </error-page>
    <error-page>
    <error-code>404</error-code>
    <location>/error</location>
    </error-page>
    For this, I created a new servlet called ErrorServlet, and mapped it to /error
    Now I could mangle the end of the URL, which causes a 404, and I get redirected to the ErrorServlet. Yay.
    However, exceptions being thrown in either a .jsp or .tag still don't direct me to the ErrorServlet. Apparently this error handling mechanism doesn't work for .jsp pages reached via servletContext.getRequestDispatcher("/" + pageName).forward(request, response) ????
    So I'm just at a total loss now. I know the short answer is "don't throw exceptions in a .jsp or .tag" but frankly, that seems a pretty weak answer that doesn't really address my problem... I mean, it would really be nice to have some kind of exception handler for runtime exceptions thrown in a scriptlet in .tag file, that allows me to forward to a page with detailed stacktrace output, etc, if anything for debugging purposes during development...
    If anyone has a few cents to spare on this, I'd be ever so grateful..
    Thanks!!
    Jeff

    What causes the exception?
    What sort of exception are you raising from the tag files?
    Have you got an example of a tag file that you can share, and a jsp that invokes it so people can duplicate the issue without thinking too much / spending too much time?
    My first instinct would be that the buffer is being flushed, and response committed before your Exception is raised.
    What you describe is pretty much standard functionality for Tomcat in such cases.

  • How do I report a security problem to Firefox?

    Here's the problem: <br />
    Wednesday morning my Mac at home got infected by malware which I believe is usually called the "Google redirect virus". My Mac at home has been upgraded to OSX 10.6.7 and I believe I was using Firefox 3.6.13 (it automatically upgraded tonight). I haven't been able to find any useful information on line about this malware. <br />
    The behavior after infection was that every time I tried to use Google my request would get redirected. If I entered www.google.com in the address bar, the URL would get changed to www.google.com/FuneralHomes/<something> and the browser would try to go there and a "Under Construction" error message or a no-such-page message would be returned. This started happening after I did a Google search and was checking various links in Firefox, but once it started in Firefox I got the same behavior in Safari even without using Safari to look at any links. And it continued to happen in Safari even after I did a "Reset Safari..." <br />
    When I got infected I was using a non-adminstrator account and I was not asked to download anything nor was I prompted for a password. <br />
    I searched on "Google redirect Mac virus" using my (so far) untouched work computer and found several suggestions but no solutions. Apparently this is a PC problem that's been around a few years, but there were some Mac reports from last year. So last night I checked the DNS addresses in my
    Network preferences, looked at /etc/hosts, and removed the only plug-in from the Library:Internet Plug-ins of the infected account, even though it was a Picasa plug-in that predated this infection. None of those seemed to be the problem. I also scanned my disk with an up-to-date "Norton AntiVirus" which
    I got from work some time ago, but it found no viruses. <br />
    What really puzzles me is that the problem gradually went away while I was checking it last night. At first, when I entered www.google.com the browser would still show the redirected address in the prompt that comes up and it had the Legacy.com logo on the left instead of the Google one but it would actually go to the Google website (unless I'm being spoofed). Then at a later attempt, only the wrong logo persisted. Then at an even later attempt the logo got fixed and everything looked fine and appeared to behave correctly. <br />
    Frankly, that's a little scary. It's as if a really smart trojan got
    installed and was covering its tracks while it set up a man-in-the-middle attack (please advise if I'm misusing the jargon). If I'm being too paranoid, great, but I'd still like to know how such behavior could be induced on my machine just by linking to a website. Can anyone help?
    ''moderator- fixed the leading space formatting errors in this posting''

    Thanks, the-edmeister, but the only relevant post I found was from GB Colburn on bleepingcomputer.com, wherein he reported a similar problem about a year ago. I've found a few similar threads in the last year or so (by searching "Google redirect mac virus" in Google) but they are all about the same: someone reports the problem, responders have various random suggestions, the problem seems to go away by itself (at least sometimes), and there's nothing conclusive either good or bad.
    Without myself being as knowledgeable as GB Colburn, it doesn't look to me like the problem is in the DNS system or the router. It acts more like some malware in the automatic completion in the address bar of the browser or maybe in the history system, but I can't figure out how an infection in one browser could affect another browser. And I *really* can't figure out how it could be self-healing.
    It's really frustrating that none of the major parties involved in this—Firefox, Google, Safari (Apple), Verizon (my internet provider)—even have a process for reporting a security issue. At least not one that I, an ordinary semi-naive user, can find.

  • Can't access a website at all...

    Hi.
    First - I was not sure where to post this, since the posting website I would've used for internet issues was the one I cannot access... so....
    can anyone fully load http://www.dslreports.com/ ?
    If so, please report the time you were able to load it, and, if you feel comfortable, your Internet Service Provider (ISP), and you general location (State/Province and country).
    Example: I just tried to load the dslreports.com/ website at 11:59 PM. It didn't work. I'm using Comcast HSI, and I live in California, USA.
    thanks! I haven't been able to use the site at all today, because I kept getting a "The connection has timed out" error message in Firefox (2.0.0.14), and my connection hasn't been doing anything strange at all. I even checked with my internet service provider's tech support for any reported issues/ISP detected issues for my connection - they found no issues for my "Market". I've never had issues accessing this website, and the site is a big one, so you would assume that they have good security/site attack recovery time.
    thanks again!

    *First try I got this message!*
    +Fri Apr 18 16:45:25 EDT 2008+
    ============================
    +dslreports.com is down at the moment+
    +looks like we'll be down for about a day+
    +unfortunately in order to reconfigure properly+
    +so that the site availability is 100% in future+
    +some hardware (thats things! and hands!) needs+
    +to get shuffled around, and we're hoping to+
    +do that on saturday.+
    *Second time I got this one!*
    +The page you requested is currently unavailable due a temporary construction error.+
    +You may press BACK and try again.+
    +If the condition continues, please try later when we have corrected the problem.+
    +Resources (if the problem is isolated):+
    +site help forum+
    +In the event of an extended outage all dslreports.com urls will temporarily return a system status page that we will update as we can.+
    *With Safari and AT&T*

  • Oracle AQ JMS Map messages Permissions

    Hello,
    I am trying to use a JMS Map message in a trigger but cannot get it to work. I have created i_aquser and given the following
    privileges (after looking at the forums) however when I tried to compile my trigger, I get the following error
    message := sys.aq$_jms_map_message.construct;
    ERROR at line 4:
    ORA-06550: line 4, column 40:
    PLS-00302: component 'CONSTRUCT' must be declared
    ORA-06550: line 4, column 5:
    PL/SQL: Statement ignored
    -- PLSQL
    GRANT CONNECT TO i_aquser;
    GRANT DBA TO i_aquser;
    GRANT AQ_ADMINISTRATOR_ROLE TO i_aquser;
    GRANT EXECUTE ON SYS.DBMS_AQADM TO i_aquser;
    GRANT EXECUTE ON SYS.DBMS_AQ TO i_aquser;
    GRANT EXECUTE ON SYS.DBMS_AQIN TO i_aquser;
    GRANT EXECUTE ON SYS.DBMS_AQJMS TO i_aquser;
    GRANT EXECUTE ON SYS.DBMS_AQJMS_INTERNAL TO i_aquser;
    GRANT EXECUTE ON SYS.AQ$_JMS_HEADER TO i_aquser;
    GRANT EXECUTE ON SYS.SYS.AQ$_JMS_MAP_MESSAGE TO i_aquser;
    --Connect i_aquser/i_aquser
    -- Trigger code Removed
    DECLARE
    message sys.aq$_jms_map_message;
    BEGIN
    message := sys.aq$_jms_map_message.construct;
    -- Remaining stuff
    COMMIT;
    END;
    What other permissions are required? Any help / suggestion is welcome.
    Thanks and Regards
    Amit
    PS: Apologies for duplicate posting of this thread in two discussion forums

    Is this against a 9i database or 10g database?

  • Replace with CSS?

    Hi all,
    I have some text with HTML markup saved in a DB that I'd like to output. The saved text includes some <p> tags, but when outputting, I'd like to apply a style, so I used #replaceNoCase(MessageBody,"<p>","<p class="Copy">","all")#, but I get an invalid CFML construct error. I'm sure it's because of the quotes around "Copy".  Is there a way around this?
    Thanks a lot!

    Thanks, Dan.  I appreciate it very much!

Maybe you are looking for

  • Sharepoint 2013 :Content Search Web part Property Filter By Query String - How to use ?

    Hi, I would like to filter data that is displayed in content search web part  by using  URL. I tried to use Value of a parameter from a URL - Query String.Parameter1 But have no idea how to use it. Can someone help me pleas ?

  • My Mac Pro will not go to Sleep

    My Mac Pro will not go to Sleep. I have it set to 15 Mins in Energy Saver. After 15 mins no sleep.

  • Dynamic List for IN Operator

    I'm just wondering if there is anyway this is possible. I have a function which generates a list of ids which I am using in my where clause. It looks something like the following: SELECT blah from blahblah WHERE blahblahblah IN function_blah(####) fu

  • Quicktime Error 1402 Could not open key (defaulticon)

    When trying to install Quicktime 7 (standalone) I get the same error I have seen posted by so many others....Error 1402 Could not open key.... HKEY LOCAL MACHINE\SOFTWARE\CLASSES\QUICKTIME.QT\DEFAULTICON I have tried every suggestion by Apple, Micros

  • IPod not syncing: no help provided online

    My iPod won't sync, and iTunes tells me to reset=, B UT get this: It says I am not con nected to the internet, which I obviously am. Now I'm stuck, with a non-syncable iPod, and a stupid error. Help?