Bug/Bad docs trying to bind SelectItem to bean property of type Collection

Hi,
I've been trying for the best part of the morning to use a selectOneMenu tag and bind the selectItems value to a backing bean property.
The tutorial states that:
"The advantages of using the selectItems tag are as follows:
You can represent the items using different data structures, including Array, Map, List, and Collection. The data structure is composed of SelectItem instances or SelectItemGroup instances."
well I've used Map, and List (which are both covered by Collection anyway...) and they don't work. You go silently to the renderResponse phase.
In all cases the content of my Collection typed property were javax.faces.model.SelectItem instances.
I changed the backing bean property to be of type SelectItem[] instead and suddenly it works fine.
It's as if the binding mechanism isn't able to handle collections?
Is the tutorial wrong or does this just not work?
I'm using 1.0.
Neil

Hi
I have the same problem whereby my backing beans has implemented as a HashSet of attachments for a client. If this is changed to a type, List say ArrayList, everything works correctly with no errors.
client.attachments -> contains a HashSet of attachments
Page goes to display this list and if a Set is used then error below is thrown.
Has anyone experienced this problem and found a solution, it would very help
Thanks
Glenn
Exception :
com.sun.facelets.tag.TagAttributeException: /C:/development/42508/apmweb/pages/client/client_notes_list.xhtml @70,53 tes
t="${not empty note.attachments}" /C:/development/42508/apmweb/pages/client/client_notes_list.xhtml @70,53 test="${not e
mpty note.attachments}": Bean: org.hibernate.collection.PersistentSortedSet, property: 0
at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)
at com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:49)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:168)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:147)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:147)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:147)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:94)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:400)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:434)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3020)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Caused by: javax.el.PropertyNotFoundException: /C:/development/42508/apmweb/pages/client/client_notes_list.xhtml @70,53
test="${not empty note.attachments}": Bean: org.hibernate.collection.PersistentSortedSet, property: 0
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.jav
Code :
<c:forEach items="#{WriteableClient.notes}" var="note">          
<c:if test="#{not empty note.attachments}">
</c:forEach >

