runtime-error

java.lang.NoClassDefFoundError while using SWT Add-on (AutocompleteComboInput)

谁说我不能喝 提交于 2019-12-13 21:01:21
问题 I am trying to implement an autocomplete Combo in SWT using AutocompleteComboInput. I have added net.sf.swtaddons_0.1.1_bin_src.jar to the library via "Add External JAR". import net.sf.swtaddons.autocomplete.combo.AutocompleteComboInput; ... subjectCodeCombo = new Combo(tab3Composite, SWT.DROP_DOWN); // other code modifying Combo appearance here... // returns a String[] of items retrieved from database String[] subjectCodeArray = dbQuery.subjectsToArray(); subjectCodeCombo.setItems

Excel VBA Vlookup Runtime Error 1004

…衆ロ難τιáo~ 提交于 2019-12-13 20:08:35
问题 I'm trying to create a function that will run a loop that tests to see whether or not an organization (var 'org') has a campaign that has actually started yet, hence 'If (result <= Now()'. There is an unspecified number of campaigns which I'm finding in the spreadsheet with 'CountIf' and is given to the module as 'total'. In the spreadsheet when the cell which needs to have a valid campaign finds that the campaign randomly guessed in another cell isn't valid, it goes to the VBA function,

Lazarus Free Pascal / Delphi - RunError 211

百般思念 提交于 2019-12-13 18:29:43
问题 I'm trying to connect my Windows XP program (Lazarus) to my Ubuntu postgres server. When the Lazarus program runs, it seems to compile fine but I get this error: Project ... raised exception class 'RunError(211)'. Then it terminates execution (and I don't see any output), and opens up a file customform.inc . In that file, it shows a procedure procedure TCustomForm.DoCreate; where it highlights a line: if Assigned(FOnCreate) then FOnCreate(Self); I believe this is one of the system's files. I

Run time error 1004 when trying to sort data on three different values

£可爱£侵袭症+ 提交于 2019-12-13 17:42:27
问题 I've read at least fifteen different articles on this and tried a number of different possible solutions. I am trying to use the VBA code below to sort a worksheet of variable size by three different levels. When I step through the code I get an error 1004 at the .apply argument of the sort. Run-time error '1004': The sort reference is not vald. Make sure that it's within the data you want to sort, and the first Sort By box isn't the same or blank. Can anyone suggest a reason why or a

Why Can't AppleScript make firstValue of hash into type reference in this test code?

我们两清 提交于 2019-12-13 17:15:20
问题 I am confused by AppleScript references... I almost never develop in AppleScript, and am having a very difficult time finding good documentation on how AppleScript handles references. The following code fails because AppleScript Can’t make firstValue of hash into type reference. : on run foo() end run on foo() set the hash to {firstValue:1, secondValue:2} set the hashRef to a reference to the hash return the firstValue of hashRef end foo But the following code works -- same code, but I am

powershell Test-Path is not recognized as a cmdlet

此生再无相见时 提交于 2019-12-13 16:25:52
问题 As a follow up to my question powershell if-else does not follow either branch I've found another odd situation. I have a script that is running as a scheduled task once a day. The problem occurs only when run as a scheduled task (never from a command prompt, ide, or powershell window) and even then only on some days. The relevant code is $target_dir = "\\server\path\" $tmpStatus = "init" $err = $false try { $tmpStatus = Test-Path ( $target_dir + "receivals.tmp") } catch { $tmpStatus = $error

Stanford-parser in Ruby does not create Preprocesser

天涯浪子 提交于 2019-12-13 15:22:42
问题 I am trying to use Stanford-parser for Ruby and get a RuntimeError: Constructor not found I had to install 'rbj' and 'treebank' gems to get it running. Now I can require 'stanfordparser' but can't get to preproc = StanfordParser::DocumentPreprocessor.new The funciton that returns the error is here (ruby-1.9.3-p0/gems/stanfordparser-2.2.0/lib/java_object.rb:40:in `new'): def initialize(obj, *args) @java_object = obj.class == String ? Rjb::import(obj).send(:new, *args) : obj end I saw a couple

MS Access VBA Data Type Mismatch Error in SQL Query

梦想的初衷 提交于 2019-12-13 13:00:06
问题 I currently have the following MS Access SQL Query which is part of an Access VBA function. It has been built with help from a previous question, which you can look at to better understand how it works. sqlJoinQuery = "SELECT tbl_grp_by.[Field1],tbl_grp_by.[Field2], " & _ "Switch( " & _ "Nz(tbl_grp_by.[maxfield3]) = 0, '0', " & _ "Nz(tbl_grp_by.[maxfield3]) = 1, '>1 million', " & _ "Nz(tbl_grp_by.[maxfield3]) = 2, '0001-0010' " & _ ") as [Field3], " & _ "tbl_grp_by.[" + commonField + "], " &

Javascript to prevent clickjacking

谁说我不能喝 提交于 2019-12-13 12:51:18
问题 I have this Javascript snippet in my application to prevent clickjacking: <script language="javascript" type="text/javascript"> var style = document.createElement('style'); style.type = "text/css"; style.id = "antiClickjack"; style.innerHTML = "body{display:none !important;}"; document.head.appendChild(style); if (self === top) { var antiClickjack = document.getElementById("antiClickjack"); antiClickjack.parentNode.removeChild(antiClickjack); } else { top.location = self.location; } </script>

Yield ValueError: Too many vaues to unpack (expected 2) in python

て烟熏妆下的殇ゞ 提交于 2019-12-13 09:25:27
问题 I have an issue trying to implement the regression solution proposed in this thread. Using Keras ImageDataGenerator in a regression model Another stack question had a similar issue: Tensorflow ValueError: Too many vaues to unpack (expected 2) but I couldnt find a solution that would work in my case. I went through this explanation for yield without any result. What is odd to me is that the first two loops complete but it crashes on the third when the outputs are identical. For the directory,