I/O error result code= -36 ???? Please help!!

Im running studio with apogee duet, just got the apple care (god bless it) superdrive replacement, now I get audio input output functioning realtime, but *** soon as I attempt to record the error pops up. I cant find anyone else with this problem, and apogee unfortunately was clueless. I find it strange that an I/O error is occurring when I pass audio in/out no problem. It blasts the error as soon as I press that quick key R.
I'm running ProTools8 in the meantime on a MBox and it feels so inadequate/fake/unprofessional/. Show me why it was a good thing apple bought out E-Magic fellas!!!
P.S. where do you guy get the definitions of these codes?

I have never experienced that error, but I Googled "I/O Error: Result Code=-36" and found this...
It really has nothing to do with Logic. It is a Mac OSX error being passed on
by Logic. It has to do with not being able to write to the drive. You can
get this error in Logic if your recording drive is too full, is too
fragmented, or the directory is messed up.
Some things you can do to solve the problem are: Make sure you are recording
to a drive other then the system drive, make sure you have plenty of free
space on the recording drive, repair permissions, defrag the recording
drive, or run a disk utility like Disk Warrior to check and repair directory
issues.
Hans
here is the link to that ...
http://logic-users.org/forums/LUG/thread/81375

Similar Messages

  • Hi.my itunes appear this error ERROE CODE:1009 please help me

    hi.my itunes appear this error ERROE CODE:1009 please help me

    Read my post. I don't know if you're having the same problem but I hope this helps. http://discussions.apple.com/thread.jspa?threadID=1351705&tstart=0
    Message was edited by: Happyfish

  • Error Result Code -48?  Help...won't record!

    I use G-band for basic VO recording in my home studio into my Powerbook. I run a simple stereo line-in and record to a completely basic stereo track. Nothing fancy. This has worked flawlessly for months.
    Just now, in mid-session, I click on the red Record button and I get this message: Error Result Code -48. It doesn't begin to record at all. The message is immediate, and it won't record.
    This program is pretty vital to my business. Can anyone help me figure this out?? I have restarted the program, shutdown and restarted the Powerbook. No luck.
    Any help?!
    ge

    You could try some web searches. I just know some of them because I've run into them while programming, and have some notes scattered about here and there for some of the less common ones, but not all of them.

  • Error code  "File not found Result code = -43"  PLEASE HELP!

    I keep getting this error message: "File not found Result code = -43" when trying to load instruments from the media tab. Does anyone know why this is happening and know how to fix this problem? I'm in the middle of a project and need help! Thanks.

    So, I've narrowed down the problem to happening with the following steps (could someone possibly try this and see if the same problem is happening?)
    If I load an instrument track and its blank and select a GARAGEBAND loop from the media list, I get the error message.
    If I load a new instrument track and select any other instrument from the media list (besides a Garageband instrument) everything loads fine, AND THEN if I select a Garageband instrument from the list, it loads fine with no error.
    If I select "No plug-in" in the channel strip after this, and try to load a Garageband loop, I get the error message and all other instruments from the media lists fail to load until I select "no-plugin" again from the channel strip and select an instrument from the media list BESIDES a Garageband instrument and then go from there (and can then load a Garageband instrument).
    Is anything like this happening to anyone else? Does anyone have any ideas why this would be happening?

  • Error in code: Urgent, Please help, thanks alot

    I'm getting two errors with the following code. The code is supposed to read in a text file with the format
    11
    blue casual
    green athletic
    red athletic
    The first number represents the numbers of socks. The code is supposed to ouput the number of pairs, so if there were 2 red athletic , it would say
    1 matching pair
    1 pair of red athletic
    If possible can someone run my code to see if they can get it to output that, I'm having a hard time doing it.
    here is the code
    import java.io.*;
    public class Socks {
    public static void main(String args[])
    try
         String socks[1000];
    int pairs[500];
    int numOfsocks;
    int i;
    int j;     
    FileReader fr = new FileReader("test.txt");
    BufferedReader inFile = new BufferedReader(fr);
    numOfsocks = Integer.parseInt(inFile.readLine());
    int possiblePairs = numOfsocks/2;
    for(i = 0; i < numOfsocks; i++)
    socks[i] = inFile.readLine();
    for(i = 0; i <= possiblePairs;i++)
         for(j = i; j<=possiblePairs;j++)
         if (socks.equalsIgnoreCase(socks[j]))
              pairs[i] = i++;
    for(i = 0; i <= possiblePairs;i++);
    if(pairs[i] >= 2)
    System.out.println(pairs[i]/2 + " pairs" + socks[i]);
    inFile.close();     
    catch(IOException e){}
              System.out.println("File Not Found or no File Specified");
    --------------------Configuration: Socks - JDK version 1.3.1_04 <Default>--------------------
    C:\Socks\Socks.java:13: ']' expected
         String socks[1000];
    ^
    C:\Socks\Socks.java:14: ']' expected
    int pairs[500];
    ^
    2 errors

    consider the following
    not for copying
    but for studying working code
    to help clarify ideas
    import java.io.*;
    list items and count of each item
    in a list of socks
    file has list of socks ...
    4
    red sock
    green sock
    blue sock
    green sock
    the first line is n = count of socks
    if no socks match, there are n items
    for example : 3 items in ...
    3
    red sock
    blue sock
    green sock
    if all socks match there is one item
    for example : 1 item in ...
    3
    red sock
    red sock
    red sock
    if socks come in pairs, there are at most n/2 items
    for example : 2 items in ...
    4
    red sock
    green sock
    red sock
    green sock
    program does not assume that socks come in pairs !!
    public class Socks {
    public static void main(String args[]) throws IOException
    String[] socks = new String[1000];
    int numOfsocks;
    String[] item = new String[1000];
    int[] count = new int[1000]; // initializes each count to zero
    int totalcount = 0;
    int i;
    int j;
    boolean ifound;
    FileReader fr = new FileReader("test.txt");
    BufferedReader inFile = new BufferedReader(fr);
    numOfsocks = Integer.parseInt(inFile.readLine());
    for (i = 0; i < numOfsocks; i++)
    socks[ i ] = inFile.readLine();
    inFile.close();
    for (i = 0; i < numOfsocks; i++) {
    ifound = false;
    for (j = 0; j < totalcount; j++) {
    if (socks[ i ].equalsIgnoreCase(item[j])) {
    ifound = true;
    count[j]++; // increase count for matched item
    break; // exit "for j loop"
    } // for j
    // sock not found so add it to item list ...
    if (ifound == false) {
    item[totalcount] = socks[ i ];
    count[totalcount] = 1;
    totalcount++;
    } // for i
    for (i = 0; i < totalcount; i++)
    System.out.println (item[ i ] + ", count = " + count[ i ]);
    } // class

  • Error in code..please help

    Hi,
    I'm writing a SIP messaging klient and i am having problem with connecting the client to my SIP-server (OpenSER)
    javax.sip.InvalidArgumentException: 300:[email protected]: 300:[email protected]
    at gov.nist.javax.sip.SipStackImpl.createListeningPoint(SipStackImpl.java:645)
    at sipTrade.createProvider(sip.java:274)
    at sipTrade.main(sip.java:299)
    Caused by: java.net.UnknownHostException: 300:[email protected]: 300:[email protected]
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getByName(Unknown Source)
    at gov.nist.javax.sip.SipStackImpl.createListeningPoint(SipStackImpl.java:625)
    ... 2 more
    import java.io.*;
    import javax.sip.*;
    import javax.sip.address.*;
    import javax.sip.header.*;
    import javax.sip.message.*;
    import java.util.*;
    public class sip implements SipListener {
         private static AddressFactory addressFactory;
         private static MessageFactory messageFactory;
         private static HeaderFactory headerFactory;
         private static SipStack sipStack;
         private int port;
         protected SipProvider udpProvider;
         protected Dialog dialog;
         protected int notifyCount = 0;
         protected final String serverIP = "300:[email protected]";
         class MyEventSource implements Runnable {
              private sipTrade st;
              private EventHeader eventHeader;
              public MyEventSource(sipTrade notifier, EventHeader eventHeader ) {
                   this.st = notifier;
                   this.eventHeader = eventHeader;
              public void run() {
                   try {
                        for (int i = 0; i < 100; i++) {
                             Thread.sleep(100);
                             Request request = this.st.dialog.createRequest(Request.NOTIFY);
                             SubscriptionStateHeader subscriptionState = headerFactory.createSubscriptionStateHeader(SubscriptionStateHeader.ACTIVE);
                             request.addHeader(subscriptionState);
                             request.addHeader(eventHeader);
                             // Lets mark our Contact
                             ((SipURI)dialog.getLocalParty().getURI()).setParameter("id","not2");
                             ClientTransaction ct = udpProvider.getNewClientTransaction(request);
                             System.out.println("NOTIFY Branch ID "+((ViaHeader)request.getHeader(ViaHeader.NAME)).getParameter("branch"));
                             this.st.dialog.sendRequest(ct);
                             System.out.println("Dialog " + dialog);
                             System.out.println("Dialog state after active NOTIFY: " + dialog.getState());
                             synchronized (sipTrade.this) {
                             notifyCount ++;
                   } catch (Throwable e) {
                        e.printStackTrace();
         private static void usage() {
              System.exit(0);
         public void processRequest(RequestEvent requestEvent) {
              Request request = requestEvent.getRequest();
              ServerTransaction serverTransactionId = requestEvent.getServerTransaction();
              System.out.println("\n\nRequest " + request.getMethod()+" received at " + sipStack.getStackName()+" with server transaction id " + serverTransactionId+" and dialog id "+requestEvent.getDialog());
              if (request.getMethod().equals(Request.SUBSCRIBE)) {
                   processSubscribe(requestEvent, serverTransactionId);
          * Process the invite request.
         public void processSubscribe(RequestEvent requestEvent,
                   ServerTransaction serverTransaction) {
              SipProvider sipProvider = (SipProvider) requestEvent.getSource();
              Request request = requestEvent.getRequest();
              try {
                   System.out.println("notifier: got an Subscribe sending OK");
                   System.out.println("notifier:  " + request);
                   System.out.println("notifier : dialog = " + requestEvent.getDialog());
                   EventHeader eventHeader = (EventHeader) request.getHeader(EventHeader.NAME);
                   if ( eventHeader == null) {
                        System.out.println("Cannot find event header.... dropping request.");
                        return;
                   // Always create a ServerTransaction, best as early as possible in the code
                   Response response = null;
                   ServerTransaction st = requestEvent.getServerTransaction();               
                   if (st == null) {
                        st = sipProvider.getNewServerTransaction(request);
                   // Check if it is an initial SUBSCRIBE or a refresh / unsubscribe
                   boolean isInitial = requestEvent.getDialog() == null;
                   if ( isInitial ) {
                        // need random tags to test forking
                        String toTag = Integer.toHexString( (int) (Math.random() * Integer.MAX_VALUE) );
                        response = messageFactory.createResponse(202, request);
                        ToHeader toHeader = (ToHeader) response.getHeader(ToHeader.NAME);
                        // Sanity check: to header should not ahve a tag. Else the dialog
                        // should have matched
                        if (toHeader.getTag()!=null) {
                             System.err.println( "####ERROR: To-tag!=null but no dialog match! My dialog=" + dialog.getState() );
                        toHeader.setTag(toTag); // Application is supposed to set.
                        this.dialog = st.getDialog();
                        // subscribe dialogs do not terminate on bye.
                        this.dialog.terminateOnBye(false);
                        if (dialog != null) {
                             System.out.println("Dialog " + dialog);
                             System.out.println("Dialog state " + dialog.getState());
                   } else {
                        response = messageFactory.createResponse(200, request);
                   // Both 2xx response need a Contact
                   Address address = addressFactory.createAddress("xTrade <sip:127.0.0.1>");
                   ((SipURI)address.getURI()).setPort( udpProvider.getListeningPoint("udp").getPort() );                    
                   ContactHeader contactHeader = headerFactory.createContactHeader(address);               
                   response.addHeader(contactHeader);
                   // Expires header is mandatory in 2xx responses to SUBSCRIBE
                   ExpiresHeader expires = (ExpiresHeader) request.getHeader( ExpiresHeader.NAME );
                   if (expires==null) {
                        expires = headerFactory.createExpiresHeader(30);     // rather short
                   response.addHeader( expires );
                   st.sendResponse(response);
                    * NOTIFY requests MUST contain a "Subscription-State" header with a
                    * value of "active", "pending", or "terminated". The "active" value
                    * indicates that the subscription has been accepted and has been
                    * authorized (in most cases; see section 5.2.). The "pending" value
                    * indicates that the subscription has been received, but that
                    * policy information is insufficient to accept or deny the
                    * subscription at this time. The "terminated" value indicates that
                    * the subscription is not active.
                   Request notifyRequest = dialog.createRequest( "NOTIFY" );
                   // Mark the contact header, to check that the remote contact is updated
                   ((SipURI)contactHeader.getAddress().getURI()).setParameter("id","not");
                   // Initial state is pending, second time we assume terminated (Expires==0)
                   SubscriptionStateHeader sstate = headerFactory.createSubscriptionStateHeader(
                             isInitial ? SubscriptionStateHeader.PENDING : SubscriptionStateHeader.TERMINATED );
                   // Need a reason for terminated
                   if ( sstate.getState().equalsIgnoreCase("terminated") ) {
                        sstate.setReasonCode( "deactivated" );
                   notifyRequest.addHeader(sstate);
                   notifyRequest.setHeader(eventHeader);
                   notifyRequest.setHeader(contactHeader);
                   // notifyRequest.setHeader(routeHeader);
                   ClientTransaction ct = udpProvider.getNewClientTransaction(notifyRequest);
                   // Let the other side know that the tx is pending acceptance
                   dialog.sendRequest(ct);
                   System.out.println("NOTIFY Branch ID " +
                        ((ViaHeader)request.getHeader(ViaHeader.NAME)).getParameter("branch"));
                   System.out.println("Dialog " + dialog);
                   System.out.println("Dialog state after pending NOTIFY: " + dialog.getState());
                   if (isInitial) {
                        Thread myEventSource = new Thread(new MyEventSource(this,eventHeader));
                        myEventSource.start();
              } catch (Throwable ex) {
                   ex.printStackTrace();
                   // System.exit(0);
         public synchronized void processResponse(ResponseEvent responseReceivedEvent) {
              Response response = (Response) responseReceivedEvent.getResponse();
              Transaction tid = responseReceivedEvent.getClientTransaction();
              if ( response.getStatusCode() !=  200 ) {
                   this.notifyCount --;
              } else {
                  System.out.println("Notify Count = " + this.notifyCount);
         public void processTimeout(javax.sip.TimeoutEvent timeoutEvent) {
              Transaction transaction;
              if (timeoutEvent.isServerTransaction()) {
                   transaction = timeoutEvent.getServerTransaction();
              } else {
                   transaction = timeoutEvent.getClientTransaction();
              System.out.println("state = " + transaction.getState());
              System.out.println("dialog = " + transaction.getDialog());
              System.out.println("dialogState = "
                        + transaction.getDialog().getState());
              System.out.println("Transaction Time out");
        private static void initFactories ( int port ) throws Exception {
              SipFactory sipFactory = SipFactory.getInstance();
              sipFactory.setPathName("gov.nist");
              Properties properties = new Properties();
              properties.setProperty("javax.sip.STACK_NAME", "notifier" + port );
              // You need 16 for logging traces. 32 for debug + traces.
              // Your code will limp at 32 but it is best for debugging.
              properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "32");
              properties.setProperty("gov.nist.javax.sip.DEBUG_LOG",
                        "notifierdebug_"+port+".txt");
              properties.setProperty("gov.nist.javax.sip.SERVER_LOG",
                        "notifierlog_"+port+".txt");
              try {
                   // Create SipStack object
                   sipStack = sipFactory.createSipStack(properties);
                   System.out.println("sipStack = " + sipStack);
              } catch (PeerUnavailableException e) {
                   // could not find
                   // gov.nist.jain.protocol.ip.sip.SipStackImpl
                   // in the classpath
                   e.printStackTrace();
                   System.err.println(e.getMessage());
                   if (e.getCause() != null)
                        e.getCause().printStackTrace();
                   System.exit(0);
              try {
                   headerFactory = sipFactory.createHeaderFactory();
                   addressFactory = sipFactory.createAddressFactory();
                   messageFactory = sipFactory.createMessageFactory();
              } catch  (Exception ex) {
                   ex.printStackTrace();
                   System.exit(0);
         public void createProvider() {
              try {
                   ListeningPoint lp = sipStack.createListeningPoint(this.serverIP, this.port, "udp");
                   this.udpProvider = sipStack.createSipProvider(lp);
                   System.out.println("udp provider " + udpProvider);
              } catch (Exception ex) {
                   System.out.println((ex.getMessage()));
                   ex.printStackTrace();
                   usage();
         public sipTrade( int port ) {
              this.port = port;
         public sipTrade(){
         public static void main(String args[]) throws Exception {
              int port = args.length > 0 ? Integer.parseInt(args[0]) : 5060;
              initFactories( port );
              sipTrade notifier = new sipTrade( port );
              notifier.createProvider( );
              notifier.udpProvider.addSipListener(notifier);
              //sipTrade st = new sipTrade();
              //st.Send2xTrade("198202050897", "testdata");
              //st.getXTmsg(0);
         public void processIOException(IOExceptionEvent exceptionEvent) {
         public void processTransactionTerminated(
                   TransactionTerminatedEvent transactionTerminatedEvent) {
         public void processDialogTerminated(
                   DialogTerminatedEvent dialogTerminatedEvent) {
              // TODO Auto-generated method stub
          * Xtrade connection - DATA IN
          public void Send2xTrade(String data, String info) {
               try{
                    IServer is = ServerFactory.createObject(ip);
                    is.logOn(clientName_in, SessionType.LogOnRxTx);
                    is.sendMsg(contract_in,MsgPriority.Def, data.getBytes(), info);
                    is.logOff();
               catch (Exception e){
                    e.printStackTrace();
                    System.err.println(e.getMessage());
          public void getXTmsg(int xtMsgAck){
              IMsg msg;               // A single xTrade message
              MsgInfo msgInfo = null;      // Message information
              byte[] theData;
              try {
                   IServer is = ServerFactory.createObject(ip);
                   is.logOn(clientName_out, SessionType.LogOnRxTx);
                   msg = is.createNextRxMsg(contract_out);
                   FileOutputStream myStream = new FileOutputStream("rx" + msg.getHandle() + ".msg");     // Create the stream                    
                   msg.getData(myStream);
                   myStream.close();
                   if(msgInfo.getAcknowledge() == false){
                             msg.setReceived();
                        else if(msgInfo.getAcknowledge() == true && xtMsgAck == 0){
                              msg.setReceived();
                              msg.setAck();
                         else if(msgInfo.getAcknowledge() == true && xtMsgAck == 1){
                              msg.setReceived();
                              msg.setNack();
                   is.logOff();
              }catch (XTException e){
              catch(Exception e){
    }

    Made som more fixes:
    sipStack = gov.nist.javax.sip.SipStackImpl@e24e2a
    sipStack = gov.nist.javax.sip.SipStackImpl@e24e2a
    SipProviders: java.util.LinkedList$ListItr@1a73d3c
    AddressFactory: class gov.nist.javax.sip.address.AddressFactoryImpl
    InvalidArgumentException Cannot assign requested address: Cannot bindjavax.sip.InvalidArgumentException: Cannot assign requested address: Cannot bind
         at gov.nist.javax.sip.SipStackImpl.createListeningPoint(SipStackImpl.java:645)
         at sipClient.createProvider(sipClient.java:267)
         at sipClient.main(sipClient.java:302)
    Caused by: java.io.IOException: Cannot assign requested address: Cannot bind
         at gov.nist.javax.sip.stack.UDPMessageProcessor.<init>(UDPMessageProcessor.java:135)
         at gov.nist.javax.sip.stack.SIPTransactionStack.createMessageProcessor(SIPTransactionStack.java:1652)
         at gov.nist.javax.sip.SipStackImpl.createListeningPoint(SipStackImpl.java:626)
         ... 2 more
    Exception in thread "main" java.lang.NullPointerException
         at sipClient.main(sipClient.java:303)
    import java.io.*;
    import javax.sip.*;
    import javax.sip.address.*;
    import javax.sip.header.*;
    import javax.sip.message.*;
    import java.util.*;
    public class sipClient implements SipListener {
         private static AddressFactory addressFactory;
         private static MessageFactory messageFactory;
         private static HeaderFactory headerFactory;
         private static Address address;
         private static SipStack sipStack;
         private int port;
         protected SipProvider udpProvider;
         protected Dialog dialog;
         protected int notifyCount = 0;
         public static final int PORT_5060 = 5070;     
         protected final String serverIP = "192.168.1.99";
         class MyEventSource implements Runnable {
              private sipClient st;
              private EventHeader eventHeader;
              public MyEventSource(sipClient notifier, EventHeader eventHeader ) {
                   this.st = notifier;
                   this.eventHeader = eventHeader;
              public void run() {
                   try {
                        for (int i = 0; i < 100; i++) {
                             Thread.sleep(100);
                             Request request = this.st.dialog.createRequest(Request.NOTIFY);
                             SubscriptionStateHeader subscriptionState = headerFactory.createSubscriptionStateHeader(SubscriptionStateHeader.ACTIVE);
                             request.addHeader(subscriptionState);
                             request.addHeader(eventHeader);
                             // Lets mark our Contact
                             ((SipURI)dialog.getLocalParty().getURI()).setParameter("id","not2");
                             ClientTransaction ct = udpProvider.getNewClientTransaction(request);
                             System.out.println("NOTIFY Branch ID "+((ViaHeader)request.getHeader(ViaHeader.NAME)).getParameter("branch"));
                             this.st.dialog.sendRequest(ct);
                             System.out.println("Dialog " + dialog);
                             System.out.println("Dialog state after active NOTIFY: " + dialog.getState());
                             synchronized (sipClient.this) {
                             notifyCount ++;
                   } catch (Throwable e) {
                        e.printStackTrace();
         private static void usage() {
              System.exit(0);
         public void processRequest(RequestEvent requestEvent) {
              Request request = requestEvent.getRequest();
              ServerTransaction serverTransactionId = requestEvent.getServerTransaction();
              System.out.println("\n\nRequest " + request.getMethod()+" received at " + sipStack.getStackName()+" with server transaction id " + serverTransactionId+" and dialog id "+requestEvent.getDialog());
              if (request.getMethod().equals(Request.SUBSCRIBE)) {
                   processSubscribe(requestEvent, serverTransactionId);
          * Process the invite request.
         public void processSubscribe(RequestEvent requestEvent,
                   ServerTransaction serverTransaction) {
              SipProvider sipProvider = (SipProvider) requestEvent.getSource();
              Request request = requestEvent.getRequest();
              try {
                   System.out.println("notifier: got an Subscribe sending OK");
                   System.out.println("notifier:  " + request);
                   System.out.println("notifier : dialog = " + requestEvent.getDialog());
                   EventHeader eventHeader = (EventHeader) request.getHeader(EventHeader.NAME);
                   if ( eventHeader == null) {
                        System.out.println("Cannot find event header.... dropping request.");
                        return;
                   // Always create a ServerTransaction, best as early as possible in the code
                   Response response = null;
                   ServerTransaction st = requestEvent.getServerTransaction();               
                   if (st == null) {
                        st = sipProvider.getNewServerTransaction(request);
                   // Check if it is an initial SUBSCRIBE or a refresh / unsubscribe
                   boolean isInitial = requestEvent.getDialog() == null;
                   if ( isInitial ) {
                        // need random tags to test forking
                        String toTag = Integer.toHexString( (int) (Math.random() * Integer.MAX_VALUE) );
                        response = messageFactory.createResponse(202, request);
                        ToHeader toHeader = (ToHeader) response.getHeader(ToHeader.NAME);
                        // Sanity check: to header should not ahve a tag. Else the dialog
                        // should have matched
                        if (toHeader.getTag()!=null) {
                             System.err.println( "####ERROR: To-tag!=null but no dialog match! My dialog=" + dialog.getState() );
                        toHeader.setTag(toTag); // Application is supposed to set.
                        this.dialog = st.getDialog();
                        // subscribe dialogs do not terminate on bye.
                        this.dialog.terminateOnBye(false);
                        if (dialog != null) {
                             System.out.println("Dialog " + dialog);
                             System.out.println("Dialog state " + dialog.getState());
                   } else {
                        response = messageFactory.createResponse(200, request);
                   // Both 2xx response need a Contact
                   address = addressFactory.createAddress("xTrade <sip:192.168.1.99>");
                   ((SipURI)address.getURI()).setPort( udpProvider.getListeningPoint("udp").getPort() );                    
                   ContactHeader contactHeader = headerFactory.createContactHeader(address);               
                   response.addHeader(contactHeader);
                   // Expires header is mandatory in 2xx responses to SUBSCRIBE
                   ExpiresHeader expires = (ExpiresHeader) request.getHeader( ExpiresHeader.NAME );
                   if (expires==null) {
                        expires = headerFactory.createExpiresHeader(30);     // rather short
                   response.addHeader( expires );
                   st.sendResponse(response);
                    * NOTIFY requests MUST contain a "Subscription-State" header with a
                    * value of "active", "pending", or "terminated". The "active" value
                    * indicates that the subscription has been accepted and has been
                    * authorized (in most cases; see section 5.2.). The "pending" value
                    * indicates that the subscription has been received, but that
                    * policy information is insufficient to accept or deny the
                    * subscription at this time. The "terminated" value indicates that
                    * the subscription is not active.
                   Request notifyRequest = dialog.createRequest( "NOTIFY" );
                   // Mark the contact header, to check that the remote contact is updated
                   ((SipURI)contactHeader.getAddress().getURI()).setParameter("id","not");
                   // Initial state is pending, second time we assume terminated (Expires==0)
                   SubscriptionStateHeader sstate = headerFactory.createSubscriptionStateHeader(
                             isInitial ? SubscriptionStateHeader.PENDING : SubscriptionStateHeader.TERMINATED );
                   // Need a reason for terminated
                   if ( sstate.getState().equalsIgnoreCase("terminated") ) {
                        sstate.setReasonCode( "deactivated" );
                   notifyRequest.addHeader(sstate);
                   notifyRequest.setHeader(eventHeader);
                   notifyRequest.setHeader(contactHeader);
                   // notifyRequest.setHeader(routeHeader);
                   ClientTransaction ct = udpProvider.getNewClientTransaction(notifyRequest);
                   // Let the other side know that the tx is pending acceptance
                   dialog.sendRequest(ct);
                   System.out.println("NOTIFY Branch ID " +
                        ((ViaHeader)request.getHeader(ViaHeader.NAME)).getParameter("branch"));
                   System.out.println("Dialog " + dialog);
                   System.out.println("Dialog state after pending NOTIFY: " + dialog.getState());
                   if (isInitial) {
                        Thread myEventSource = new Thread(new MyEventSource(this,eventHeader));
                        myEventSource.start();
              } catch (Throwable ex) {
                   ex.printStackTrace();
                   // System.exit(0);
         public synchronized void processResponse(ResponseEvent responseReceivedEvent) {
              Response response = (Response) responseReceivedEvent.getResponse();
              Transaction tid = responseReceivedEvent.getClientTransaction();
              if ( response.getStatusCode() !=  200 ) {
                   this.notifyCount --;
              } else {
                  System.out.println("Notify Count = " + this.notifyCount);
         public void processTimeout(javax.sip.TimeoutEvent timeoutEvent) {
              Transaction transaction;
              if (timeoutEvent.isServerTransaction()) {
                   transaction = timeoutEvent.getServerTransaction();
              } else {
                   transaction = timeoutEvent.getClientTransaction();
              System.out.println("state = " + transaction.getState());
              System.out.println("dialog = " + transaction.getDialog());
              System.out.println("dialogState = "
                        + transaction.getDialog().getState());
              System.out.println("Transaction Time out");
        private static void initFactories ( int port ) throws Exception {
              SipFactory sipFactory = SipFactory.getInstance();
              sipFactory.setPathName("gov.nist");
              Properties properties = new Properties();
              properties.setProperty("javax.sip.STACK_NAME", "notifier" + port );
              // You need 16 for logging traces. 32 for debug + traces.
              // Your code will limp at 32 but it is best for debugging.
              properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "32");
              properties.setProperty("gov.nist.javax.sip.DEBUG_LOG","Xtradedebug_"+port+".txt");
              properties.setProperty("gov.nist.javax.sip.SERVER_LOG","Xtradelog_"+port+".txt");
              properties.setProperty("javax.sip.OUTBOUND_PROXY","192.168.1.99:5070/UDP");
              properties.setProperty("javax.sip.USE_ROUTER_FOR_ALL_URIS", "true");
              properties.setProperty("javax.sip.AUTOMATIC_DIALOG_SUPPORT","ON");
              try {
                   // Create SipStack object
                   sipStack = sipFactory.createSipStack(properties);
                   System.out.println("sipStack = " + sipStack);
              } catch (PeerUnavailableException e) {
                   // could not find
                   // gov.nist.jain.protocol.ip.sip.SipStackImpl
                   // in the classpath
                   e.printStackTrace();
                   System.err.println(e.getMessage());
                   if (e.getCause() != null)
                        e.getCause().printStackTrace();
                   System.exit(0);
              try {
                   headerFactory = sipFactory.createHeaderFactory();
                   addressFactory = sipFactory.createAddressFactory();
                   messageFactory = sipFactory.createMessageFactory();
              } catch  (Exception ex) {
                   ex.printStackTrace();
                   System.exit(0);
         public void createProvider() {
              try {
                   System.out.println("sipStack = " + sipStack);
                   System.out.println("SipProviders: "+sipStack.getSipProviders().toString());
                   System.out.println("AddressFactory: "+addressFactory.getClass());
                   ListeningPoint lp = sipStack.createListeningPoint(this.serverIP, 5070, ListeningPoint.UDP);
                   this.udpProvider = sipStack.createSipProvider(lp);
                   System.out.println("udp provider " + udpProvider);
              }catch(SipException e){
                   System.out.print("SipException "+e.getMessage());
                   e.printStackTrace();
              /*catch(TransportNotSupportedException e){
                   System.out.print("TransportNotSupportedException "+e.getMessage());
              catch (InvalidArgumentException e){
                   System.out.print("InvalidArgumentException "+e.getMessage());
                   e.printStackTrace();
              catch (Exception ex) {
                   System.err.println((ex.getMessage()));
                   ex.printStackTrace();
                   usage();
         public sipClient( int port ) {
              this.port = port;
         public sipClient(){
         public static void main(String args[]) throws Exception {
              int port = args.length > 0 ? Integer.parseInt(args[0]) : 5070;
              initFactories( port );
              sipClient st = new sipClient( port );
              st.createProvider();
              st.udpProvider.addSipListener(st);
         public void processIOException(IOExceptionEvent exceptionEvent) {
         public void processTransactionTerminated(
                   TransactionTerminatedEvent transactionTerminatedEvent) {
         public void processDialogTerminated(
                   DialogTerminatedEvent dialogTerminatedEvent) {
              // TODO Auto-generated method stub
    }

  • I/O Error: Result Code=-36  HELP!!!

    Anyone got any idea what this is about? The problem in a nutshell is as follows...
    I'm running Logic 7.2.3 on a G5 (PowerPC version) with a dedicated, built in 250gig HD for audio. Over the last week I've suddenly become aware that everything I thought was being saved to this HD is impossible to access anymore and I get the above error code coming up each time.
    However, anything recorded to this HD prior to the last week still opens fine with no issues at all.
    Tell me I'm being stupid and have done something ridiculous, please!!! There's a whole lot of work down the drain if that's not the case.
    Any help you can offer would be greatly appreciated.
    Thanks.

    I have never experienced that error, but I Googled "I/O Error: Result Code=-36" and found this...
    It really has nothing to do with Logic. It is a Mac OSX error being passed on
    by Logic. It has to do with not being able to write to the drive. You can
    get this error in Logic if your recording drive is too full, is too
    fragmented, or the directory is messed up.
    Some things you can do to solve the problem are: Make sure you are recording
    to a drive other then the system drive, make sure you have plenty of free
    space on the recording drive, repair permissions, defrag the recording
    drive, or run a disk utility like Disk Warrior to check and repair directory
    issues.
    Hans
    here is the link to that ...
    http://logic-users.org/forums/LUG/thread/81375

  • Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service. 

    Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service.  I would prefer to talk to someone directly.

    Are you using any disk cleaner or optimization tools like CleanMymac or Mackeeper?
    Regards,
    Ashutosh

  • Cannot restore my brand new iphone 4s ,got stuck in DFU mode and itunes shows error code (-1) please help?

    Cannot restore my brand new iphone 4s ,got stuck in DFU mode and itunes shows error code (-1) please help?
    repeatedly tried from diffierent computers and the same error code pops up (error -1)

    That's a hardware problem which will require a trip to the Apple store for evaluation, unless your phone has been jailbroken, then it's a corrupt hosts file (and we can't help you with that here as it is against the forum's terms of use).

  • I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??

    I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??

    http://tinyurl.com/nyj36v

  • HT1338 I receive this message ,repeatedly,when I try to update an App through App store:Error code 1009.Please help,what should I do?

    I receive this message ,repeatedly,when I try to update an App through App store:Error code 1009.Please help,what should I do?

    The App Store is not available in Iran.

  • Trying to download ios 3 getting error code 8288  please help

    Have a first generation ipod touch, trying to download ios 3 to computer getting error code 8288, please help.

    I finally solved this on my own. I installed iTunes 9.2 on my Mac. You can get it from here:
    http://support.apple.com/kb/dl1056
    Then I went to the iOS 3 purchase page here:
    http://support.apple.com/kb/HT2052
    and clicked the Purchasing link. It opens up iTunes. I connected my iPod touch G1 and did a check for system update. Miraculously, it found it this time and downloaded the update.
    No guarantee that this'll work for you, but I'm finally able to use my iPod touch again and put on some useful apps.

  • "Error Result code = -43" AND "Audio file not found"

    In Garageband I was trying to  click Join, but kept getting "Error Result code = -43"
    What does this mean?
    Also, I thought saving the file and restarting Garageband would help, but upon re-opening the program BIG problem: the file (just this one, others are opening fine) has this error message upon opening "Audio file “07 I See the Light.aif” not found!"

    mcgregorsgal wrote:
    so do I have to basically start over?
    for that one recording, it looks like it.
    the error -43 is a system level error, so i HIGHLY doubt this will help, however you can ctrl-click the project file, choose Show Package Contents, open the media folder and preview any audio files in there to see if the missing file is there, but in all likelihood, you will need to re-record it

  • Mac OS error Result Code = 1852402768

    I have been using Handbrake to covert video files into apple TV format for a number of years & then every now & again burning the file to DVD which has worked fine.
    I don't know if this is just a coincidence but I downloaded a Handbrake update last night & then tried burning the newly converted files and using Toast Titanium but i received the following error "Mac OS error' Result Code = 1852402768"
    I've searched the forums and many suggest that the files could be too large for the DVD but there is a display on Toast that shows the size of the files & I can usually get 3 half hour episodes on no problem with free space remaining but to test this theory I dropped in just one file of less than a GB and the same error came up.
    I did however try burning some older files pre the handbrake update & they have worked fine.
    I don't know if I have to change any setting but currently I'm stuck, Any help out there??
    Many thanks
    JPGUK

    You might try looking/posting here.
    Handbrake Support

  • I/O Error result code -36: Logic bug, or Mac OSX bug?

    Hello-
    I encountered a problem in Logic Pro 8 today that severely damaged one of my audio files in my session. I was working in the sample editor, and I went to copy and paste an audio fragment. When I tried to paste the audio, this error came up:
    "I/O Error, result code = -36"
    After that, the cursor turned into a black and white spinner, and the audio file that I was working with suddenly was altered in a way that somehow erased a portion of it in the song. I had to ability to undo, view the changes in the audio file, etc, etc. It was damaged irreversibly, and I had to end up re-recording that segment. Does anyone know why this happens, and is it a bug in Logic?
    BTW, I have over 500 gigs free on the external drive that I am recording to, and nothing has changed, hardware-wise on my system in over 6 months... Any help would be greatly appreciated.

    Adam Nitti wrote:
    Hello-
    I encountered a problem in Logic Pro 8 today that severely damaged one of my audio files in my session. I was working in the sample editor, and I went to copy and paste an audio fragment. When I tried to paste the audio, this error came up:
    "I/O Error, result code = -36"
    After that, the cursor turned into a black and white spinner, and the audio file that I was working with suddenly was altered in a way that somehow erased a portion of it in the song. I had to ability to undo, view the changes in the audio file, etc, etc. It was damaged irreversibly, and I had to end up re-recording that segment. Does anyone know why this happens, and is it a bug in Logic?
    BTW, I have over 500 gigs free on the external drive that I am recording to, and nothing has changed, hardware-wise on my system in over 6 months... Any help would be greatly appreciated.
    This sounds like one of two things that I have seen with this error :
    1.- your external hard drives' connection to the computer is not 100% stable (loose cable...dusty environment...)
    2.- Your audio device, is ti FireWire too? Is it daisy chained to this external hard drive? Maybe the order of the daisy chaining needs to be looked at.
    Cheers

Maybe you are looking for