Similar Messages

  • Getting error after when trying to print managed session bean property.

    Hi All,
    I am reading a file from my local machine. After reading a file , i am storing file details in the property of the same bean.
    After that i am trying to preint contents of that file in one jsp by accessing that stored managed bean property.
    But I am getting following error:
    Nov 15, 2009 2:33:41 PM com.sun.faces.lifecycle.LifecycleImpl phase
    WARNING: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@138c63) threw exception
    javax.faces.FacesException
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:135)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
         at java.lang.Thread.run(Unknown Source)
    Caused by: ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
         at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:319)
         at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
         at org.apache.catalina.connector.Response.flushBuffer(Response.java:548)
         at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:279)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:201)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
         ... 15 more
    Caused by: java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(Unknown Source)
         at java.net.SocketOutputStream.write(Unknown Source)
         at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
         at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:299)
         at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:973)
         at org.apache.coyote.Response.action(Response.java:183)
         at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
         ... 20 more
    Nov 15, 2009 2:33:41 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(Unknown Source)
         at java.net.SocketOutputStream.write(Unknown Source)
         at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
         at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:299)
         at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:973)
         at org.apache.coyote.Response.action(Response.java:183)
         at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
         at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
         at org.apache.catalina.connector.Response.flushBuffer(Response.java:548)
         at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:279)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:201)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
         at java.lang.Thread.run(Unknown Source)There is no specific reason mentioned for this error. Anyone has faced this problem before?
    Whats wrong here?

    Hi gimbal2,
    I haven't deployed the project yet. I am still in development phase. I am using eclipse. So i am using inbuilt browser from eclipse only.
    I saw this post on the same forum:
    http://forums.sun.com/thread.jspa?threadID=5297862
    This person had the same problem. But his question is not answered yet.
    People here are saying:
    *1)page is getting submitted more than once. Either because the user is clicking on the commandbuttons/links multiple times or through some other event.*
    ->I am not using any javascript. But problem here is whenever i try to load file from my local machine, in first attempt it wont proceed. I need to load file twice or thrice. Is it some problem?
    But one thing to note here is that i am not getting exception after loading the file. I am getting exception after reading the file in managed bean and returning from it with some status.
    *2)This exception can be caused by the browser closing its end of the socket for any number of reasons (user presses stop loading button, clicks another link, closes the browser window, etc.):*
    ->I am not pressing any button or doing any activity once i load the file.
    *3)Sounds like it should be caught and ignored since these are normal user actions. I was just concerned it might be causing some kind of impact that we don't know about.*
    ->I can't ignore it because, my next JSP is not getting loaded after i return from the read file bean.
    Hope People here can help me solve this problem. I am not able to proceed :(

  • H:selectOneMenu value binding to managed bean property

    Please help. Cannot figure out why selectOneMenu value binding is not working...
    The main contents of my jsp:
         <h:form id="form1" rendered="true">
              <P>
                   <h:selectOneMenu value="#{MBListBoxExample.selectedProject}" rendered="true"
                        required="false">
                        <f:selectItems value="#{MBListBoxExample.items}" />
                   </h:selectOneMenu>
              </P>
              <h:commandButton value="ShowSelected" rendered="true" action="#{MBListBoxExample.showSelected}" />
         </h:form>I have a managed bean with a property that is basically a custom object:
    private Project selectedProject;The selectOneMenu gets populated with the following code in my managed bean:
         public List getItems() {
              try {
                   ArrayList projectList = new ArrayList ();
                   projectList.add(new Project(1, "Project 1"));
                   projectList.add(new Project(2, "Project 2"));
                   projectList.add(new Project(3, "Project 3"));
                   projectList.add(new Project(4, "Project 4"));
                   ArrayList itemList = new ArrayList();
                   for (int x=0; x<projectList.size(); x++) {
                        SelectItem tempItem = new SelectItem();
                        Project tempProj = (Project) projectList.get(x);
                        tempItem.setLabel(tempProj.getName());
                        tempItem.setValue(tempProj);
                        itemList.add(tempItem);
                   return itemList;
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return null;
         }The following code is tied to my command button to display some simple output when the button is clicked:
         public void showSelected() {
              System.out.println("The selected item is: " + selectedProject.getName());
         }If I set the value of the SelectItem (tempItem) above to a String and make the selectedProject variable of type String, the code works.
    My goal is to have the items in the list reference 'Project' objects and be able to get to the selected object when the user clicks the command button.
    Any help is greatly appreciated.

    The problem is that you're missing a converter. JSF needs to convert your values from Strings into Projects and vica verca.
    When you do the form submission the values are passed as strings along with the labels. JSF isn't smart enough to convert them automatically.

  • BUG JSF Select Item not binding properly

    Dear Oracle,
    I'm running JDeveloper 10g version 10.1.3.0.3.3412 early access 1. If you create a HTMLMenu1 select list in a JSF Page and use the properties dialog to bind the values to a backing bean, the binding get's lost and the page doesn't call the value binding. What's more, if you try to rebind the values using the dialog, JDeveloper repeatedly inserts a new SelectItems tag for the menu.
    For example, if you create the SelectMenu1 and then use the dialog to bind the selectItems to a backing bean property, you will end up with code something like this:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"
    valueChangeListener="#{backing_showFactory.selectFactoryEvent}"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems1}"
    id="selectItems1"/>
    Now, click on the newly created menu item in the design window of the JSP editor and bring up the properties dialog. You will see that the value binding is blank. If you reenter the value binding information, JDeveloper creates a new tag so you end up with the following:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"
    valueChangeListener="#{backing_showFactory.selectFactoryEvent}"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems1}"
    id="selectItems1"/>
    Each time you repeat the process, JDeveloper creates another tag:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"
    valueChangeListener="#{backing_showFactory.selectFactoryEvent}"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems3}"
    id="selectItems3"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems1}"
    id="selectItems1"/>
    Either way, if you clean up the JSF page with the spurious tags, the value binding (in the example above backing_showFactory.allFactories), is never called.

    Yes - this really is a bug. Any changes to make to the selectItems tag through the properties dialog rewrites the tag source code to seperate the selectOne tag and the selectItems tag. For example, before you use the dialog, you tag code could look like this:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1">
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    </h:selectOneMenu>
    After the use of the dialog the code will be rewritten as:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    Notice, the tags are now seperated instead of the selectItems tag being encased in the selectOneMenu tag.

  • Bug when using a Map for SelectItems?

    Hi there,
    I think I found a pretty bad bug.... I don't think this behaviour is intended:
    I create a selectOneListbox which uses a map for storing the selectItems. The property holding the value is type compatible with the value in the map. When the component is shown, the wrong item is selected (ie NOT The one that is returned by the value property). If I use SelectItem[] for the selectItems, it works. Here is some sample code:
    The methods in the bean (managed bean with the name helloBean). The value property always returns 12 .....
      public Map getItems(){
        Map map = new HashMap();
        map.put("Hello_11", new Integer(11));
        map.put("Hello_12", new Integer(12));
        map.put("Hello_13", new Integer(13));
        map.put("Hello_14", new Integer(14));
        return map;
      public SelectItem[] getItems2(){
        SelectItem[] items = {
            new SelectItem(new Integer(11), "Hello_11"),
            new SelectItem(new Integer(12), "Hello_12"),
            new SelectItem(new Integer(13), "Hello_13"),
            new SelectItem(new Integer(14), "Hello_14"),       
        return items;
      public Integer getValue(){
        return new Integer(12);
      }..... here is how the selectOneListboxes are initialized ......
    <h:form id="helloForm">
            <h:selectOneListbox size="1" value="#{helloBean.value}">
              <f:selectItems value="#{helloBean.items}"/>
            </h:selectOneListbox>
            <h:selectOneListbox size="1" value="#{helloBean.value}">
              <f:selectItems value="#{helloBean.items2}"/>
            </h:selectOneListbox>
    </h:form>.... so both boxes refer to the same value property but their selectItems are taken from a map and a SelectItem[] array respectively. I would expect to see in both boxes the text "Hello_12", BUT:
    <select name="welcomeForm:_id0" size="1">     
         <option value="14">Hello_14</option>
         <option value="12">Hello_12</option>
         <option value="13">Hello_13</option>
         <option value="11">Hello_11</option>
    </select>
    <select name="welcomeForm:_id2" size="1">     
         <option value="11">Hello_11</option>
         <option value="12" selected="selected">Hello_12</option>
         <option value="13">Hello_13</option>
         <option value="14">Hello_14</option>
    </select>as you can see, only for the array the correct value is initially selected.
    Can anyone confirm this is a bug - or - what i would prefer tell me how to get around this?
    Thanks a lot!

    If getValue returns "12" (a String value), the situation is reversed.
    See the page 9-31 of the specification. It says:
    4. A java.util.Map where the keys are
    converted to Strings and used as labels, and
    the corresponding values are converted to
    Strings and used as values for newly
    created javax.faces.model.SelectItem
    instances. The instances are created in the
    order of the iterator over the keys provided
    by the Map.

  • Bug or feature: "weak" bidirectional binding?

    Just lost my last not-gray hair while quick-testing notification behaviour, the guts being binding a local (to the init method) property to the rawTextProperty of a textBox
    * Created on 06.07.2011
    package bug;
    import javafx.application.Application;
    import javafx.beans.property.StringProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.control.TextBox;
    import javafx.scene.layout.HBox;
    import javafx.stage.Stage;
    // bind rawTextProperty
    public class TextRawTextBind2 extends Application {
        public static void main(String[] args) {
          Application.launch(args);
        private HBox createParent() {
            TextBox modelInput = new TextBox();
            StringProperty property = new StringProperty("some text");
            ChangeListener l = new ChangeListener() {
                @Override
                public void changed(ObservableValue arg0, Object arg1, Object arg2) {
                    System.out.println("from adapter: " + arg1 + arg2
                            + arg0.getClass());
            property.addListener(l);
            modelInput.rawTextProperty().bindBidirectional(property);
            HBox hBox = new HBox();
            hBox.getChildren().addAll(modelInput);
            return hBox;
        @Override
        public void start(Stage primaryStage) throws Exception {
            HBox hBox = createParent();
            Scene scene = new Scene(hBox);
            primaryStage.setScene(scene);
            primaryStage.setVisible(true);
      }when typing into the textBox, I expect the listener to be notified - but nothing happens. Inline the createParent into the start method - the listener gets notified as expected (for your convenience, added that as well below).
    So what's the difference? The only thingy I can think of (after a whole afternoon of extensive testing of my code as well as textBox .. ) might be listener management in the binding: if the bound property is kept by a weak reference, then it might get garbage collected on method exit. Don't know though, never really cared much about weak references ...
    Comments please?
    Cheers
    Jeanette
    here's the same as all-in-one
    * Created on 06.07.2011
    package bug;
    import javafx.application.Application;
    import javafx.beans.property.StringProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.control.TextBox;
    import javafx.scene.layout.HBox;
    import javafx.stage.Stage;
    // bind rawTextProperty
    public class TextRawTextBind extends Application {
        public static void main(String[] args) {
          Application.launch(args);
        @Override
        public void start(Stage primaryStage) throws Exception {
          TextBox modelInput = new TextBox();
          StringProperty property = new StringProperty("some text");
          ChangeListener l = new ChangeListener() {
              @Override
              public void changed(ObservableValue arg0, Object arg1, Object arg2) {
                  System.out.println("from adapter: " + arg1 + arg2 + arg0.getClass()
          property.addListener(l);
          modelInput.rawTextProperty().bindBidirectional(property);
          HBox hBox = new HBox();
          hBox.getChildren().addAll(modelInput);
          Scene scene = new Scene(hBox);
          primaryStage.setScene(scene);
          primaryStage.setVisible(true);
      }

    reason for wanting such a loose hanging property is
    Bug or feature: TextBox can't handle null text
    textBox can't cope with null text (which is a valid value in the domain) so need to adapt somehow withouth being interested in the adapter at all, so keeping it around as a field is ... polluting code

  • Computer name being show as "localhost" when trying to bind to directory

    I am trying to bind my computer (OS 10.4.11) to my server (10.4.11) but each time I go to bind it the computer name is shown as "localhost" rather than the computer's real name. The computer's name is shown as r2.local in the Sharing pane of System Prefs, also confirmed by the output of hostname. I am also getting this in my system log during bootup:
    May 5 12:33:52 localhost usbmuxd[66]: usbmuxd-176 built for iTunesNineDot on Sep 24 2009 at 16:11:04, running 32 bit
    *May 5 12:33:53 localhost mDNSResponder: Couldn't read user-specified Computer Name; using default “Macintosh-000000000000” instead*
    *May 5 12:33:53 localhost mDNSResponder: Couldn't read user-specified local hostname; using default “Macintosh-000000000000.local” instead*
    May 5 12:33:54 localhost kernel[0]: BCM5701Enet: Ethernet address 00:14:51:64:5e:36
    May 5 12:33:54 localhost kernel[0]: BCM5701Enet: Ethernet address 00:14:51:64:5e:37
    May 5 12:33:54 localhost mDNSResponder: Adding browse domain local.
    May 5 12:33:56 localhost kernel[0]: NVDA,Display-A: vram [90020000:10000000]
    May 5 12:33:56 localhost kernel[0]: NVDA,Display-B: vram [00000000:01000000]
    May 5 12:34:00 localhost launchd: com.logmein.logmeinserver: exited abnormally: Bus error
    May 5 12:34:00 localhost launchd: com.logmein.logmeinserver: 9 more failures without living at least 60 seconds will cause job removal
    May 5 12:34:00 localhost launchd: com.logmein.logmeinserver: exited abnormally: Bus error
    May 5 12:34:00 localhost launchd: com.logmein.logmeinserver: respawning too quickly! throttling
    May 5 12:34:00 localhost launchd: com.logmein.logmeinserver: 8 more failures without living at least 60 seconds will cause job removal
    May 5 12:34:00 localhost launchd: com.logmein.logmeinserver: will restart in 10 seconds
    May 5 12:34:03 localhost lookupd[97]: lookupd (version 369.8) starting - Wed May 5 12:34:03 2010
    May 5 12:34:05 localhost /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow: Login Window Application Started
    *May 5 12:34:05 r2 configd[68]: setting hostname to "r2.local"*
    May 5 12:34:07 r2 loginwindow[99]: Login Window Started Security Agent
    May 5 12:34:08 r2 kernel[0]: AppleBCM5701Ethernet - en0 link active, 1000-Mbit, full duplex, flow control disabled
    May 5 12:34:08 r2 configd[68]: AppleTalk startup
    May 5 12:34:10 r2 configd[68]: executing /System/Library/SystemConfiguration/Kicker.bundle/Contents/Resources/enable-net work
    May 5 12:34:10 r2 configd[68]: posting notification com.apple.system.config.network_change
    May 5 12:34:10 r2 lookupd[110]: lookupd (version 369.8) starting - Wed May 5 12:34:10 2010
    May 5 12:34:15 r2 configd[68]: target=enable-network: disabled
    *May 5 12:34:16 r2 mDNSResponder: HostnameCallback: Error -65557 for registration of r2. IP 192.168.1.122*
    May 5 12:34:16 r2 configd[68]: AppleTalk startup complete
    Thoughts?

    I think Directory Utility is in 10.5+, it's called Directory Access in previous versions (at least in 10.4). I have an OD running on the Mac server that I am trying to bind to, the AD/windows server is just for the PCs.
    I did find this though about the mDNSresponder error I'm getting:
    (from http://lists.apple.com/archives/bonjour-dev/2005/Aug/msg00020.html)
    -65557 means NAT Traversal error. You need to be using a router that
    supports NAT-PMP or UPnP if you want to register your hostname
    successfully using DNS Update.
    I enabled UPnP on my router/firewall but it did not help.

  • Trying to bind XML data and form fields

    I have a fairly simple PDF - and I am trying to bind XML data to he form fields.
    In the designer I can bring up the data connection and
    select Global - for the binding method - and as I understand it - this will link Form Fields and XML data fields with the same name - (sounds logical to me)
    but all that happens is :
    I see the name of the field in the form field rahter than seeing the actual data
    should I select : None as the binding or normal ....
    but Normal doesnt show Anything - even after i select it .
    I can't quite seem to make this work -
    Any help here would be appreciated
    Thanks :)

    This is on a stand - alone system
    Using Designer ES ......
    I saved the Form as an xdp form
    and it seems as if all goes well until
    View the data and nothing appears - or
    just the names of the fields appear

  • Trying to Bind Matrix to DBDatasource

    Hi,
    I cannot seem to get my matrix bound to a system datasource (POR1)
    The Error I get is "Data Source - Not  A User Datasource"
    This occurs when trying to bind the first column.
    (  colItem.DataBind.SetBound(True, "POR1", "ItemCode" )
    I am trying to do this in a new tab in the purchase order form (142)
    odbs is a variable with class scope.
    Please help :
            odbs = oform.DataSources.DBDataSources.Add("POR1")
            oNewItem = oform.Items.Add("Lmat", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
            oItem = oform.Items.Item("38")
            oNewItem.Left = oitem.Left
            oNewItem.Width = oItem.Width
            oNewItem.Top = oitem.Top
            oNewItem.Height = oitem.Height
            oNewItem.AffectsFormMode = False
            oNewItem.FromPane = 15
            oNewItem.ToPane = 15
            omat = oNewItem.Specific
            Dim colItem As SAPbouiCOM.Column
            Dim colItemD As SAPbouiCOM.Column
            Dim colQty As SAPbouiCOM.Column
            Dim colQtyO As SAPbouiCOM.Column
            Dim colSO As SAPbouiCOM.Column
            Dim l As SAPbouiCOM.LinkedButton
            Dim l2 As SAPbouiCOM.LinkedButton
            colItem = omat.Columns.Add("colItem", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            colItem.Width = "125"
            colItem.TitleObject.Caption = "Item"
            colItem.DataBind.SetBound(True, "POR1", "ItemCode")
            colItem.Visible = True
            l = colItem.ExtendedObject
            l.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
            colItemD = omat.Columns.Add("colItemTxt", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            colItemD.Width = "225"
            colItemD.TitleObject.Caption = "Item Name"
            colItemD.DataBind.SetBound(True, "POR1", "Dscription")
            colItemD.Visible = True
            colQty = omat.Columns.Add("colQty", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            colQty.Width = "75"
            colQty.TitleObject.Caption = "Qty"
            colQty.DataBind.SetBound(True, "POR1", "Quantity")
            colQty.Visible = True
            colQtyO = omat.Columns.Add("colQtyO", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            colQtyO.Width = "75"
            colQtyO.TitleObject.Caption = "Qty"
            colQtyO.DataBind.SetBound(True, "POR1", "OpenQty")
            colQtyO.Visible = True
            colSO = omat.Columns.Add("colSO", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            colSO.Width = "125"
            colSO.TitleObject.Caption = "Sales Order"
            colSO.DataBind.SetBound(True, "POR1", "U_SONumber")
            colSO.Visible = True
            l2 = colSO.ExtendedObject
            l2.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Order

    Nick,
    Yes, you can add link button in grid column. There are 4 type of GridColumn, CheckBoxColumn, ComboBoxColumn, EditTextColumn, PictureColumn objects.  And you can set the linkobjecttype for EditTextColumn
    Please refer to BoGridColumnType for more info.
    sample code:
    oItem = oItems.Add("My_Grid", SAPbouiCOM.BoFormItemTypes.it_GRID)
                oItem.Top = 30
                oItem.Left = 10
                oItem.Width = 200
                oItem.Height = 100
                Dim oGrid As SAPbouiCOM.Grid = oItem.Specific
                Dim oDataTable = oForm.DataSources.DataTables.Add("POLines")
                oGrid.DataTable = oDataTable
                oDataTable.ExecuteQuery("SELECT ItemCode AS 'Item Code', Dscription AS 'Item Name', Quantity FROM POR1 WHERE DocEntry = 1")
                Dim colItemCode As SAPbouiCOM.GridColumn = oGrid.Columns.Item(0)
                colItemCode.Type = SAPbouiCOM.BoGridColumnType.gct_EditText           
                Dim editColItemCode As SAPbouiCOM.EditTextColumn = CType(colItemCode, SAPbouiCOM.EditTextColumn)
                editColItemCode.LinkedObjectType = 4
    Regards, Yatsea

  • What are solutions to the "Unexpected error while attempting to bind.  Operation cancelled." message when trying to bind

    What are solutions to the "Unexpected error while attempting to bind.  Operation cancelled." message when trying to bind and i alreeady cheack my DNS settings and everything

    Has this worked before, or is this a new configuration?
    On the server, launch Terminal.app from Applications > Utilities and post the output of the following harmless diagnostic command — and you'll need to enter an administrative password when requested:
    sudo changeip -checkhostname
    On the OS X (presumably) Mavericks client, please post the IP address(es) of the DNS server(s) you're referencing.  These are available via the System Preferences > Network > Advanced > DNS settings.
    To check the console logs, launch Console.app from Applications > Utilities on both the client and the server, and then attempt the binding, and then post a (short! no more than ~25 to 50 lines!) of any errors related to the binding error.
    If you're not in a position to post configuration details here — which is perfectly reasonable, and entirely your prerogative — or if I'm getting too confusing or too technical with some of the questions here, which would be my error of course — then (assuming these systems are under warranty) I'd suggest contacting the folks at the local Apple Store and having a chat with the local Geniuses about this, or checking directly with the Apple Support folks via telephone.

  • Fold down window just disappears when trying to bind to AD

    We're switching back to Macs!!
    In preparation I'm trying to bind my MacBook (10.5.6) to the Windows server (I've done this successfully at another school).
    When I go to Directory Access, click the + , put in the info, the fold down window goes away and nothing happens, I'm pretty ignorant so be gentle.

    AD is already enabled, I'm bound at another location. Just when when I click the + to add this one, fill it out and click OK,it folds away and nothing happens, I tried putting in rubbish and I get the same, no error messages, it just folds up and ignores me. I did create a computer for this Macbook on the AD server.

  • "Protocol family unavailable" when trying to bind to an IPv6 address

    Hi,
    When trying to bind to an IPv6 address using the Socket class, I get "Protocol family unavailable". Is there a fix to that?
    Thanks,
    Ronen

    read:
    http://search.msdn.microsoft.com/search/Default.aspx?
    query=IPv6&brand=msdn&locale=en-us&refinement=00&lang=en-us

  • Underflow Exception when trying to bind small double to BINARY_DOUBLE

    I get exception when trying to insert small double value (1.0E-131) into BINARY_DOUBLE column via jdbc.
    The exception I get:
    Exception in thread "main" java.sql.SQLException: Underflow Exception trying to bind 1.0000000000000001E-131
    at oracle.jdbc.driver.DoubleBinder.bind(OraclePreparedStatement.java:13856)
    at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:2866)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2151)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3280)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3390)
    at dbAccess.main(dbAccess.java:18)
    According to oracle documentation the smallest positive number the BINARY_DOUBLE column can store is 2.22507485850720E-308.
    I'm using oracle 10g r2 and thin jdbc driver.
    Any ideas?

    That is expected since a double is converted to a Oracle NUMBER before passing it to the database and Oracle NUMBER does not support 1.0e-131, the range is 1E-130 .. 10E125.
    Look at the SQL output below,
    SQL> select to_char(to_number(1.0e-131)) from dual;
    T
    0
    SQL> select to_char(to_number(1.0e-130)) from dual;
    TO_CHAR(TO_NUMBER(1.0E-130))
    1.000000000000000000000000000000000E-130
    ==
    Use oracle.sql.BINARY_DOUBLE for numbers like this.
    eg:
    preparedStatement.setBINARY_DOUBLE(1, new oracle.sql.BINARY_DOUBLE(1.0e-131));
    ==
    hope this helps.
    Ashok

  • Error when trying to bind without "cn=" prefix

    I am trying to bind a java object, via jndi, into an LDAP server and
    am getting an error.
    We have already bound jms.topics using IBM's JMSAdmin tool (a java
    tool), and they are in with names like "bucks" and "dela". Now, we
    want to put objects in from another tool instead of using the IBM
    tool.
    I am able to get the objects in, but I am forced to use "cn=myObject"
    instead of "myObject". For programic reasons, the later is what I
    need to do.
    Here is the code:
    // create the ctx
    InitialDirContext ctx = new InitialDirContext(env);
    // create the topic object with topic name of myTopic
    Topic q = new com.ibm.mq.jms.MQTopic("myTopic");
    // bind the object to the LDAP with the name == the topic name
    ctx.bind(new CompositeName("myTopic"),q);
    This results in
    javax.naming.directory.SchemaViolationException: [LDAP: error code 65
    - Object Class Violation]; remaining name 'myTopic'
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:903)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:657)
    at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:1428)
    at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:459)
    at com.sun.jndi.toolkit.ComponentContext.p_bind(ComponentContext.java:594)
    at com.sun.jndi.toolkit.PartialCompositeContext.bind(PartialCompositeContext.java:185)
    at javax.naming.InitialContext.bind(InitialContext.java:366)
    at JNDITool.main(JNDITool.java:74)
    But, if I use
    ctx.bind(new CompositeName("cn=myTopic"),q);
    it works fine, but appears as "cn=myTopic" in the naming directory.
    In order to be backward compatible with another application, I need to
    have the name be merely "myTopic".
    Anybody know what IBM's JMSAdmin tool is doing differenctly to achieve
    this?
    TIA,
    Gonzo

    So the answer is you need to create some attributes to use when binding:
    // create the attributes for the binding.
    BasicAttributes basicattributes = new BasicAttributes();
    basicattributes.put("objectclass", "javaContainer");
    basicattributes.put("cn", topicName);
    // do the binding
    ((DirContext)ctx).bind(topicName, newTopic, basicattributes);
    Gonzo

  • I messed up badly by trying to restore my brand new macbook pro by doing restart then command R and choose disc utility repair now when I start ,all I get is the white screen with a folder and a question mark,What can I do???help please

    I messed up badly by trying to restore my brand new macbook pro by doing restart then command R and choose disc utility repair now when I start ,all I get is the white screen with a folder and a question mark,What can I do???help please

    Can you still boot to the Recovery partition using Command and R whilst booting? Or did you wipe the Recovery partition as well?
    If your Recovery partition is still intact, you can simply boot to it and reinstall the OS via the Internet. If you wiped the Recovery partition, you can hold down Command, option and R keys whilst booting and boot into true Internet Recovery mode. You'll be able to reformat the hard drive, erasing all partitions (format it as "Mac OS Extended (Journaled)" with a dingle GUID partition) and then reinstall the OS that shipped with your machine.
    Note that you should use a physical Ethernet connection when restoring over the Internet - it's three times slower if you use wifi.
    Try your Recovery partition first and if that doesn't work, use Internet Recovery.
    Clinton

Maybe you are looking for