Using path:// query syntax - unexpected error

Hi,
I'm trying to use the path://InfoObjects/Root Folder/ syntax. I've followed the User Guide (XI 3.1) and I have the following code:
PagingQueryOptions poptions = new PagingQueryOptions(0);
String pathqry = "path://InfoObjects/Root Folder/Feature Samples/**/[SI_INSTANCE=1]";
IPageResult ips = iStore.getPagingQuery(pathqry, poptions);
Iterator pageResultIter = ips.iterator();
IStatelessPageInfo pageInfo = null;
while(pageResultIter.hasNext()) {
        IStatelessPageInfo    pageInfo = (IStatelessPageInfo) pageResultIter.next();
String pageQuery = pageInfo.getPageSQL();
colInstances = iStore.query(pageQuery);
When I run this I get an Exception at the line:
IStatelessPageInfo    pageInfo = (IStatelessPageInfo) pageResultIter.next();
All the exception says is: java.lang.String.
It's a Casting Exception but it doesn't make sense to me, it should work should it?
Does anyone have any ideas or examples they have using this path:// functionality?
Thanks

Thanks Ted. Your example worked. It uses a slighly different method and is actually a lot simpler than the User Guide sample.
Instead of doing the whole itereator thing you simply have:
sqlStmt = iStore.getStatelessPageInfo("path://Root Folder/", new PagingQueryOptions()).getPageSQL();
which returns the standard Enterprise SQL statement and then off you go as normal using this to query the iStore.
colReports = iStore.query(sqlStmt);
Edited by: SL on Jul 31, 2009 2:21 AM

Similar Messages

  • Unexpected error occurred in method 'Put' , usage 'SPViewStateCache' - Exception

    I am getting below error when I am trying to upload a document to SP 2013 using CSOM (Of BizTalk)
    Unexpected error occurred in method 'Put' , usage 'SPViewStateCache' - Exception 'Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0018>:SubStatus<ES0001>:
    The request timed out.. Additional Information : The client was trying to communicate with the server :net.tcp://XXXX:22233  
    at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody reqBody)    
    at Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, 
    DataCacheTag[] tags, String region, IMonitoringListener listener)  
    Somewhere down the logs then another following error is recorded:
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Channels.SocketConnectionAbort.aspx</TraceIdentifier><Description>SocketConnection
    aborted</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Source>System.ServiceModel.Channels.SocketConnection/15268232</Source></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    I/O operation has been aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Obje...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ct sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred, SocketFlags flags)     at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32
    errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)  </StackTrace><ExceptionString>System.Net.Sockets.SocketException
    (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.SocketConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.HandleIO(IConnection connection)     at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)    
    at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred, SocketFlags
    flags)     at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode,
    UInt32 numBytes, NativeOverlapped* pOVERLAP)  </StackTrace><ExceptionString>System.TimeoutEx...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ception: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException:
    The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    I/O opera...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...tion has been aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.StreamConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)     at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)     at System.Net.LazyAsyncResult.Complete(IntPtr
    userToken)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)     at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object
    state)     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred,
    SocketFlags flags)     at System.Net.Sockets.SocketAsyncEv...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...entArgs.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
     </StackTrace><ExceptionString>System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion
    of a longer timeout. ---&amp;gt; System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted
    timeout of 00:01:00. The time allotted to this operation may have b...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...een a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at Syst...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...em.ServiceModel.Channels.StreamConnection.EndRead()     --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.IO.IOException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    read operation failed, see inner exception.</Message><StackTrace>   at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.ServiceModel.Channels.StreamConnection.EndRead()</StackTrace><ExceptionString>System.IO.IOException:
    The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may
    have been a port...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.Service...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...Model.Channels.StreamConnection.EndRead()</ExceptionString><InnerException><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</StackTrace><ExceptionString>System.TimeoutException:
    The socket was aborted because an asynchronous receive fr...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...om the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because
    of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)  
      at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</ExceptionString>...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...<InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The I/O operation has been aborted because of either a thread
    exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Ob...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ject sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></InnerException></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.StreamConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)</StackTrace><ExceptionString>System.TimeoutException: The socket was aborted because an asynchronous receive from the
    socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException:
    The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException:
    The I/O operation has been aborted because of ei...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ther a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)  
      at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---     at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.ServiceModel.Channels.StreamConnection.EndRead()
        --- End of inner exception stack trace ---     at System.ServiceModel.Chann...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...els.StreamConnection.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)</ExceptionString><InnerException><ExceptionType>System.IO.IOException, mscorlib, Version=4.0.0.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The read operation failed, see inner exception.</Message><StackTrace>   at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)    
    at System.ServiceModel.Channels.StreamConnection.EndRead()</StackTrace><ExceptionString>System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous
    receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this oper...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncRes...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ult)     at System.ServiceModel.Channels.StreamConnection.EndRead()</ExceptionString><InnerException><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</StackTrace><ExceptionString>System.TimeoutException:
    The socket was aborted because ...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation
    has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender,
    SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult
    result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transpor...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...tResult)</ExceptionString><InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The I/O operation has been
    aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketCo...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...nnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></InnerException></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x2308)                       
    0x20BC SharePoint Foundation         
    Monitoring                    
    nasq Verbose 
    Entering monitored scope (SPFileStreamManager.GetStreamInfo). Parent SPSqlClient
    183e9e9c-5ed6-e0aa-f49d-829231a7c856
    06/25/2014 08:29:23.88  w3wp.exe (0x2308)                       
    0x20BC SharePoint Foundation         
    Monitoring                    
    b4ly Verbose 
    Regards
    Ritu Raj
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    Problem with distributed cache connection, Check below
    http://www.dmcinfo.com/latest-thinking/blog/id/8657/fix-sharepoint-2013-distributed-cache-timeouts
    http://habaneroconsulting.com/insights/SharePoint-2013-Distributed-Cache-Bug#.U6p506Nn01s
    http://social.technet.microsoft.com/forums/sharepoint/en-US/fd3bca97-5d75-4a67-87ca-aac7bb5f6352/setup-spn-for-appfabric-distributed-cache-in-sharepoint-2013
    http://social.msdn.microsoft.com/Forums/en-US/317ef084-1174-4c4e-8d23-d1c56bd0db73/sharepoint-2013-workflows-keep-crashing-due-to-distributed-logon-token-cache-timeouts-cache-keeps?forum=sharepointadmin
    If this helped you resolve your issue, please mark it Answered

  • I can't use this query on 10G, but can use on 9i

    I have ever used bellow query and no error
    SQL>select so.* from bsowner.sales_orders so left join bsowner.relation_address rla on (so.customerid = rla.relationid and so.delivery_addressid = rla.addressid ) and rla.addresstype = (select code from bsowner.tab_addtyp where config1=3)
    When I use on 10G, I can't query
    1* select so.* from bsowner.sales_orders so left join bsowner.relation_address rla on (so.customerid = rla.relationid and so.delivery_addressid = rla.addressid ) and rla.addresstype = (select code from bsowner.tab_addtyp where config1=3)
    SQL> /
    select so.* from bsowner.sales_orders so left join bsowner.relation_address rla on (so.customerid = rla.relationid and so.delivery_addressid = rla.addressid ) and rla.addresstype = (select code from bsowner.tab_addtyp where config1=3)
    ERROR at line 1:
    ORA-01799: a column may not be outer-joined to a subquery
    Help me,Please
    Why I can't use this on 10G?
    when i change = to in , i can use
    but i don't want to change
    help me for the reason

    I don't this gonna work on 9i either.
    Chang your query to
    select so.* from bsowner.sales_orders so left join bsowner.relation_address rla on (so.customerid = rla.relationid and so.delivery_addressid = rla.addressid )
    Where
    rla.addresstype = (select code from bsowner.tab_addtyp where config1=3)

  • ReportViewer using SQL Query error states: Incorrect syntax near ','.

    Hello Community
        Using Visual Studio 2008 and SQL Server 2008 I created a Windows Application
    that uses SQL Server Reporting Services.  The application uses ReportViewer and
    calls a method written using SQL query.
                1-First I created the form.
                2-Next I dragged the ReportViewer (Toolbox) and Table (from DataSource) onto the form.
    The problem is that when it reaches the last line of the SQL query (ie, da.Fill(ds, "TableOne");)
    the code fails stating the error message:
                "Incorrect syntax near ','."
         The following is the code behind the form containing the query:
            private void ReportPgm1_Load(object sender, EventArgs e)
                // TODO: This line of code loads data into the 'ReportDBDataSet.TableOne' table. You can move, or remove it, as needed.
                this.TableOneTableAdapter.Fill(this.ReportDBDataSet.TableOne);  
                reportViewer1.ProcessingMode = ProcessingMode.Local;
                LocalReport ReportOneLocalReport = reportViewer1.LocalReport;
                DataSet ds = new DataSet("ReportDBDataSet.TableOne");
                pgmReportOne(FromDate, ToDate,   ds);
                ReportDataSource ds = new ReportDataSource("ReportDBDataSet.TableOne");
                ds.Value = dataset.Tables["TableOne"];
                ReportOneLocalReport.DataSources.Clear();
                ReportOneLocalReport.DataSources.Add(ds);
                this.reportViewer1.RefreshReport();
            private void pgmReportOne(DateTime FromDate, DateTime ToDate, DataSet ds)
                SqlConnection connection = new SqlConnection("Data Source=ReportDBServer;Initial Catalog=ReportDB;Uid=sa;pwd=Password");
                string sqlReportOne = "Select ([InDate], [FirstName], [LastName], [AGe]" +
                                   "from TableOne";
                SqlCommand command = new SqlCommand(sqlReportONe, connection);
                command.Parameters.Add(new SqlParameter("paramFDate", FromDate));
                command.Parameters.Add(new SqlParameter("paramTDate", ToDate));
                SqlDataAdapter da = new SqlDataAdapter(command);
                da.Fill(ds, "TableOne");
        Why does the last line throw an error?
        Thank you
        Shabeaut

    --NOTE: The statement below cannot be run on SQL Server 2012
    --If you have an earlier version and can set the compatibility
    --level to 80, it can be run.
    SELECT sso.SpecialOfferID, Description, DiscountPct, ProductID
    FROM Sales.SpecialOffer sso,
    Sales.SpecialOfferProduct ssop
    WHERE sso.SpecialOfferID *= ssop.SpecialOfferID
    AND sso.SpecialOfferID != 1
    Hi Scott
    The *= is old syntax and not compatible with SQL Server 2012 (as stated in the comments). 
    You could do something like this instead
    SELECT sso.SpecialOfferID
    ,Description
    ,DiscountPct
    ,ProductID
    FROM Sales.SpecialOffer sso
    left outer join Sales.SpecialOfferProduct ssop on sso.SpecialOfferID = ssop.SpecialOfferID
    WHERE sso.SpecialOfferID != 1

  • Ora-01704 string literal too long error  on long query syntax

    I have a query with more than 4000 characters. I can't seem to get ociparse to accept it. The bind variables are not an issue as I am not concatenating any strings to the query syntax. It is just that my query will all the columns and unions etc exceeds 4000 characters. Any way around this short of hiding it in a view ( which I have already done for other long queries ).
    System:
    PHP 4.3.10
    OCI driver
    Oracle 9i Release 2
    Thanks,
    Bryan

    Misread your post, sorry. Oracle limits literal strings to 4,000 chars. According to the documentation it's required that you use bind variables where possible to shorten literal strings below 4,000. You could also try a pl/sql block.
    The error you're getting is being returned by Oracle, not PHP. I've seen it pop up on bugtraq a couple of times for PHP, but the answer is always the same. I'm more of a programmer than a database expert, so forgive me for not having a better answer. You may want to try posting this to one of the more specific oracle forums where someone will probably have a better answer for you.
    http://www.stanford.edu/dept/itss/docs/oracle/9i/server.920/a96525/toc.htm

  • Using NVL in Query of Query resulting in error

    I'm still using CF8 and Oracle 11G back-end.
    When I use NVL in the query of query I got error....Can't I use NVL to check on null value? Please help
    Here is my codes:
    <cfquery name="GetC2" datasource="#Trim(application.OracDSN)#">
         SELECT CamID2, rel2_2,p_ln2,p_fn2,ins,l_year
         FROM prt_temp
         WHERE Ins = 'CC'
         AND l_year =  '1481'
    AND NVL(Child_LN2,' ') <> ' '
    AND NVL(Child_FN2,' ') <> ' '
        </cfquery>
    <cfif GetC2.Recordcount NEQ 0>   
    <cfquery name="CheckRel2C2" dbtype="QUERY">
      SELECT CamID2, rel2_2
      FROM GetC2
      WHERE NVL(Rel2_2,' ') <> ' '
    AND NVL(p_ln2,' ') = ' '
    AND NVL(p_fn2,' ') = ' '
    AND Ins = 'CC'
    AND l_year =  '1481'
    </cfquery>
    </cfif>
    The error:
    Error Executing Database Query.
    Query Of Queries syntax error.
    Encountered "NVL ( Rel2_2 ,. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition,

    NVL is an Oracle function, and is not available in ColdFusion Query of Query.  If you are trying to check for null values, then use IS NULL or IS NOT NULL.  So
    WHERE NVL(Rel2_2,' ') <> ' '
        AND NVL(p_ln2,' ') = ' '
        AND NVL(p_fn2,' ') = ' '
    becomes
    WHERE Rel2_2 IS NOT NULL
        AND p_ln2 IS NULL
        AND p_fn2 IS NULL
    -Carl V.

  • JDQL named query syntax error

    Hi,
    we have a syntax error in our JDOQL-namedQuery. We want to do a join over
    two tables "TestOrder" and "TestOrderPosition" and get this error:
    (we use Kodo 4.0)
    <?xml version="1.0"?>
    <jdoquery>
    <package name="salt.domain.orderservice.entity">
    <class name = "TestOrder">
         <query name="findByOrderId">select where
    testOrderPositions.contains(testOrderPosition) and
    testOrderPosition.description==:t variables
    salt.domain.orderservice.entity.TestOrderPosition testOrderPosition</query>
    </class>
    </package>
    </jdoquery>
    <4|false|4.0.0EA3> kodo.jdo.UserException: An error occurred while parsing the
    query filter "testOrderPositions.contains(testOrderPosition) and
    testOrderPosition.description==:t". Error message: The JDOQL string is not
    valid. Make sure all parentheses are matched and that you use proper Java
    syntax.
         kodo.query.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:92)
         kodo.query.jdoql.JDOQLExpressionBuilder.evalExpression(JDOQLExpressionBuilder.java:508)
         kodo.query.jdoql.JDOQLExpressionBuilder.eval(JDOQLExpressionBuilder.java:265)
         kodo.query.jdoql.JDOQLParser.eval(JDOQLParser.java:98)
         kodo.query.ExpressionStoreQuery$DataStoreExecutor.<init>(ExpressionStoreQuery.java:542)
         kodo.query.ExpressionStoreQuery.newDataStoreExecutor(ExpressionStoreQuery.java:154)
         kodo.query.QueryImpl.createExecutor(QueryImpl.java:807)
         kodo.query.QueryImpl.compileForDataStore(QueryImpl.java:741)
         kodo.query.QueryImpl.compileForExecutor(QueryImpl.java:721)
         kodo.query.QueryImpl.compile(QueryImpl.java:635)
         kodo.kernel.BrokerImpl.namedQuery(BrokerImpl.java:3681)
         kodo.kernel.DelegatingBroker.namedQuery(DelegatingBroker.java:1587)
         kodo.jdo.PersistenceManagerImpl.newNamedQuery(PersistenceManagerImpl.java:1028)
         salt.domain.orderservice.dao.jdo.JDOOrderRepositoryImpl.findOrderWithPositionById(JDOOrderRepositoryImpl.java:85)
         salt.domain.orderservice.OrderRepositoryImpl.findOrderWithPositions(OrderRepositoryImpl.java:91)
         salt.domain.orderservice.OrderServiceImpl.getOrderWithPosition(OrderServiceImpl.java:15)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         java.lang.reflect.Method.invoke(Unknown Source)
         org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
         org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
         org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
         org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
         org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
         org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
         $Proxy0.getOrderWithPosition(Unknown Source)
         salt.application.DddTestController.handleRequest(DddTestController.java:40)
         org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
         org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
         org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
         org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
         org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Does anyone have an idea?
    Thanks,
    Ingo Schneider

    Thanks for your help! It works now!
    I have another problem with a very simple query:
    I always get a ClassCastException with the follwoing query. If I left the
    result parameter out the query works. Parameter "t" is an integer, but
    there shouldn't be any cast problems between integer and long.
    <?xml version="1.0"?>
    <jdoquery>
         <package name="salt.domain.orderservice.entity">
              <class name="TestOrder">
         <query name="findByOrderIdPosition">select idOrder where
    idOrder==:t</query>
    </class>
    </package>
    </jdoquery>
    public class TestOrder implements Serializable{
         private String description;
         private long idOrder;
         private Set testOrderPositions = new HashSet();
    getters & setters...
    java.lang.ClassCastException: java.lang.Long
         salt.domain.orderservice.dao.jdo.JDOOrderRepositoryImpl.findOrderWithPositionById(JDOOrderRepositoryImpl.java:99)
         salt.domain.orderservice.OrderRepositoryImpl.findOrderWithPositions(OrderRepositoryImpl.java:91)
         salt.domain.orderservice.OrderServiceImpl.getOrderWithPosition(OrderServiceImpl.java:15)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         java.lang.reflect.Method.invoke(Unknown Source)
         org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
         org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
         org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
         org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
         org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
         org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
         $Proxy0.getOrderWithPosition(Unknown Source)
         salt.application.DddTestController.handleRequest(DddTestController.java:40)
         org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
         org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
         org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
         org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
         org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Thanks,
    Ingo Schneider

  • SQL query syntax error .......

    I am using following query
    SELECT PERNR VORNA NACHN GBDAT FROM PA0002
        INTO CORRESPONDING FIELDS OF TABLE ITAB
        WHERE UPPER( VORNA )  = UPPER( STRU_USERIP-VORNA )
        AND   ENDDA >= SY-DATUM
        AND   BEGDA <= SY-DATUM .
    and I am geting syntax error as --
    vorna is   not valid comparison operator .
    can anyone plz suggest me solution over this problem .

    Logic must be written,
    The below logic is incomplete
    Break your head and modify it
    TABLES:pa0002.
    DATA:itab TYPE TABLE OF pa0002.
    DATA:wa TYPE pa0002.
    DATA:lv_vorna TYPE pa0002-vorna.
    DATA:ra_vorna TYPE RANGE OF pa0002-vorna.
    DATA:wa_vorna LIKE LINE OF ra_vorna .
    DATA:lv_index TYPE i.
    DATA:offset TYPE i.
    DATA:pa_vorna TYPE pa0002-vorna VALUE 'Frank'.
    DATA:len TYPE i.
    len = STRLEN( pa_vorna ).
    MOVE pa_vorna TO lv_vorna.
    TRANSLATE lv_vorna TO LOWER CASE.
    wa_vorna-low = lv_vorna.
    APPEND wa_vorna TO ra_vorna.
    MOVE pa_vorna TO lv_vorna.
    TRANSLATE lv_vorna TO UPPER CASE.
    wa_vorna-low = lv_vorna.
    APPEND wa_vorna TO ra_vorna.
    wa_vorna-low = PA_VORNA.
    APPEND wa_vorna TO ra_vorna.
    TRANSLATE PA_VORNA TO LOWER CASE.
    DO len TIMES.
      lv_index = sy-index - 1.
      offset = lv_index + 1.
      DO len TIMES.
        MOVE pa_vorna TO lv_vorna.
        TRANSLATE lv_vorna+lv_index(offset) TO UPPER CASE.
        wa_vorna-low = lv_vorna.
        APPEND wa_vorna TO ra_vorna.
        ADD 1 TO lv_index.
      ENDDO.
    ENDDO.

  • Help?  I keep getting "Unexpected Error" everytime I try to use my new Airport Express to extend my network from my 500GB Time Capsule.

    I am trying to extend my network from my 500GB Time Capsule using the new Airport Express I just bought, but no matter what I try I keep getting "Unexpected Error.  Try again".  The Express is still flashing Amber.  I cannot get it to turn green.  What am I doing wrong here?  Please help me.

    Locate the AirPort Express in the same room as the Time Capsule for the setup.
    Power off and restart the Time Capsule
    Shut down and restart the Mac. Turn on the wireless on the Mac and temporarily disconnect the Ethernet cable from the Mac to the AirPort Express. In other words, you want to set up the AirPort Express using wireless, since that is the way that it will be used.
    Hold in the reset button on the AirPort Express for 9-10 seconds and release. Allow a full minute for the Express to restart.
    Click the AirPort icon at the top of the Mac's screen and wait a few seconds for a listing of New AirPort Base Station to appear. Just below that, click directly on AirPort Express.
    AirPort Setup will open up and take a minute to analyze the network, then announce that the Express will be configured to extend the Time Capsule network.
    Enter a device name that you want to use and click Next
    Wait a minute while AirPort Setup configures everything, and hopefully announces a message of Setup Complete. Click Done.
    Now move the AirPort Express to a location that is about half way between the Time Capsule and the area that needs more wireless coverage. Avoid obstructions in the signal path between the Time Capsule and AirPort Express as much as possible. 
    Walls, ceilings, mirrors, heavy furniture, etc. just kill the wireless signal quality. Keep any cordless phones as far away from either router as possible.
    It would be much better if you could plan to connect the Time Capsule and AirPort Express using an Ethernet cable, as best case.....you will be losing about half of the network speed trying to use wireless to extend.

  • COMException "Unexpected error." on InfoStore.Query()

    I've inherited an ASP.NET 2.0 application that essentially provides a limited portal to our (hundreds of) Crystal reports.  I've been tasked with upgrading as many of the technologies as I can to more current versions, including the .NET framework.  We're targeting .NET 4.0, because other systems on our Crystal server can't handle 4.5 yet.
    I'm not sure what iterations our Crystal server has gone through, but currently we're running BI Platform 4, Feature Pack 7.
    My ASP.NET application (coded in VS2012 Pro update 4) can use either AD or Enterprise authentication and successfully log onto the server.  (I can tell because it throws an exception if I pass incorrect credentials.)  However, when I attempt an InfoStore.Query(), it throws a COMException with the message "Unexpected error.", no inner exception, HResult of 0x8000FFFF.
    The query itself works fine in the query tool.  Here's the relevant code:
    using CrystalEnterpriseLib;
    using CrystalInfoStoreLib;
            public InfoObjects GetCrystalReportFolders()
                EnterpriseSession es;
                SessionMgr sm = new SessionMgr();
                es = sm.Logon("", "", "servername", "secWinAD");
                InfoStore iSt = new InfoStore(es.get_Service("InfoStore", "servername"));
                return iSt.Query(
                    @"SELECT SI_NAME, SI_ID, SI_PROGID, SI_PARENTID  FROM CI_INFOOBJECTS
                        WHERE (SI_PROGID = 'CrystalEnterprise.Folder'
                        or (SI_PROGID='CrystalEnterprise.FavoritesFolder' AND SI_Name='username'))
                        AND SI_INSTANCE=0 Order by SI_NAME");
    Couple questions:
    1. Does BI 4 fp 7 support ASP.NET 4.0 and VS2012?
    2. Any hints as to what else I should check?
    Thanks.
    John

    Hi David,
    Had there been any new addons installed or SBO upgrade. what is the change that occured for this to be caused.
    This is issue is realted to one of your add-ons.
    Regards,
    Rakesh N

  • "file in use" and other "unexpected" error messages

    I may have found a bug in Tiger, and in case nobody has a plausible explanation for the problem, I will send a bug report:
    I copied a locked file (shows a little lock symbol in its icon) from one Mac to the other via a network share (using Finder). I then tried to open that file on the other Mac, but failed with the error message "file in use". But the computer the file had been copied from had already disconnected and shut down, and the Mac I had copied the file to had booted once.
    I then looked at the file security settings, but found nothing abnormal. But I was not allowed to change any of the security settings (owner and permissions).
    I then tried the Terminal and tried commands like "sudo chmod" or "sudo chown", and got nothing but error messages.
    What kind of operating system does not allow the supervisor ("root") to change file permissions?!?
    I then tried to repair the volume, but DiskUtility thinks all is OK. Fine. And the file is obviously NOT in use (otherwise the volume could not have been unmounted).
    I finally tried the tool SetFileInfo from the development system to change permissions and type/creator. "sudo SetFileInfo -whatever" gives "unexpected error". Aha, "unexpected". So there is something wrong in Denmark. Or California.
    At least there is one hint what's going wrong: GetFileInfo shows an abnormal type/creation combination, something like "brok" and "macs".
    The only thing I finally managed to do with the file was "sudo rm". I got some warning about unknown user and unknown group and override whatever, then the file was deleted. At least I think so. After removing the "locked" flag the copy process went fine, and the copy of the file could be opened on the other Mac, so it seems that there is a problem with copying "locked" files.

    Thank you for that hint! It does not fix the bug, but opens a way to a workaround.
    I repeated the test, i.e. copied a locked file, and indeed the copy is protected with a "uchg" flag.
    Removing the "uchg" flag still left the file locked, i.e. no other attribute (owner/group/rwx) could be changed. But the SetFile command now was able to remove the creator ('MACS') and type ('brok') settings.
    After that the "second lock" had been removed, and now the "locked" attribute could be removed, and after having removed this third lock the file was accessible.
    So I think that was enough of (unpaid) investigation, and I am going to send a bug report to Apple.

  • SSRS countrow Aggregate error(Aggregate and lookup functions cannot be used in query parameter expressions.)

    Below expression works fine with text box but gives error in dataset expression.
    ="SET FMTONLY OFF select  "+ join(Parameters!Column.Value,",") +" FROM pamcustom.dbo.vw_HFL_HFD_HotfileData INNER JOIN pamcustom.dbo.HFL_HFB_HotFileBatch  on BatchID = HFB_intBatchID where BatchID ="+Parameters!BatchId.Value+"
    and "+Parameters!cmbTranType.Value+" "+ iif(CountRows("DS_Aml_Mnr_Iss_Desc")=Parameters!Mnr_Iss_Desc.count," "," and aml_mnr_iss_desc in "+"('" & join(Parameters!Mnr_Iss_Desc.Value,"','")
    & "')")+iif(CountRows("ds_ReportingCategory")=Parameters!ReportingCategory.count," "," and ReportingCategory in "+"('" & join(Parameters!ReportingCategory.Value,"','") & "')")+iif(CountRows("ds_NAICSubGroup")=Parameters!NAICSubGroup.count,"
    "," and naicsubgroup in "+"('" & join(Parameters!NAICSubGroup.Value,"','") & "')")+iif(CountRows("ds_PortTrading")=Parameters!PortTrading.count," "," and porttrading in "+"('"
    & join(Parameters!PortTrading.Value,"','") & "')")+iif(CountRows("ds_GL_LE")=Parameters!GL_LE.count," "," and gl_le in "+"('" & join(Parameters!GL_LE.Value,"','") &
    "')")+iif(CountRows("ds_coagroup")=Parameters!cmbCoaGrp.count," "," and coagroup in "+"('" & join(Parameters!cmbCoaGrp.Value,"','") & "')")+iif(CountRows("Portfolio")=Parameters!cmbPort.count,"
    "," and portfolio in "+"('" & join(Parameters!cmbPort.Value,"','") & "')")+IIf(IsNothing(Parameters!txtSecID.Value)," "," and secid in ('"+Replace(Parameters!txtSecID.Value,",","','")+"')")+iif(IsNothing(Parameters!minPortFilter.Value)
    and IsNothing(Parameters!MinPort.Value)," "," and portfolio "+Parameters!minPortFilter.Value+Parameters!MinPort.Value)+iif(IsNothing(Parameters!maxPortFilter.Value) and IsNothing(Parameters!MaxPort.Value)," ","
    and portfolio "+Parameters!maxPortFilter.Value+Parameters!MaxPort.Value)+iif(IsNothing(Parameters!minCoaFilter.Value) and IsNothing(Parameters!txtMinCoa.Value)," "," and portfolio "+Parameters!minCoaFilter.Value+Parameters!txtMinCoa.Value)+iif(IsNothing(Parameters!maxCoaFilter.Value)
    and IsNothing(Parameters!txtMaxCoa.Value)," "," and portfolio "+Parameters!maxCoaFilter.Value+Parameters!txtMaxCoa.Value)
    I guess the error " Aggregate and lookup functions cannot be used in query parameter expressions." is because I am using CountRow to ensure that if all values of multi select all selected i will not use that filter in where clause.
    Pls. guide...

    Hi, Include your parameter total count in the dataset for parameter and instead of using countrows() function use the count from dataset in the expression.
    Hope this helps.........
    Ione

  • Nautilus Can't Be Used Now Due To An Unexpected Error

    I discovered that I am getting this message almost every time that I restart X using the command Ctrl + Alt + Backspace. I have been trying to figure out my proper resolution and have been doing many of these restarts recently.
    The error message in full reads:
    Nautilus can't be used now, due to an unexpected error from Bonobo when attempting to locate the factory. Killing bonobo-activation-server and restarting Nautilus may help fix the problem.
    I followed this advise and ran a killall on both the activation server and nautilus. things seemed to be fixed after restarting x. i have been doing a fair bit of research on this phenomenon and it appears that over time that these fixes do not work and the problem rapidly gets worse.
    i have searched the arch forum for references to this problem but found none. has anyone dealt with this problem, and if so, have you managed to fix it?
    some articles site success with the deletion of ~/.config file or creating a new user. i was thinking of running
    pacman -Sy gnome gnome-extras etc...
    in order to reinstall gnome to see if that might clear up the problem.
    any help or advice that you could offer on the situation would be great. thank you!
    EDIT:
    I can almost say with some certainty, that this is a permission's problem. After a nautilus failure, i always have to reset sudo with sudo -K.
    possible solution(s) next post:
    Last edited by czechman86 (2008-05-28 23:24:46)

    looks like the gtk theme is not the problem. didnt really think it was, but the documentation was worth posting. the guys over at ubuntu look as though they have dealt with this in great detail, and have produced a few solutions, which may or may not work. i have decided to post these for anyone else who may have these problems.
    Solution 1 - new user creation:
    https://bugs.launchpad.net/ubuntu/+bug/104521
    Solution 2 - config file delete:
    http://ge.ubuntuforums.com/showthread.php?t=724439
    post number 6 here features the config file delete solution, as well as a link to another post which may be useful.
    judging by a google search on this problem and the number of responses that came up, the bonobo/daemon error is quite a common curse for the users of gnome, although much more common in distros such as ubuntu or fedora.
    i hope that this proves useful and if anyone has anything to add, please feel free. the more documentation the better.
    EDIT:
    another solution would be to remove gnome and reinstall it from scratch. (some please tell me if i am doing this correctly. thanks )
    1. clean your catch:
    pacman -Scc
    2. remove gnome, gnome extras, and whatever other gnome files you might have installed
    pacman -Rscn gnome gnome-extra etc...
    3. reinstall gnome and gnome extras
    pacman -Sy gnome gnome-extra
    4. reconfigure your desktop the way you want.
    Last edited by czechman86 (2008-05-28 23:42:43)

  • TS3991 When I try to use Outlook Setup for the iCloud on my PC I get an error message at step 2 of 7 Download Calender from iCloud as follows: "your setup couldn't be started because of an unexpected error"

    When I try to set up MS Outlook using Outlook Setup for Icloud it fails at step 2 of 7  Download Calender from iCloud with error message "your setup could not be started because of an unexpected error"  My iCloud calender in Outlook had previously been working, but was not reflecting the same scheduling information, so I tried to delete it and reinstall using the Outlook Setup for iCloud.
    How can I get it to work again?

    Hello, ksb2. 
    Thank you for visiting Apple Support Communities.
    We are investigating this issue. This article will be updated as more information becomes available.
    iCloud: iCloud Control Panel setup cannot be started
    http://support.apple.com/kb/TS5178
    Cheers,
    Jason H.

  • Have tried to install icloud 4.0 for windows and again it does not allow syncing with outlook 2013 calendar and contact using windows 8.1 and IOS 8.02 (unexpected error)? I thought itunes 12.0 and icloud 4.0 would solve issue but still same result.

    I have tried to install icloud 4.0 for windows and again is does not allow syncing with outlook 2013 calendar and contact, using windows 8.1 and IOS 8.02 (get - unexpected error)?

    Having same issues. had been syncing every few days with outlook 2007 contacts and calendar but since updated to 4.0.2 and latest itunes I get an error that it is unable to sync. I can't seem to find any solution.

Maybe you are looking for