Dealing with missing room structure (eg Nodes)

Hi,
I'm sure most developers have seen this error pop up during development:
"Error - insufficient permissions to create a new CollectionNode. You must be an OWNER of the room to add new multi-user features to it. Log in with developer credentials in order to do so."
This error occurs when a non-owner subscribes to an object that doesn't exist (there's an implicit attempt to create it, which fails).  As far as I can tell, this condition cannot be detected cleanly by a client application -- you're just supposed to make sure it doesn't happen on a released application.
If that's correct so far, then the design seems to assume that a given collaborating application connects to a specific well-known room (or at least, the template for the room is known).  What if the Flex code providing collaboration support is part of a library, and it doesn't know for sure that the provided room has the proper structure?  The goal here is to detect this situation and handle it within the library, without the error above happening.
BTW CollectionNode.canUserSubscribe doesn't seem to help out here.  It seems to return false unless you're already subscribed!
DB

Hi DB,
Sorry I misunderstood.
I have attached a code sample to see how you could handle the issue. The key here is to subscribe to your collection after your room is synchronized. Check the buildmodel() method.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" x="0" width="400" height="400"
                    xmlns:rtc="AfcsNameSpace" creationComplete="init(event);" xmlns:session="com.adobe.rtc.session.*">
     <mx:Script>
          <![CDATA[
               import com.adobe.rtc.authentication.AdobeHSAuthenticator;
               import com.adobe.rtc.events.AuthenticationEvent;
               import com.adobe.rtc.events.ChatEvent;
               import com.adobe.rtc.events.SessionEvent;
               import com.adobe.rtc.session.ConnectSessionContainer;
               import com.adobe.rtc.sharedModel.SimpleChatModel;
               import com.adobe.rtc.sharedModel.descriptors.ChatMessageDescriptor;
               import flash.events.*;
               import flash.ui.Keyboard;
               import mx.controls.Alert;
               // this simple example just shows how this shared model can be made easily binable for MXML.
               // See SimpleChatModel for details
               [Bindable]
               public var _auth:AdobeHSAuthenticator = new AdobeHSAuthenticator();
               [Bindable]
               public var simpleChatModel:SimpleChatModel;
               [Bindable]
               private var _cmd:ChatMessageDescriptor;
               protected function init(p_evt:Event):void
                    _auth.userName = "Guest";
                    _auth.password = null;
                    _auth.addEventListener(AuthenticationEvent.AUTHENTICATION_FAILURE, onAuthenticationResponse);
                    _auth.addEventListener(AuthenticationEvent.AUTHENTICATION_SUCCESS, onAuthenticationResponse);
                    cSession.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, onSessionEventResponse);
                    cSession.addEventListener(SessionEvent.ERROR, onSessionEventResponse);
                    cSession.login();
               public function onAuthenticationResponse(event:AuthenticationEvent):void {
                    if (event.type == AuthenticationEvent.AUTHENTICATION_SUCCESS) {
                         trace("Authentication Succeeded");
                         //buildModel();
                    else if (event.type == AuthenticationEvent.AUTHENTICATION_FAILURE) {
                         Alert.show("Authentication Error : " + event.toString());
               public function onSessionEventResponse(event:Event):void {
                    if (event.type == SessionEvent.SYNCHRONIZATION_CHANGE) {
                         if (cSession.isSynchronized) {
                              //Now we are connected and the Pods have synchronized themselves, so switch to main Screen
                              //Switch to Collaborative Pods i.e. ConnectSessionContainer
                              //vsMain.selectedIndex = 1;
                              buildModel();
                         else {
                              //We are disconnected now
                              cSession.roomURL = null;
                              //vsMain.selectedIndex = 0;
                    else if (event.type == SessionEvent.ERROR) {
                         var sError:SessionEvent = event as SessionEvent;
                         Alert.show(sError.error.name + " : " + sError.error.message);
               private function buildModel():void
                    // Create the model: just calling the constructor won't create the collection node or pass the messages.
                    // Call subscribe and five it a shared ID while creating the model.
                    // The shared ID becomes the name of the collection node.
                    try {
                         simpleChatModel = new SimpleChatModel(true);
                         simpleChatModel.sharedID = "simpleChatModel1";
                         simpleChatModel.subscribe();
                    } catch(e:Error) {
                         trace("Slow death :(");
                    simpleChatModel.addEventListener(ChatEvent.HISTORY_CHANGE, onChatMsg);
               private function submitChat(str:String):void
                    _cmd = new ChatMessageDescriptor();
                    _cmd.displayName = cSession.userManager.getUserDescriptor(cSession.userManager.myUserID).displayName;
                    trace(_cmd.displayName);
                    trace(str);
                    _cmd.msg = str;
                    simpleChatModel.sendMessage(_cmd);
                    chat_msg_input.text = "";
               private function clearChat():void
                    chat_msg_area.text = "";
                    simpleChatModel.clear();
               private function onChatMsg(evt:ChatEvent):void
                    if (evt.message != null && evt.message.msg != null && evt.message.displayName != null)
                         chat_msg_area.text +=  evt.message.displayName + ": " + evt.message.msg + "\r";
                    } else {
                         chat_msg_area.text = "";
          ]]>
     </mx:Script>
     <session:ConnectSessionContainer roomURL="https://connectnow.acrobat.com/USERNAME/ROOMNAME" authenticator="{_auth}"
                                         id="cSession"
                                         width="100%"
                                         height="100%"
                                         autoLogin="false" >
          <mx:VBox width="100%" height="100%">
               <mx:TextArea width="100%" height="100%" id="chat_msg_area" />
               <mx:ControlBar >
                    <mx:TextInput width="100%" id="chat_msg_input" />
                    <mx:Button label="Submit Chat" click="{ submitChat(chat_msg_input.text) }" />
                    <mx:Button label="Clear Chat" click="clearChat()" />
               </mx:ControlBar>
          </mx:VBox>
     </session:ConnectSessionContainer>
</mx:Application>

Similar Messages

  • Deal with missing / renamed files via COM interface

    Hello,
    I'm trying to find some way to programmatically identify missing files in iTunes, including where iTunes is looking for the file, and if possible to point iTunes to the correct path. It's very straightforward to detect missing files, the original path could probably be obtained by analysing the iTunes xml file, but I can find no programmatic way of telling iTunes where to look. Simply deleting the missing file and then adding a new file from the new location is not acceptable.
    The reason for wanting to do this is very simple. I've a custom written backend music library management system that presents the library to iTunes as a set of .m4a files on a read only network share. From time to time, new files will appear, existing files will be updated or renamed, and files may be deleted. What I'd like to do is to write some simple vbscript that will keep iTunes in sync with this set of files.
    Most of the functionality it easy. The difficulty comes with dealing with renamed files. I can identify missing files by looking for those with a null location. If I can then find out what the file was previously called, I can then quite readily determine what it will have been renamed to. At this point however, I can find no way to update iTunes. As previously mentioned, just removing and re-adding the file isn't acceptable, as it will then disappear from any devices synced with iTunes.
    Does anyone have any clever ideas how to achieve this. The best idea I've come up with is to brute force the .itl file, and deal directly with that. I'd really rather not though, and it'll be a lot of effort, and may well spontaneously stop working. I'd also like to achieve the same effect of a mac platform, probably with Applescript, but am having basically the same issues.
    Regards,
    Chris
    The reas

    Christopher,
    I, too, wish this could be done. Unfortunately it looks like Apple does not currently have this capability (i.e. the Location property is read-only). I've submitted an enhancement request for this feature (as I'm sure many others have), but this appears to be by design. It appears you have already figured out the only workaround I'm aware of -- adding the file again (and optionally copying the properties from the old file to the new one).
    But by all means, please submit a bug report at http://bugreport.apple.com. Maybe if enough people gripe it will get implemented. You'll need an ADC account to submit a report via that link. If you don't have an ADC account already, you can get a free "ADC Online" account (or, of course, buy a higher-level account if you want).
    If you don't want to get an ADC account, you can use the Apple feedback page (http://www.apple.com/feedback) -- but I think you'll get a better response as a developer via the bugreport site.
    BTW, if you find good documentation on the iTunes Library file, I'd like to see it! I can't find any anywhere. Of course, if you figure it out and you don't want to share that's up to you...

  • How do I deal with missing pixel-widths?

    I apologize if this is the wrong forum. I am currently writing a GUI in swing, and I seem to be having some sort of a pixel mismatch problem. There are two verifiable symptoms so far. I have a BufferedImage that is intended to serve as a ribbon across the bottom of a larger page. I've run createGraphics() on it, and I am using that graphics object to draw hashmarks and numbers to the buffer, and thence the screen. The larger page is arranged in SpringLayout. I'm having two problems that I'm pretty sure are connected.
    - first is that the numbers that I'm drawing to the BufferedImage keep dropping pixel columns. Zeros will be drawn with the middle column gone, for example (and thus no hole). At smaller resolutions, unbolded, they can look like Cs if the drop hits the wrong spot.
    - the bottom ribbon itself goes all the way to the left edge of the page, but the numbering isn't supposed to start until a bit further in - matching up with a spring width from further up the page. The x coord used for drawing and the width spring used for layout are both drawing from the same variable, and thus should be identical, but the number and hashmark are about 4 pixels to the right of where they should be. My guess is that a detailed search would find that there are 4 columns missing between the hashmark and the edge of the screen - which would line up with the approximate frequency seen further in.
    I have tried messing with (java-native) fonts and sizes, I have tried swapping back and forth on bold, and I'm pretty sure by now that it's an error somewhere in the pixel lineup. Does anyone have any idea what causes this, or how to fix it?
    Thank you for your time.
    Fibula

    Hi, sounds like an interesting effect, but is rather hard for me to picture from just your description. A small compiling & runnable example demonstrating your problem would really help here. By the way, with "pages", do you mean panels?

  • So what's the deal with missing context-root element in domain.xml?

    I see that this issue has come up in the past:
    If one hand modifies an application's web.xml file and tries to deploy using JSC, the application's corresponding web-module element's context-root gets nuked in the app server's domain.xml file. The only way I can get the server AND app to successfully run is to manually add context-root back in and manually restart the server (whether from JSC Deployment Server tree node or from the Start Menu (I'm running on XP Pro.) Trying to start either/both from the Run Project button on JSC recreates the problem. Is this a bug? Am I doing something wrong? If bug, will this be addressed soon?

    Here's what I did:
    1. I created a simple HelloWorld JSF project & tested that it compiled, deployed & ran fine using built-in AppServer.
    2. Switched Project View to FileSystem view & opened src/web/WEB-INF/web.xml for editing
    3. Inserted security-constraint
        <!-- Security -->
        <security-constraint>
              <display-name>SecurityConstraint</display-name>
              <web-resource-collection>
                 <web-resource-name>WRCollection</web-resource-name>
                 <url-pattern>/*</url-pattern>
              </web-resource-collection>
              <auth-constraint>
                 <role-name>admin</role-name>
              </auth-constraint>
              <user-data-constraint>
                 <transport-guarantee>NONE</transport-guarantee>
              </user-data-constraint>
        </security-constraint>  4. Tried to deploy & get deplyment failure messages.
    5. Looking in to the %APPSERVERROOT%/domains/creator/config/domain.xml file shows that the HelloWorld webmodule line looks as follows:
    <web-module enabled="true" location="c:/Documents and Settings/Jake Ochs/My Documents/Creator/Projects/HelloWorld/build" name="_helloworld" object-type="user"/>(notice how "context-root" is missing & now needs to be added manually to getthe app to run again.

  • How to deal with multiple hard drives?

    I am using Aperture 1.5 but am having trouble
    dealing with the Library structure. I want to be able to have Aperture recognize and work with Projects located on several different external hard drives. Where should the main library be located? In 1.5 is there such a thing anymore as a Branch library? I had a branch library on an external drive. I may have messed things up so that Aperture doesn't quite know where things are. Is there a way to re-organize things so that when I open Aperture ALL the projects I've worked with do appear? Thanks.

    To have Aperture work with projects on different hard drives, just import the project files but tell Aperture to copy the files from their current location (say a media card or CD) to a directory of your choice on any drive of your choice. You can store projects on multiple drives. I don't think it matters where the main library is located, it could be on your primary drive, or on one of your external hard drives. I'm not sure how to consolidate projects that were enclosed in different libraries other than to export the projects individually, and then reimport them into the new centralized library. I do wish Aperture would allow one multiple select projects (it only allows you to select one at a time) for exporting. I also wish that Aperture had a 'Consolidate Libraries' command which would allow one to just pull all 'found' projects into one library.
    Dual 2.7 GHz 5.5 Gig RAM   Mac OS X (10.4.6)  

  • How to deal with FLV with missing meta data?

    I have and will get flvs in the future with missing meta
    data.
    I think for the most part the meta data that is missig is the
    file length.
    The exact files that are not working on our server are
    working on some other companies FMS.
    They must have some workaround actionscript on the server or
    configuration that is making it work.
    I'd like to know that workaround or that configuration
    change. That would be the ideal fix.
    I already know how to fix the FLV after I download it but I
    wanted to know if there is another way to deal with this problem.
    One were I can leave the FLVs alone.
    Is there some serverside actionscript that would tell FMS the
    length of the movie or change the configuration of fms to deal with
    this somehow.
    Any ideas?

    If you are using the same database and referencing two tables then you dont need special configuration for it. You use single jdbc adapter. In ESR you create two statment structure one for each table. This is one option. The second option is use join statment and write query and in this case one statment data structure.
    Please go through the help sap link for the jdbc document structure.
    http://help.sap.com/SAPHELP_NW04s/helpdata/EN/2e/96fd3f2d14e869e10000000a155106/content.htm
    The second option can be done using the below structure.
    <StatementName>
    <anyName action=u201D SQL_QUERYu201D >
    <access>SQL-String with optional placeholder(s)</access>
    <key>
      <placeholder1>value1</placeholder1>
      <placeholder2>value2<placeholder2>
    </key>
    </anyName > 
    </StatementName>

  • Difference between the different structures while dealing with User-Exits

    While dealing with User-Exits, we come across the different structures/Tables like XVBAP,YVBAP,TVBAP,IVBAP,*VBAP....
    What is the difference between them ?

    Usually X<tablename> and Y<tablename> are used in change document management to determine records updated (Y is old values and X new ones).  (Look at transaction SCDO)
    T<tablename is an internal table read from database and I<tablename> is an import table parameter of the same structure. <tablename> is an equivalent of <tablename> declared with statement TABLES and contains usually the "old" value.
    Look at exit documentation. start at [User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm]
    Regards

  • [svn:bz-trunk] 18821: Check-in a minor fix that deals with a missing MessageBroker class ( this could happen in Java/Android clients).

    Revision: 18821
    Revision: 18821
    Author:   [email protected]
    Date:     2010-11-26 07:33:24 -0800 (Fri, 26 Nov 2010)
    Log Message:
    Check-in a minor fix that deals with a missing MessageBroker class (this could happen in Java/Android clients).
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/MessageException.java

    I see some message about a proxy. Have you checked that you can use the proxy from you network?
    If not you should turn the proxy off.
    Timo

  • Scripting problem dealing with Acrobat 9's extra (unwanted) nodes

    Hello All,
    I'm having a few issues with the way Acrobat 9 creates extra nodes in the model tree when you try to export it
    out as a u3d.  Here's what i mean.
    In version 8, my object tree looks something like this:
    <Node Name="model">
           <Node Name="DTM">
                 <Node Name="D1"/>
                 <Node Name="D2"/>
                 <Node Name="D3"/>
                 <Node Name="D4"/>
    But, when i export the same model in version 9, the object tree looks something like this
    <Node Name="model">
           <Node Name="model.u3d">
                 <Node Name="DTM">
                      <Node Name="D1">
                             <Node Name="D1"/>
                       </Node>
                            <Node Name="D2">
                                  <Node Name="D2"/>
                       </Node>
                       <Node Name="D3">
                             <Node Name="D3"/>
                       </Node>
                       <Node Name="D4">
                             <Node Name="D4"/>
                       </Node>
    Acrobat 9 adds a new level of nodes.  This is a problem for me as i have been using a simple script to toggle my
    objects on/off.  The script that i've have been using:
    var Context = getAnnots3D(0)[0].context3D;
    var mesh = Context.scene.meshes.getByName("D1");
    mesh.visible = !mesh.visible
    This works fine under version 8 but not in version 9. I'm assuming that with the new level of nodes, i have to alter my script to reflect this. Does anyone know how i can adjust my script to make this work with all these extra nodes?
    Thanks

    I think I have isolated the source of this problem. It's the Pitstop Professional 9 plug in. I un-installed this, and everything opens quicker than greased lightning. I re-installed it and it's back to slowsville.
    Unfortunately Pitstop is essential to my workflow.
    Until recently I did my pre-press on a Mac G5 with Acrobat Pro 7 and Pitstop 6.5. I never had this problem with slow file opening. But it seems that the delays would occur when I used the plug-in with large complex files.. So it would open files as fast as you'd expect from an elderly machine. But starting to use Pitstop would result in a prolonged period of staring at a spinning beachball.
    I wonder is there any way to stop the Pitstop plug-in from initializing until it is used? So the plug-in stays inert until you select the tool from from the menus.

  • How to deal with 0...n or 1...n mappings?

    Hi all,
    I'm relatively new to BPM. I've already made several processes that are working fine. However, I'm now stuck because, for the life of me, I'm not able to understand how to deal with data mappings of nodes of a cardinality greater than 1...1.
    I'm used to dealing with 0...n inputs of Web Services in Webdynpro Java and CAF Application services, using java code... but I just don't get how to deal with these in a BPM data mapping scenario.
    Let's say you have a Web Service whose input is a node called "Employee", where you can add n Employee objects, like this:
       Employee (0...n)
          FirstName: String
          LastName: String
    How do you:
    1- map a 0...n context node from a Web Dynpro or Web Service output, already containing several employees, into this Employee 0...n WS input node?
    2- map a 0...n context node from a Web Dynpro or Web Service output, containing NO employees, into this Employee 0...n WS input node, without getting an error and the BPM crashing because it says the employee element is not found?
    Hopefully someone can help me with this, because I'm about to go the way of calling the web service n times, one employee at a time, instead of one time with a Employee object with n registries in it.
    Thanks!

    Hi Abhijeet,
    i think i should have mentioned this earlier. My Employee node is inside another node.  So, the actual input structure of the WS is this:
    InputValues (1...1)
       Employees (0..n)
          FirstName: String
          LastName: String
    This scenario works OK in BPM when mapping a 0..n node using deep copy as Jocelyn explained, but I still doesn't work if I want to pass an empty (not null) Employees array.
    If I go to the WS Navigator and run this WS with the following parameters, it runs ok (I get an output message saying no employee was selected, which is how it should work):
    InputValues -  "Is null" checkbox not activated.
       Employees - "Skip" checkbox not activated
          FirstName - "Skip" checkbox activated
          LastName - "Skip" checkbox activated
    However, if instead of activating the checkbox of, say, "FirstName", I enter a "" value, I get an error from the WS saying that's not a vaild first name, which is also how it should work.
    In java code, I would just pass an empty InputValues object to the WS, but I'm not sure how to do this in a BPM without it being considered null, and without having to set on of its String-child values to "".
    Do you know how to achieve this?

  • XmlDataProvider .... is gone completely in my Xaml file. Why? How many different ways to deal with xml data source through WPF

    I followed a procedure described in a book.
    1. insert "Inventory.xml" file to a project "WpfXmlDataBinding" .
    2. add the XML data source through the data panel of "blend for 2013", named it "InventoryXmlDataStore" and store it in the current document.
    3. dragged and droppped the nodes from the Data panel onto the artboard.
    Then I checked my Xaml file against the one provided by the book
    Xaml file by the book:
    <Window.Resources>
    <!-- This part is missing in my xaml file --><XmlDataProvider x:Key="InventoryDataSource"
    Source="\Inventory.xml"
    d:IsDataSource="True"/>
    <!-- This part is missing in my xaml file -->
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid>
    <ListBox HorizontalAlignment="Left"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="89,65,0,77" Width="200"/>
    </Grid>
    my Xaml file:
    <Window x:Class="WpfXmlDataBinding.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="922" Width="874">
    <Window.Resources>
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid DataContext="{Binding Source={StaticResource InventoryXmlDataStore}}">
    <ListBox HorizontalAlignment="Left" Height="370"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="65,55,0,0" VerticalAlignment="Top" Width="270"/>     
        </Grid>
    </Window>
    All looks quite the same except the <XmlDataProvider ....> part under <Window.Resources>, which is gone completely in my Xaml file.
    1, Why?
    2, How many different ways to deal with xml data source through WPF?
    Thanks, guys.
    (ps My "WpfXmlDataBinding" runs without problem through.)

    Never do yourself down Richard.
    Leave that to other people.
    It's quite common for smart developers to think they're not as good as they are.
    I coach a fair bit and it's a surprisingly common feeling.
    And to repeat.
    Never use anything ends .. provider.  They're for trivial demo apps.  Transform xml into objects and use them.  Write it back as xml.  Preferably, use a database.
    You want to read a little mvvm theory first.
    http://en.wikipedia.org/wiki/Model_View_ViewModel
    Whatever you do, don't read Josh Smiths explanation.  I used to recommend it but it confuses the heck out newbies. Leave that until later.
    Laurent Bugnion did a great presentation at mix10.  Unfortunately that doesn't seem to be working on the MS site, but I have a copy.  Download and watch:
    http://1drv.ms/1IYxl3z
    I'm writing an article at the moment which is aimed at beginners.
    http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
    The sample is just a collection of techniques really.
    I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
    I can't remember if I recommended it previously to you:
    https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
    And I have working samples which are aimed at illustrating line of business architecture.  This is an incomplete step by step series but I  think more than enough to chew on once you've done the previous stuff.
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    The write up for step2 is work in progress.
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • What's the deal with iCal and DNS?

    So according to the documents, you need a domain name and fully functional reverse DNS, to use the caldav server? What's that all about? Do you really need all that? Why can't you just type in the IP of the server, and connect to the server? Just like connecting to a web server, nice and simple? Most ISP's won't give you custom reverse DNS. My collocation data center does, bust all the calendar servers i've set up, were in small office networks with small mac mini servers. I feel like I'm missing some part of this equation?

    Why? Modern IP network security and user authentication is based on forward DNS, and particularly on matching forward and reverse DNS.
    More than iCal Server here, Mac OS X Server itself expects functional DNS.
    If you're running privately, the easiest approach is the obvious one: [set up your DNS|http://labs.hoffmanlabs.com/node/1436] and be done with it.
    Mac OS X Server can get wonky with no DNS and can get particularly wonky with bad DNS. And the authentication services can get particularly cranky in the absence of DNS. (That's why SLS sets up its own very private rDNS environment for itself during the installation, when installed in the absence of local DNS.)
    nb: iCal doesn't need the SRV records if you're on the default ports.
    Or for running your iCal publicly? You're in a slightly tough spot with your ISP. Try it. Like with the mail server and other services, I'd tend to have issues with mismatching reverse DNS. Or connect into and use a tunnel, as that reduces the "fun factor" with network security and dealing with the yutzes that attack everybody's servers, in addition masking to the rDNS aspects.

  • Since upgrading to Yosemite on my iMac, My Mail app refuses to open, Safari won't load, and I can't upload pictures from my iPad... Please help, any ideas very welcome. I've had my iMac since 2011, and have never had any issues to deal with before..

    Since upgrading to Yosemite on my iMac: My Mail app refuses to open, Safari won't load, and I can't upload pictures from my iPad...
    Please help, any ideas very welcome. I've had my iMac since 2011, and have never had any issues to deal with before..
    Thanks

    29/11/2014 20:17:01.315 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 11 seconds. Pushing respawn out by 49 seconds.
    29/11/2014 20:17:37.013 com.apple.backupd[616]: Finished scan
    29/11/2014 20:17:43.108 com.apple.backupd[616]: Saved event cache at
    /Volumes/Time Machine Backups/Backups.backupdb/Geoff Lambrechts’s iMac
    (2)/2014-11-29-200648.inProgress/9B453663-603F-40B8-AC21-24F05C724E15/.6162AD34- 38F8-30AB-98E0-4A22FB9D311F.eventdb
    29/11/2014 20:17:43.207 com.apple.backupd[616]: Not using file event
    preflight for Macintosh HD
    29/11/2014 20:18:01.561 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 11 seconds. Pushing respawn out by 49 seconds.
    29/11/2014 20:18:16.288 com.apple.xpc.launchd[1]:
    (com.apple.quicklook[715]) Endpoint has been activated through legacy
    launch(3) APIs. Please switch to XPC or bootstrap_check_in():
    com.apple.quicklook
    29/11/2014 20:18:23.705 com.apple.SecurityServer[56]: Session 100013 created
    29/11/2014 20:18:32.046 mdworker[718]: code validation failed in the
    process of getting signing information: Error Domain=NSOSStatusErrorDomain
    Code=-67062 "The operation couldn’t be completed. (OSStatus error -67062.)"
    29/11/2014 20:19:01.662 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 11 seconds. Pushing respawn out by 49 seconds.
    29/11/2014 20:19:45.458 com.apple.xpc.launchd[1]:
    (com.apple.imfoundation.IMRemoteURLConnectionAgent) The
    _DirtyJetsamMemoryLimit key is not available on this platform.
    29/11/2014 20:19:59.123 com.apple.xpc.launchd[1]:
    (com.apple.PubSub.Agent[725]) Endpoint has been activated through legacy
    launch(3) APIs. Please switch to XPC or bootstrap_check_in():
    com.apple.pubsub.ipc
    29/11/2014 20:19:59.123 com.apple.xpc.launchd[1]:
    (com.apple.PubSub.Agent[725]) Endpoint has been activated through legacy
    launch(3) APIs. Please switch to XPC or bootstrap_check_in():
    com.apple.pubsub.notification
    29/11/2014 20:20:01.138 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 10 seconds. Pushing respawn out by 50 seconds.
    29/11/2014 20:21:01.484 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 10 seconds. Pushing respawn out by 50 seconds.
    29/11/2014 20:21:13.430 com.apple.backupd[616]: Found 4529 files (1.1 GB)
    needing backup
    29/11/2014 20:21:18.786 com.apple.backupd[616]: 2.82 GB required (including
    padding), 1.24 TB available
    29/11/2014 20:21:31.775 Console[734]: Failed to connect (_consoleX) outlet
    from (NSApplication) to (ConsoleX): missing setter or instance variable
    29/11/2014 20:21:34.230 WindowServer[162]: disable_update_timeout: UI
    updates were forcibly disabled by application "Console" for over 1.00
    seconds. Server has re-enabled them.
    29/11/2014 20:21:36.898 WindowServer[162]: common_reenable_update: UI
    updates were finally reenabled by application "Console" after 3.67 seconds
    (server forcibly re-enabled them after 1.00 seconds)
    29/11/2014 20:21:36.971 coreservicesd[83]: SFLEntryBase::ListHasChanged
    mach_msg returned 10000004d
    29/11/2014 20:22:01.817 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 10 seconds. Pushing respawn out by 50 seconds.
    29/11/2014 20:23:02.170 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 10 seconds. Pushing respawn out by 50 seconds.
    29/11/2014 20:24:02.547 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 10 seconds. Pushing respawn out by 50 seconds.
    29/11/2014 20:25:02.168 CalendarAgent[218]:
    [Refusing to parse response
    to PROPPATCH because of content-type: .]
    29/11/2014 20:25:02.233 CalendarAgent[218]:
    [Refusing to parse response
    to PROPPATCH because of content-type: .]
    29/11/2014 20:25:02.236 CalendarAgent[218]:
    [Refusing to parse response
    to PROPPATCH because of content-type: .]
    29/11/2014 20:25:02.284 CalendarAgent[218]:
    [Refusing to parse response
    to PROPPATCH because of content-type: .]
    29/11/2014 20:25:03.059 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 10 seconds. Pushing respawn out by 50 seconds.
    29/11/2014 20:25:12.674 com.apple.xpc.launchd[1]:
    (com.apple.imfoundation.IMRemoteURLConnectionAgent) The
    _DirtyJetsamMemoryLimit key is not available on this platform.
    29/11/2014 20:26:03.464 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 10 seconds. Pushing respawn out by 50 seconds.
    29/11/2014 20:27:03.841 com.apple.xpc.launchd[1]: (jp.buffalo.NASPower)
    Service only ran for 10 seconds. Pushing respawn out by 50 seconds.
    On 29 November 2014 at 19:29, Apple Support Communities Updates <

  • A different way to deal with "unknown" user after upgrade from Tiger.

    It's a known issue that doing upgrade and install or archive and install from Tiger to Leopard, produces a lot of folders with "unknown" group in their "get info" panel. This has to do with a different group structure in Tiger and Leopard.
    In Tiger, every user has their own private group with the same name as the username. That group is set to be user's primary group.
    In leopard, every new user with an account is a member of the group staff (gid=20) which is not present in Tiger. Leopard doesn't fully understand Tiger's private group structure, hence the "unknown" group. This causes various problems such as Finder crashes when trying to change the permissions and ownership in the get info window.
    Apple's proposed way of dealing with this is described [here|http://docs.info.apple.com/article.html?artnum=307128].
    However, this method doesn't change the existing group structure and doesn't resolve all the problems.
    I'd like to suggest a different way of dealing with it.
    1. create a new admin user (if you don't have one already), log out of your primary account and log into the new one.
    2. enter the following in terminal:
    *sudo dscl . delete /users/"username"*
    where username is the short name of the user on the main account (not the one you are currently logged into).
    This will delete that user.
    3. Log out/in.
    4. go to system preferences->accounts and create a new user with the name and short name exactly as the one you've deleted in step 2.
    You'll be get a popup saying that a home directory by this name already exists and asking if you want to use it. Say "Yes".
    That's it. Your main user will be recreated using the native group structure of Leopard with gid=20(staff). Permissions on your home directory will be reset with correct group and ownership.
    I tested the process on my powerbook after an upgrade and install from Tiger to leopard and it worked without a hitch.
    I like this method better than Apple's because it completely gets rid of Tiger's group structure which was creating all the confusion. The only downside as far as I can see is that you might have to manually change the group ownership on some files belonging to the main user that sit outside your home directory.
    I would appreciate any comments on this.

    hmm, I confess, I did this before installing 10.5.2 so i can't say for sure. However, I've dealt with a few people (see e.g. this [thread|http://discussions.apple.com/thread.jspa?messageID=7012957]) who are running 10.5.2 and still have this issue. I don't know what if anything 10.5.2 did about this but I'm quite sure that it didn't change the group structure inherited from Tiger.
    Message was edited by: V.K.

  • How should I deal with exceptions?

    I have three possible choices that I see:
    (1) Deal with them in an exception handler class. Use try/catch/throw in the class. Have throw call a method in the exception handler class.
    (2) Use try/catch/throw and handle the exception in the same class where the exception occurs.
    (3) Use throws and deal with the exceptions in the mediator class. The mediator class allows for communication between my FileHandler class, my DBHandler class, my UIClass, and any future classes.
    Note that for each exception, I want to call a method in the UI class that displays a message to the user about the error so it can be debugged and a method in some class to write the error to an error log text file.

    Handling
    can mean as little as logging the error.I'm gonna have to go ahead and disagree with youthere, %.
    Disagree with me? This cannot be tolerated! 8)Watch it, lest yet get yer ass smote.
    Except for where you're intentionally
    smothering exceptions in finally blocks, or maybe
    just recording an InterruptedException, justlogging
    it is little better than smothering it. So what about unchecked exceptions? Are these .NET
    demon spawn?I let unchecked exceptions bubble up. I'd expect an appserver to catch and log them, so that a bug in one app doesn't cause the whole server to barf. But other than that kind of situation, these are exceptions that you usually shouldn't try to handle.
    >
    I'm curious, since this thread is so much about
    handling exceptions. What do people do besides
    report them? If you get a SQL exception, what
    recovery actions are you taking? Anything that I'm
    missing?Usually it just bubbles up, or it's a wrapped in a more appropriate or layer-specific exception and rethrown. Sometimes there might be a retry, but usually the exception bubbles up to the higher layers and gets presented to the user as something like, "Could not connect. Retry?" What I hate to see is this:
    try {
        // get stuff from the DB
    catch (SQLExeption exc) {
        // log it
    // Continue here (where "here" may be the calling method)
    // with no idea that anything went wong.If you do that, you might as well not have an exception mechanism. Just go back to return codes and don't bother checking them.

Maybe you are looking for

  • Get URL + load Movie

    I am going from one Flash site to another and use the get URL code just fine getURL(" http://www.site2.com). When I get to site2 how does one pass loadMovie or other commands to site2 flash from site 1 with the get URL command? Is that a case for sha

  • Error Download() failed. 80072efe.

    hello i have a problem deploying a OS( win 7 sp1 ), always error Download() failed. 80072efe. SendWinHttpRequest failed. 80072efe. my SCCM ( 2012 r2 cu2 ) is in miami and the clients/pc are in the  El salvador. i have two local DP and the same proble

  • Names of Personalities

    Names of personalities on OTN home page (alt attribute of image) contains "Kim Floss" for all. Means, when I put my mouse pointer on Steven's pic, it says in yellow box "Kim Floss". :) Hope, you'll understand. Aamir Abbas

  • Tool for building a java application's installer

    I'm searching for a tool for creating an installer for a java application. Just found InstallAnywhere... It looks very attractive, but it costs... was wondering if is there anything free.

  • Formatted search not updating

    Hello Experts, I have created a Formatted search on AR invoice document for an UDF and auto refresh is set on Document series. The FMs works fine for all series except for one which is set as default in document numbering. The values are in UDF not s