Problem trying to compare 2 values of type Integer in IF condition

I havd pop a value of type Integer from a stack into a variable, but the If conditions does not seem to work:
iqueuedVar = conn3.removeFromFeed();
System.out.println(iqueuedVar);
Integer test = new Integer(123);
if(test == iqueuedVar)
System.out.println("It Works !!");
The Integer test searched for the popped value 123 - which exists - but the IF condition is not working.
I'm using API 1.4.2 - Please help ?

I havd pop a value of type Integer from a stack into
a variable, but the If conditions does not seem to
work:
iqueuedVar = conn3.removeFromFeed();
System.out.println(iqueuedVar);
Integer test = new Integer(123);
if(test == iqueuedVar)
System.out.println("It Works !!");
The Integer test searched for the popped value 123 -
which exists - but the IF condition is not working.
I'm using API 1.4.2 - Please help ?get the int value from Integer.Then compare two int value

Similar Messages

  • Insert a value of type Date/Time into a database

    I am trying to insert a value of type date time into an access database. What is the format needed to insert the date/time.
    Thanks,
    -Amos

    I had all kinds of problems getting a datetime inserted into a SQl Server DB. Probably similar so this is what I do:
    String date = new String("01/01/97 12:00:00");
    stmt.setObject(1, date);
    I tried using TimeStamp's but found I got an occasional Fractional Truncation exception back from the driver. Never had a problem inserting a String using the setObject() method though.
    Hope this helps

  • Could not write value Content Type problem when installing itunes 08. help!

    When I tried to update itunes 08 there was an error. Instead, I uninstalled and downloaded the itunes8 setup. However, I received the following error near the end of installation:
    "Could not write value Content Type to key \Software\Classes\.aif. Verify that you have sufficient access to that key, or contact your support personnel.
    Abort...........Retry............Ignore"
    Retry/ignore doesn't work and aborting stops installing. How do I deal with this problem.
    Thanks!

    Uninstall any version of Skype, if installed.  Run the following removal tool: http://www.pcdust.com/Downloads/SRT/SRT.exe Reboot, then try to install the latest version of Skype again. Skype 7.6 (exe version)

  • UIX Problems Trying To “Get” and “Set” Values To messageTextInput Objects

    I have created an input UIX form in the Struts Page Flow Diagram using the Page Forward Action and dropped two views from the Data Control Applet as Input Forms. I am trying to �get� the value from one bound messageTextInput object in view1 to set the value of another bound messageTextInput object in view2. I do not know how to reference the bound messageTextInput objects on the UIX page.
    Any suggestions?
    Thank you,

    Hi Alain,
    Initially it is little bit confusing.
    To get the value:
    wdContext.node<nodename>().get<nodename>ElementAt(i).get<Attribname>();
    To set the value:
    wdContext.node<nodename>().get<nodename>ElementAt(i).set<Attribname>("value");
    First check the cardinality of the node.If the cardinality is 0..1 or 0..n then you need to create an element and add it to the node.
    IPrivate<viewname>.I<node>Element ele = wdContext.create<node>Element();
    ele.set<attribname1>("value");
    ele.set<attribname2>("value");
    wdContext.node<nodename>().addElement(ele);
    If the cardinality is 1..1 or 1..n then 1 element is created by framework. You can use that element. If you want to add more elements just use the above code.
    2.IWDAttributeInfo attInfo= wdContext.node<Node>().getNodeInfo().getAttribute(<Attribname>)();
    check this link
    https://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/webcontent/uuid/503f22f6-b978-2a10-bf97-ddc21267e752 [original link is broken]
    regards,
    Siva

  • Help comparing the value of a button using the Property Node (I get a variant)

    Dear Sirs:
    (I'm using LabView 6. I guess the solution is different for 6.1)
    Currently I have created an array of Boolean RefNums (which point to many, many buttons). When I need to know when any (and which) of the buttons was pressed I just compare every element on the array with the constant TRUE. It fact, as the array is built from RefNums, I should compare the VALUE from the Property Node.
    The problem here is that the Property Node for this type of Boolean is a LV Variant, and I need to compare this with a TRUE/FALSE value.
    I tried to convert the TRUE constant to a LV variant and visc. But nothing works... I always get that none of the buttons was pressed.
    Here it co
    mes the question: "How can I compare the value of a Property Node for a Boolean (Button) with a TRUE (or False) constant?"
    BTW, maybe I should explain why I'm using RefNums instead of the direct values: As my project requires tons of buttons, I would preffer using RefNums to refer to them. (I.E. I could use a single VI that takes the RefNum and formats the button to hide it for certain users).
    I have enclosed a VI that contains what I've achieved until now, which is nothing
    I appreciate your time and help.
    Best regards,
    JAVIER VIDAL
    Attachments:
    Other_Main_Menu.vi ‏103 KB

    Javier,
    There is another problem in your code: the booleans are not polled by the main loop so they will remain false until the user presses them again. This renders the boolean latch action useless.
    What you can do is to change the mechanical action of the booleans to non-latch. When you detect a "true" in the polling loop, set the boolean to false again. One added benefit is that once all boolean are non-latch, the value property won't be a variant but a boolean so conversion is no longer needed.
    LabVIEW, C'est LabVIEW

  • Comparing String values against a collection of Names in a Hash Table

    Objective:
    Is to make a script that will import a csv file containing two values: "Name" and "Price". This would ideally be stored in a hash table with the key name of "Name" and the value being "Price". The second part would be
    importing a second csv file that has a list of names to compare too. If it finds a similar match to a key name in the hash table and then it will add that to a new array with the price. At the end it would add all the prices and give you a total value.
    The Problem to Solve:
    In the real world people have a tendency to not write names exactly the same way, for example I am looking at a list of books to buy in an eBay auction. In the auction they provide a text list of all the names of books for sale. In my price guide it has all
    the names and dollar values of each book. The wording of the way each book is named could differ from the person who writes it and what is actually in my reference pricing list. An example might be "The Black Sheep" vs "Black Sheep" or
    "Moby-Dick" vs "Moby Dick".
    I've tried making a script and comparing these values using the -like operator and have only had about 70% accuracy. Is there a way to increase that by 
    comparing the characters instead of likeness of words? I'm not really sure how to solve this issue as it's very hard to do quality check on the input when your talking about hundreds of names in the list. Is there a better way to compare values in power-shell
    then the "like" operator? Do I need to use a database instead of a hash table? In the real world I feel like a search engine would know the differences in these variations and still provide the desired results so why not for this type of application?
    In other words, create a bit more intelligence to say well it's not a 100% match but 90% so that is close enough, add it to the array as a match and add the price etc..
    I'd be curious as to any thoughts on this? Maybe a scripting language with better matching for text?

    Have you considered setting up a manual correction process that "learns" as you make corrections, automatically building a look up table of possible spellings of each Name?  If you get an exact match, use it.  If not, go to the look up
    table and see if there's been a previous entry with the same spelling and what it was corrected to.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Problem with Enumerated drop-down values in Adobe Forms (WD java)

    Hi All,
    have a scenario where, I have to fill in a dropdown dynamically when I click a button. I get the values from a function module. I have done this using Isimpletypemodifiablestep. It worked.I have the form too. But when I try to re-implement the same its working only if I give the values during initialisation .
    Why is this inconsistent?
    Can we modify Simple types only during initialization? I have tried to add the values to the drop-down in controller and map the attribute to view. Even that didn't work.
    I'm
    Am using Adobe Live cycle designer 7.1 and NWDS 7.1
    SAP 2004s SP15
    Thanks,
    Vasu

    Hi Arafat,
                   I have tried that already. It didn't work. As of now, I've copied the form thats working into the new project.
    But I didn't find a solution for the problem.
    Thank you,
    Vasu

  • Problem Trying to minimize userlogin portlet

    Hi,
    I have a UserLogin portlet which is working, but I would like to have minimized initially. My index.jsp is shown below, where I have tried to use PortletBackingContext to do the minimize, but I am getting an error which seems to be occurring when I try to access the context:
    Errors found in C:\bea\user_projects\applications\myjlportal\app\portlets\userLogin\index.jsp:
    Error at line 63 column 34:
    Description: No variable, field, type, or package with this name could be found at this location.
    Warning at line 67 column 23:
    Description: This file does not exist.
    Found 1 error(s) and 1 warning(s).
    Can anyone tell me what the problem is?
    Perhaps using a backing context is not the right way to go about doing this. If so, can anyone tell me how I might do it?
    Thanks,
    Jim
    ===============================================
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ page import="com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext" %>
    <netui-template:template templatePage="/resources/jsp/template.jsp">
    <netui-template:setAttribute value="login" name="title"/>
    <netui-template:section name="bodySection">
    <netui:form action="login">
    <table class="tablebody">
    <tr class="tablebody">
    <td>Username:</td>
    <td>
    <netui:textBox dataSource="{actionForm.username}"/>
    </td>
    </tr>
    <tr class="tablebody">
    <td>Password:</td>
    <td>
    <netui:textBox dataSource="{actionForm.password}" password="true"/>
    </td>
    </tr>
    <tr>
    <td valign="top">
    Request:
    </td>
    <td class="prompt">
    You should see an indication that you're logged in below...
    <!---Fill this form with fields such as:xxx <netui:textBox dataSource="{actionForm.request.xxx}" />-->
    </td>
    </tr>
    </table>
     
    <netui:button value="Submit" type="submit"/>
    </netui:form>
    <%Object res = request.getAttribute ( "results" );%><%=(res == null ? "<i>none</i><br/>" : ( res + "<br/>"))%>
    <% if (request.getRemoteUser() != null) { %>
    <BR>you are logged in as: <%=request.getRemoteUser()%>
    <br> <%
    else
    {            %>
    <BR>you are not logged in
    <%
    %>
    <%
    PortletBackingContext contextjim = PortletBackingContext.getPortletBackingContext(request);
    //contextjim.setupModeChangeEvent(WindowCapabilities.VIEW.getName());
    contextjim.setupStateChangeEvent(WindowCapabilities.MINIMIZED.getName());
    %>
    <br>
    </netui-template:section>
    </netui-template:template><pre></pre>

    hi,
    to change page, change status of a portlet use backingfiles like this one:
    public boolean preRender(HttpServletRequest request, HttpServletResponse response) {
    //log("preRender called");
    PostbackURL url = PostbackURL.createPostbackURL(request, response);
    HttpSession session = request.getSession();
    String portletName = (String) session.getAttribute(PORTLET_NAME_PARAM);
    String pageName = (String) session.getAttribute(PAGE_NAME_PARAM);
    if (pageName != null) {
    session.removeAttribute(PAGE_NAME_PARAM);
    url.removeParameter(GenericURL.PAGE_LABEL_PARAM);
    url.addParameter(GenericURL.PAGE_LABEL_PARAM, (String)pages.get(pageName));
    if (portletName != null) {
    session.removeAttribute(PORTLET_NAME_PARAM);
    //url.removeParameter(GenericURL.PAGE_LABEL_PARAM);
    url.addParameter(GenericURL.WINDOW_LABEL_PARAM, portletName);
    if (session.getAttribute(MAXIMIZE_METHOD) != null) {
    log("maximize portlet: " + portletName + " and change page to: " + (String)pages.get(pageName));
    session.removeAttribute(MAXIMIZE_METHOD);
    //url.addParameter(GenericURL.PAGE_LABEL_PARAM, LOGIN_PAGE_LABEL);
    url.addParameter(GenericURL.STATE_PARAM, "maximized");
    } else {
    log("normalize portlet: " + portletName + " and change page to: " + (String)pages.get(pageName));
    session.removeAttribute(NORMAL_METHOD);
    url.addParameter(GenericURL.STATE_PARAM, "normal");
    //url.addParameter(GenericURL.PAGE_LABEL_PARAM, FIRST_PAGE_LABEL);
    try {
    response.sendRedirect(url.toString());
    } catch (Exception e) {
    e.printStackTrace();
    return true;
    hope this helps
    ciao

  • Problems setting managed bean property of type Integer

    I got a problem when I use valueBinding #{param.productId} in faces-config.xml for my managed bean:
    My property 'productId' in bean Product is of type Integer, and my bean is in request scope. When I try to invoke some action on page, wich should navigate me to another view - JSF is trying to set productId for current view, and of course it is empty (""), and for the reasons given above I'm getting an error:
    javax.faces.FacesException: Can't set managed bean property: 'applicationId'.
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:576)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:233)
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:256)
    ... 60 more
    Caused by: java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:489)
    at java.lang.Integer.<init>(Integer.java:609)
    at com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:855)
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:555)
    Should I use requestScope instead of param to have my parameter null, and not "" ?
    If so, how should I pass requestScope parameter using commandLink?

    Hi! I have a problem with setting params too. Probably my one is different.
    I have a jsp page which show a datatable, where I can see a row for each Product. If I click on its name I would navigate to another page that shows product informations, as several ecommerce sites do.
    But I can't understand what and how I must set to inform the details page on which product have to show.
    I read in this forum that it's possible to set a parameter in productBean, and then the constructor of product bean loads others fields knowing its id.
    The snippet of my faces-config.xml is:
      <managed-bean>
        <managed-bean-name>product</managed-bean-name>
        <managed-bean-class>test.backing.ProductBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>idToLoad</property-name>
          <property-class>java.lang.Integer</property-class>
          <value>#{param.id}</value>
        </managed-property>
      </managed-bean>It is possible? is a correct solution? and if it is, how can I do that?
    Thanks very much if someone can resolve my problem.
    Claudio.

  • Xml/html to jsp - problem with quotes in attribute values

    I am trying to convert a static html document into a jsp using an xsl stylesheet, but run into problems trying to use the jsp expression syntax inside of attribute values.
    Here is a sample of the source file:
    <input type="text" name="firstName" value=""/>
    Here is what I want the resulting jsp file to look like:
    <input type="text" name="firstName" value="<jsp:expression>customer.getField("firstName") </jsp:expression>">
    Here is what part of my stylesheet looks like:
    <xsl:template match="input">
    <xsl:copy>
    <xsl:copy-of select="@type"/>
    <xsl:copy-of select="@name"/>
    <xsl:attribute name="value">
    <xsl:text disable-output-escaping="yes"><jsp:expression></xsl:text>
    <xsl:text disable-output-escaping="yes">customer.getField(</xsl:text>
    <xsl:text disable-output-escaping="yes">"</xsl:text>
    <xsl:value-of select="@name"/> ")
    <xsl:text disable-output-escaping="yes">")</xsl:text>
    <xsl:text disable-output-escaping="yes"></jsp:expression></xsl:text>
    </xsl:attribute>
    </xsl:copy>
    </xsl:template>
    The problem i have is with the <%= customer.getField("firstName") %>. I have tried several different ways of inserting the double quotes around firstName, but no matter what I try, it always uses the entity reference instead of actually putting the " character. The jsp container will not accept the entity.
    I am assuming that the problem is with trying to place double quotes inside of an attribute value. Any ideas how to get around this?
    Thanks
    David

    Which App Server are you using?
    You should just be able to escape the double quotes.
    If that doesn't work, it's a bug in the app-server.
    Alternatively, you can use single quotes around the
    attribute value.
    Hope that helps,
    AlexSorry, I'm an idiot. By escaping you meant the unicode character escape "\u0022". I had not tried that. However, once i realized what you meant, I tried it, and it worked. Thanks for your help.
    David

  • Problem in passing selection screen values using CALL TRANSACTION.

    Hi All
    I am facing problem in transfering selection screen values to the called transaction. I am trying to pass the path of the transaction filer but to no avail. The variable for filepath is not empty.
    Below is my code:
    DATA: lt_bdcdata TYPE TABLE OF bdcdata,
           wa_bdcdata TYPE bdcdata,
           opt TYPE ctu_params.
    CLEAR wa_bdcdata.
    wa_bdcdata-program  = 'RFBASM00'.
    wa_bdcdata-dynpro   = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_CURSOR'.
    wa_bdcdata-fval = 'RFPDO1-FEBUMSF'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'RFPDO1-FEBUMSF'.
    wa_bdcdata-fval = gv_filepath.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_OKCODE'.
    wa_bdcdata-fval = 'PASS'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    opt-dismode = 'E'.
    opt-updmode = 'S'.
    CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
    Please help.
    Harsh

    Hi Harsh,
    I think you have entered wrong main program for tcode 'FF_5' and wrong screen field for the file name. Use the below code instead of yours.
    DATA: lt_bdcdata TYPE TABLE OF bdcdata,
           wa_bdcdata TYPE bdcdata,
           opt TYPE ctu_params,
           gv_filepath type char128 value 'C:\testfile.txt'.
    CLEAR wa_bdcdata.
    wa_bdcdata-program  = 'RFEBKA00'.
    wa_bdcdata-dynpro   = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_CURSOR'.
    wa_bdcdata-fval = 'UMSFILE'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'UMSFILE'.
    wa_bdcdata-fval = gv_filepath.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    *wa_bdcdata-fnam = 'BDC_OKCODE'.
    *wa_bdcdata-fval = 'PASS'.
    *APPEND wa_bdcdata TO lt_bdcdata.
    *CLEAR wa_bdcdata.
    opt-dismode = 'A'.
    opt-updmode = 'S'.
    CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
    Thanks.
    Regards,
    Jey

  • How can I compare single value with multiple value...

    Hello,
    I want to compare one value with multiple values, how can it possible ?
    Here in attachment I tried to design same logic but I got problem that when I entered value in y that is compared with only minimum value of x, I don't want that I want to compare y value with all the x value and then if y is less then x while loop should be stop.
    I want to do so because in my program some time I didn't get result what I want, for example x values is 4,5,6,7,8  and y value is  suppose 6 then while loop should be stop but here it consider only minimum number and its 4 here so while loop is not stop even y is less then 7 and 8. So I want to compare y value with all the entered values of x and if y is less then any of x values then while loop should be stop and led should be ON.
    Please guide me how can I do so.....
    Solved!
    Go to Solution.
    Attachments:
    COMPARISON.vi ‏8 KB

    AnkitRamani wrote:
    Thank you very mach for your help..
    may be i have solved this ....i have made one change in my vi that instead of min. i select max and max. value is compare with the value of y and then if y is less then the max. while loop will be stop other wise its run continuously.
    this is working fine...
    any ways thanks again for your help and time...
    I have to agree with Lewis - his way is more efficient.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Trying to fetch a value in a java function and returning the array.

    hello....I am trying to fetch a value in a java function and returning a array......I already write the pl/sql function which is working fine....but i think i m lost......when i run it through the jsp it shows me error........pls help
    java code:=
    public String [] viewx(String bid) throws SQLException, Exception {
    String [] values;
    try {
    CallableStatement cstmt = null;
    String SQL = "{?=call vi_dis.v_dis(?)}";
    cstmt = con.prepareCall(SQL);
    cstmt.registerOutParameter(1,Types.ARRAY);
    cstmt.setString(2, bid);
    cstmt.execute();
    Array simpleArray = cstmt.getArray(1);
    values = (String [])simpleArray.getArray();
    cstmt.close();
    } catch (SQLException sqle) {
    error = "SQLException: Could not execute the query.";
    throw new SQLException(error);
    } catch (Exception e) {
    error = "An exception occured while retrieving emp.";
    throw new Exception(error);
    return values;
    pl/sql function
    create or replace package vi_dis
    as
    function v_dis(vbid IN student.bid%type) return stuarray ;
    end;
    create or replace
    package body vi_dis
    as
    function v_dis(vbid IN student.bid%type) return stuarray
    is
    l_stu stUarray :=stuarray();
    cursor c_sel
    is
    SELECT CNAME
    FROM COURSE C,ENROLL E
    WHERE C.CID=E.CID
    AND E.BID=vbid;
    BEGIN
    OPEN c_sel;
    FETCH c_sel BULK COLLECT INTO l_stu;
    l_stu.extend;
    CLOSE c_sel;
    RETURN l_stu;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN DBMS_OUTPUT.PUT_LINE('NO RESULT AVAILABLE');
    CLOSE c_sel;
    END;
    END;
    /

    BalusC wrote:
    It is comparing the selected value against the List<SelectItem> returned by getSetoresOrigem() as it is during the apply request values phase of the form submit request.Ok. That's what I supposed JSF was doing.
    BalusC wrote:
    If the selected value isn't in there, then you will get this error.I can understand this, but is this right? As I said, the old value isn't really there because I changed the list values to new ones. But the new value (the value of fSetorOrigem ) corresponds to a value that exist in the new list items, so a valid value. So JSF is not considering that I also changed the list, not just the value. It is comparing the new value with the old list, not the new one. Acting like this JSF is making the page looks like a static HTML page, not a dynamic one. If I can't change the list and the value, what's the point of that? In my point of view I'm not doing anything wrong, I'm not violating any JSF rules.
    Marcos

  • Failure migrating wiki to Mountain Lion Server with wikiadmin, value is out of range for type integer

    We are trying to migrate our 10.6.8 wikis from the OS X Server to our new Mountain Lion OS X Server.  I am using "wikiadmin migration -r <collaboration directory> -g <wiki name>" to migrate each wiki individually. We have about 30 wikis in the old server, three of which fail to migrate, all with the same problem (below). The process runs successfully for a while, but ultimately fails and rolls back the transaction. It appears there is some problem trying to generate a unique filename, perhaps for some of the uploaded files?
    Has anyone else seen this error? large amount of pages, content, and attachments in these wikis and just recreating them in the new server would be a monumental task. Some of these attachments include videos and other large files, not sure if that might contribute to the problem.
    === wikiadmin migrate output log ===
    Aug 29 13:25:11 gslcwiki.local wikiadmin[54032] <Debug>: [PGCConnection:233 7e7e1180 +0ms] Executing query [INSERT INTO entity (uid, tiny_id, entity_type_fk, short_name, long_name, description, create_time, update_time, createdby_user_fk, updatedby_user_fk, ownedby_uid_fk, owner_entity_type_fk, is_hidden) (SELECT uid, tiny_id, entity_type_fk, short_name, long_name, description, create_time, update_time, createdby_user_fk, updatedby_user_fk, ownedby_uid_fk, owner_entity_type_fk, is_hidden FROM master_entity_scratch_20120829T132314 WHERE entity_type_fk='com.apple.entity.File')]
    Aug 29 13:25:11 gslcwiki.local wikiadmin[54032] <Debug>: [PGCConnection:181 7e7e1180 +151ms] Query result is [PGRES_FATAL_ERROR] rows returned=0/updated=
    Aug 29 13:25:11 gslcwiki.local wikiadmin[54032] <Error>: [PGCConnection:148 7e7e1180 +0ms] Error in TXN: Error executing query [INSERT INTO entity (uid, tiny_id, entity_type_fk, short_name, long_name, description, create_time, update_time, createdby_user_fk, updatedby_user_fk, ownedby_uid_fk, owner_entity_type_fk, is_hidden) (SELECT uid, tiny_id, entity_type_fk, short_name, long_name, description, create_time, update_time, createdby_user_fk, updatedby_user_fk, ownedby_uid_fk, owner_entity_type_fk, is_hidden FROM master_entity_scratch_20120829T132314 WHERE entity_type_fk='com.apple.entity.File')]: ERROR:  value "109120715161" is out of range for type integer
              CONTEXT:  PL/pgSQL function "uniquify_filename" line 7 at RETURN
              PL/pgSQL function "trg_update_entity_filename" line 23 at assignment
                        0   CoreFoundation                      0x00007fff93b67716 __exceptionPreprocess + 198
                        1   libobjc.A.dylib                     0x00007fff95aaf470 objc_exception_throw + 43
                        2   PostgreSQLClient                    0x00000001026ff9ae -[PGCConnection checkResultOK:forSQL:] + 360
                        3   PostgreSQLClient                    0x00000001026ffec3 -[PGCConnection executeQuery:] + 223
                        4   wikiadmin                           0x000000010269d586 wikiadmin + 66950
                        5   PostgreSQLClient                    0x00000001026ff5f7 -[PGCConnection transactionInBlock:onError:] + 147
                        6   wikiadmin                           0x000000010269cd86 wikiadmin + 64902
                        7   wikiadmin                           0x00000001026a025d wikiadmin + 78429
                        8   wikiadmin                           0x00000001026924c8 wikiadmin + 21704
                        9   libdyld.dylib                       0x00007fff912857e1 start + 0
                        10  ???                                 0x0000000000000006 0x0 + 6
    Aug 29 13:25:11 gslcwiki.local wikiadmin[54032] <Debug>: [PGCConnection:320 7e7e1180 +0ms] Executing update [ROLLBACK]

    Okay, so a little more detail for you…
    If I can manage to restart the server without the wiki service on, everything else seems to work fine (including the web service running the default home page) and "serveradmin fullstatus wiki" will report that the service is stopped.
    But as soon as I try to start the wiki service, it never finishes, and it prevents the web service from working properly anymore. i.e. I get a 502 Proxy Error instead of the OS X Server default home page. It's after the attempted wiki start that "serveradmin fullstatus wiki" starts to give the
    serveradmin[2373:707] outstanding requests are: (
            Command = getState;
            Module = "servermgr_wiki";
            Timestamp = "2012-10-25 16:22:15 +0000";
    error. And then I can't stop the wiki service - even "serveradmin stop wiki" gives the same "outstanding requests" message.
    This time I tried to stop the wiki from Server app and I got this error:
    An error occurred on the server while processing a command.
    The error occurred while processing a command of type 'getState' in plug-in 'servermgr_wiki'.
    If it's helpful at all, I've notice the following in my log files that seem related, but I have no idea how to fix - it almost seems lie the migration of the wiki failed from 10.7 to 10.8:
    collabd[767]: [CSConnectionPool:141 6a92000 +14027ms] Schema is STILL out of date (14 < 69) after launching wikiadmin, update failed! collabd will refuse to run until this is fixed.
    I'm really pulling my hair out over here, and have no idea what to try next?
    Anyone have any suggestions?
    Thank you!

  • Validation to compare a value that exist.

    Hi Everybody,
    I am using JDeveloper11.1.1.4. I want to implement a validation based on the comparison.
    I have an editable table in a .jspx file. This table is created by making use of an Entity based view object. And, this view object has some conditions in its where clause.
    Now since my page has editable table, I want a validation to happen in such a way that the user does not duplicate a value while editing/creating a new record in the form. Please note we cannot set Unique constraint because the table can have duplicate values. And hence, only the users context should not have a duplicate values. In short, the column in the table in which the user currently in, should not have the duplicate values.
    I tried with comparison operator with query result but came to know that we cannot pass parameters to the query.
    Can somebody suggest me what the best way of doing this?
    Regards,
    V. Praveen

    Assuming you are using ADF BC (which you appear to be), go to the "business rules" section of your EO, click the Entity Validators folder (not any of the attributes), and click the "plus" button to add a new validator. You can then choose "compare" as the rule type "equals" as the operator and "Entity Attribute" as the "compare with" item. Pick the two attributes to compare (one in the "attribute" list and the other in the "select entity attribute" list). Provide your error message on the "failure" tab (that way it can be translated, and not hard-coded in the exception, should you so desire) and voila, you are done.

Maybe you are looking for

  • 2009 MacBook Air 2.13GHz says "Wi-Fi: No hardware installed"

    So recently my 2009 13' MacBook Air has begun to give the No hardware installed on the WiFi. I am currently on Mavericks and have a couple extra airport cards lying around. So out of curiosity i tried to replace it with an airport card that came out

  • ICal has stopped showing events for Sundays only in the month view.

    iCal has stopped allowing events to be entered or viewed on Sundays from the Month view.  If I double click on a date on the month view, for a Sunday, nothing happens on the screen but if I go to the day view there is a default New Event on the day. 

  • DUPLICATE CONTACTS IN ADDRESS BOOK ON iPHONE

    I have duplicate contacts for every name in my address book on my iPhone. This morning, I opened my address book in my AppleBook and erased all duplicates. I synced my iPhone again, and still have duplicate addresses. Can anyone explain the problem a

  • Explain Plan for Materialized Views in 10g

    I am verifying explain plan for few queries on 10g as compared to 9i I was wondering in Materialized Views queries MAT_VIEW ACCESS instead of TABLE ACCESS is it expected behaviour or am missing something? Couldn't find information in 10g documentatio

  • Ray Tracing question

    Hi all, In Java2D the tracing algorithm can handle effectively primitive shapes, like cubes, spheres etc, mapping the shapes from 3D to 2D. So we can, for example, rotate the whole "scene" and have a 3D illusion of the world. But what about images? T