exception

InvalidProgramException in Team Foundation Server Sample

我的未来我决定 提交于 2020-01-25 07:54:06
问题 Hi I get an System.InvalidProgramException while trying to run the Example Project called "C# Example.WorkItemBrowser". The Exception also apears when I try to execute these lines: TeamFoundationServer tfserver = new TeamFoundationServer("http://localhost:8085"); tfserver.EnsureAuthenticated(); WorkItemStore store = new WorkItemStore(tfserver); Console.WriteLine(store.Projects.Count); I'm using the 2008 Visual Studio SDK for that. PEverify for the assembly Microsoft.TeamFoundation

Android Switching between Viewpager produces Android crash

ぃ、小莉子 提交于 2020-01-25 05:55:52
问题 I have five fragments in an View pager. One of them is a BarcodeFragment BarcodeFragment and I am getting a very weird android crash when I swipe between ViewPager fragments quickly. The crash Im getting is on the android side. This is the log. java.lang.IndexOutOfBoundsException: Invalid index 7, size is 7 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.set(ArrayList.java:481) at android.support.v4.app.FragmentManagerImpl.makeInactive

Why doesn't my variable value get passed to the finally block in python

China☆狼群 提交于 2020-01-25 04:30:11
问题 This is for python 2.7.10 Perhaps I'm not using the try..except..finally block correctly. I need to check on the HTTP response code I get from a webpage. If I get a 200 code, everything is working. If I get any other code, report what code. It works fine if I get a 200 HTTP code. If I get an exception, for some reason, it gives me an UnboundedLocalError, stating my variable isn't referenced. How do I get my variable to be recognized in the finally block? Here's my code: try: conn = httplib

EWS - This operation can't be performed because one or more items are new or unmodified

ぃ、小莉子 提交于 2020-01-25 02:55:50
问题 Relating to a batch update question I asked previously about using a single update to mark as read all the unread emails, I could use ExchangeService.UpdateItems according to Jason's answer. So I modified accordingly: Folder.Bind(Service, WellKnownFolderName.Inbox); SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And, new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false)); //ItemView limits the results to numOfMails2Fetch items FindItemsResults<Item>

How can I catch an exception in an enhanced for loop and restart the process for this loop?

断了今生、忘了曾经 提交于 2020-01-25 02:28:15
问题 I have started working with enhanced for loops due to it's best practices and habilities to work with ArrayLists . My code basically gets an ArrayList that contains links to songs and parses this list downloading the songs. One of the exceptions thrown is the TimeoutException, whitch normally happens when the server is overloaded or there's an instability with the internet connection. To clarify: try { for(Track track : album.getTracks()) { songdown.downloadTrack(track, directorio,

Android Pending Exception

混江龙づ霸主 提交于 2020-01-25 02:03:05
问题 My app is a hybrid html5 + JS + android which run in webview and communicate so much with Andorid through JS interface. I got some report that it fails after 2 second on some devices. I added ACRA so I can get reports, but I didn't get any thing. So I tried to test it myself, To raise an exception I add a code that manipulate views of main thread in Javascript interface's function which was triggered with a button in html. This raise an exception: Only the original thread that created a view

Worklight 6.0 does not start on Liberty - HSQLDB

北慕城南 提交于 2020-01-25 00:33:46
问题 I have followed the infocenter docs to setup Worklight on Liberty and Oracle Database all on Windows 2008. (http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/topic/com.ibm.worklight.help.doc/devref/t_transporting_apps_and_adapters.html - Deploying IBM Worklight applications to test and production environments) When I start the liberty server, I get this error on the browser Exception thrown by application class 'com.worklight.core.auth.impl.AuthenticationFilter.doFilter:110' javax.servlet

How to ignore missing glyphs in font used by PDFBox 2.0.7

你说的曾经没有我的故事 提交于 2020-01-24 22:59:06
问题 I'm seeing "java.lang.IllegalArgumentException: No glyph for U+05D0 in font" (as an example) exception being thrown when calling the showText(String) method of PDFPageContentStream. Catching the exception isn't very helpful because good characters won't get written. Neither is checking each character in the input string, which would be a performance killer (each PDF could be thousands of pages, millions of characters). What I really need is a way to prevent the exception for ANY missing glyph

C# - Avoid getting a SocketException

给你一囗甜甜゛ 提交于 2020-01-24 18:24:29
问题 I was wondering if there's a way to avoid getting a SocketException whenever I cannot connect rather than catching the SocketException using try/catch. I have this code which checks if a server is available of not: public bool CheckServerStatus(string IP, int Port) { try { IPAddress[] IPs = Dns.GetHostAddresses(IP); using (Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)) s.Connect(IPs[0], Port); return true; } catch (SocketException) { return false; } }

C# System.AccessViolationException and System.Runtime.InteropServices.SEHException

牧云@^-^@ 提交于 2020-01-24 16:48:07
问题 We are creating a comic book application using C# and are having a mainForm created on startup as usual and then when pressing the '1' key a new form called detailForm pops up showing the details of the selected comic book. There is a also a third form that is created if you press '1' again on the detailForm that will bring up another form called comicForm that shows the actual comic book. Our problem begins when you press '1' to go to the detailForm from the mainForm and then immediately