Posts

Showing posts from May, 2015

python - SmartType Code completion not working in Pycharm -

Image
i wonder if smarttype completion work in case shown in code/image below. using pycharm 5.0.4 professional edition python 3.5.1 (anaconda). import sklearn sklearn.datasets. am right basic code completion not working in case because pycharm not aware of type of "datasets" here?

grails - URL Mapping - Replacing characters in a parameter pulled from a database -

i trying figure out, how modify parameter being integrated url mapping using. static mappings = { "/$controller/$action?/$id?/(.$format)?" { constraints { // apply constraints here } } name test1: "/.../$title/..."{ controller = "study" action = "st_show" } name test2: "/.../$title/..."{ controller = "search" action = "se_show" } the parameter $title pretty dataset, pulled database , transmitted in following format [ title ]. there square brackets in front , behind string , words seperated through blanks. if creating link through g:link params nested in, gets put url pulled database. attempting create seo-urls, present title of publication devided hyphens instead of url-encoded "%20". until now, able generate dynamic urls looking this: http://localhost:8080/projectname/show/%5ballgemeine%20bevölkerungs[...]/782/...params

android - file or directory '<project>/<app>/src/debug/java', not found -

my project doesn't build. imported third party project library , sample module android studio. the project here https://github.com/consp1racy/android-support-preference.git both modules have build variant set debug . when build project fails on sample module error message: file or directory 'project/sample/src/debug/java', not found setting build variant of sample module release produces similar message: file or directory 'project/sample/src/release/java', not found i'm puzzled. expect source path src/main/java. what going on here? the original author of project made update , builds fine gradle command line.

python - unable to import gspread module despite being installed -

i unable run gspread on fabric script despite have installed gspread via pip. did miss out? gangzhengs-macbook-pro:fabric mosesliao$ pip install gspread collecting gspread requirement satisfied (use --upgrade upgrade): requests>=2.2.1 in /usr/local/lib/python2.7/site-packages (from gspread) installing collected packages: gspread installed gspread-0.3.0 gangzhengs-macbook-pro:fabric mosesliao$ fab google_docs traceback (most recent call last): file "/library/python/2.7/site-packages/fabric/main.py", line 658, in main docstring, callables, default = load_fabfile(fabfile) file "/library/python/2.7/site-packages/fabric/main.py", line 165, in load_fabfile imported = importer(os.path.splitext(fabfile)[0]) file "/users/mosesliao/svn/chubi-trunk-project/fabric/fabfile.py", line 29, in <module> import gspread importerror: no module named gspread gangzhengs-macbook-pro:fabric mosesliao$ pip install gspread requirement satisfied (use

java - how to align the columns properly in DynamicReports -

Image
i using dynamicreports design reports pdf.here using componentcolumnbuilder and horizantallist , verticallist .i able display them columns fixed widths.which shown below my code follows jasperreportbuilder report = dynamicreports.report();//a new report stylebuilder plainstyle = stl.style().setfontname("freeuniversal"); stylebuilder boldstyle = stl.style(plainstyle).bold().setborder(stl.pen1point()); stylebuilder col1style = stl.style().setleftborder(stl.pen1point()); stylebuilder col2style = stl.style().setleftborder(stl.pen1point()).setbottomborder(stl.pen1point()); stylebuilder col3style = stl.style().bold().setbottomborder(stl.pen1point()).setleftborder(stl.pen1point()); verticallistbuilder companylist = cmp.verticallist(); companylist.add(cmp.horizontallist().add(cmp.text(field("companyname", type.stringtype()))).setstyle(col1style)); companylist.add(cmp.horizontallist().add(cmp.text(fi

asp.net - Don't want to share session -

i have 2 asp.net mvc applications a.xyz.com/customer , a.xyz.com/customertest . i have implemented cookie-based formsauthentication. name of auth cookie ( auth , authtest ) different in both applications. problem when browse applications in same browser, session cookies available in both apps. when abandon session in 1 application, second application's session abandons well. both applications running under same app pool. cannot change app pool having rewrite rules not available if change app pool. i don't want share session between these 2 applications. please let me know if possible , how? it done. i have changed session cookie name of both applications in sessionstate. <sessionstate mode="inproc" cookieless="false" timeout="60" cookiename="prodsession" /> <sessionstate mode="inproc" cookieless="false" timeout="60" cookiename="testsession" />

dependency injection - How do I use inject a field using a Dagger 2 multi-binding? -

i'm trying support third party extensions using map multibindings, can't wrap head around how it's supposed provide extensible infrastructure. seems should simple, dagger 2 documentation on multibindings doesn't provide example of how it. want other developers able write own implementations of interface provide, , have seamlessly integrate. here's sample code shows i'm attempting do: // interface third parties can implement. public interface fooservice { public void run(); } // default implementation of interface provide. class defaultfooimpl implements fooservice { defaultfooimpl() { ... } @override public void run() { ... } } // third parties need add own modules provide // implementations of fooservice on different keys (right?). @module class defaultimplmodule { @provides(type = map) @stringkey("default") static fooservice providedefaultimpl() { return new defaultfooimpl(); } } // problem! won't work third-party

python - Print Wikipedia Article Title from Gensim WikiCorpus -

i believe question easy, i'm new python , think blinding me bit. i've downloaded wikipedia dump explained under "preparing corpus" here: https://radimrehurek.com/gensim/wiki.html . ran following lines of code: import gensim # these next 2 lines take around 16 hours wikidocs = gensim.corpora.wikicorpus.wikicorpus('enwiki-latest-pages-articles.xml.bz2') gensim.corpora.mmcorpus.serialize('wiki_en_vocab200k', wikidocs) these lines of code taken link above. now, in separate script i've done text analysis. result of text analysis number representing index of particular article in wikidocs corpus. problem, don't know how print out text of article. obvious thing try is: wikidocs[index_of_article] but returns error typeerror: 'wikicorpus' object not support indexing i've tried few other things i'm stuck. help. it's not such easy quesion, reason why didn't work wikicorpus isn't iterator, it&#

sql - How to merge a Group of records in oracle? -

consider following table, name | subject_1 | marks_1 | subject_2 | marks_2 | tom | maths | 90 | | | tom | | | science | 50 | jon | | | science | 70 | jon | maths | 60 | | | how following result name | subject_1 | marks_1 | subject_2 | marks_2 | tom | maths | 90 | science | 50 | jon | maths | 60 | science | 70 | tried forms of group by did not correct result, maths come under subject_1 , science under subject_2. use: max group by sql> select name, 2 max(subject_1) subject_1, 3 max(marks_1) marks_1, 4 max(subject_2) subject_2, 5 max(marks_2) marks_2 6 t 7 group name; name subject_1 marks_1 subject_2 marks_2 ---- --------- ---------- --------- ---------- jon m

css - Scrollable DataTable with Auto Height -

alloy ui's datatable provides scrollable attribute define x or y scrolling. has used combination of set height or width . how can have table adjust whatever height/width of window along maintaining scrollable feature? alloy ui api allows specify height & width in px or round number. if want specify in percentage, set css property "width: 100%" either datatable's table tag, or div contains datatable. example, first, create datatable. add css attribute width in percentage * var datatable = new y.datatable({ id: 'mydata-table', footerview: y.footerview, scrollable: "xy", height:'300px').render(); $('#mydata-table').css('width', '80%'); $('#mydata-table').css('height', '40%'); please refer link detail.

Android OnClick event listener change in API 23/24 -

i see mismatch in behavior between api 19 , api 23/24 regarding click/touch events. below sample code has button create popup window, , button in new window close it. testing on device api 19 works expected, if click on popup window's button, window closes, if click on anywhere else, nothing happens. running same code api 23 or 24, if click next popup window, disappears, without executing event handler. can me out why happening, , how make sure behavior consistent see on api 19? or alternatively, suggest ways troubleshoot problem? mainactivity.java public class mainactivity extends appcompatactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); } public void openpopup(view v) { layoutinflater inflater = (layoutinflater) getsystemservice(context.layout_inflater_service); view layout = inflater.inflate(r.layout.popup, null, false);

java - Quartz Scheduler: How to Group Jobs together? -

i wanted ask if had same problem quartz scheduler. created jobs trigger , jobkeys set groupnames. when print out group has been set default. how can set groupname able group jobs , importantly cancel specified groups? code similar this: public void unschedulebygroupname(string groupname) throws schedulerexception { (jobkey jobkey : scheduler.getjobkeys(groupmatcher.jobgroupequals(groupname))) { scheduler.unschedulejob(new triggerkey(jobkey.getname(), jobkey.getgroup())); } } input: triggerkey tkey = new triggerkey("trigger:" + jobname + "-somename:" + object.tostring(), "group:" + jobname + "-somename:" + object.tostring()); jobkey jkey = new jobkey("job:" + jobname + "-somename:" + object.tostring(), "group:" + jobname + "-somename:" + object.tostring()); jobdetail job = jobbuilder.newjob(somename.class).withdescription("somename")

css - Use 3 pseudo elements together? -

i want ask if possible use pseudo elements :hover , :not() , , :after on same css rule i need use 3 piece of code: #sidebar ul:not(.sub-menu) li:hover:after{ content: ""; width:100%; height:50px; position:absolute; top:0; left:0; z-index:100; background: rgba(0,0,0,0.4); } since have sidebar using pseudo elements cause hover effect on menu items, want avoid main menu <li> s in hover state when sub menu <li> hovered. you can select easy way like: #sidebar ul li { // styles main li } then sub <li> of them : #sidebar ul li > ul li { // styles sub menu li }

Current on GPIO Raspberry -

i'm trying use fan on raspberry. that, connect fan gpio(general-purpose input/output) output , ground. works fine if connect fan vcc +5v (64ma) or +3.3v(46ma) if connect fan random gpio set output, got twitch. checked multimeter , results tension (3.3v)but current low (32ma). how can increase current on gpio , increase power given fan (via code avoid use of transistor)? can desactivate internal resistor via rpi.gpio? i assume dont want control speed of fan ,just on/off. try connecting severa gpio parallel.(also make sure pins configuration same). check datasheet of processor.most mcu hase several pins support high current (mostly driving led). 3.the best solution adding transistor or relay. note fans tends add electrical noise ,therefor might need add filters.

core data - Objective C For loops with @autorelease and ARC -

as part of app allows auditors create findings , associate photos them (saved base64 strings due limitation on web service) have loop through findings , photos within audit , set sync value true. whilst perform loop see memory spike jumping around 40mb 500mb (for 350 photos , 255 findings) , number never goes down. on average our users creating around 1000 findings , 500-700 photos before attempting use feature. have attempted use @autorelease pools keep memory down never seems released. (finding * __autoreleasing f in self.audit.findings){ @autoreleasepool { [f settosync:@yes]; nslog(@"%@", f.idfinding); (findingphoto * __autoreleasing p in f.photos){ @autoreleasepool { [p settosync:@yes]; p = nil; } } f = nil; } } the relationships , retain cycles this audit has strong reference finding finding has weak reference audit , strong ref

Syntax error in a correct query while creating a view in phpMyAdmin -

i'm trying create view following query: select `logs`.`id`, `logs`.`date`, `logs`.`full log`, `logs`.`medium log`, `logs`.`minimal log`, `machines`.`name` `machine name` `logs` left join `machines` on `logs`.`machine id` = `machines`.`id`; it works when executed in mysql, reason phpmyadmin doesn't allow me create view based on query. following error: #1064 - have error in sql syntax; check manual corresponds mariadb server version right syntax use near 'as select `logs`.`id`, `logs`.`date`, `logs`.`full log`, `logs' @ line 4 i have no idea why error occurs because query correct. the problem phpmyadmin doesn't provide default value view name if "view name" field empty in view configuration dialog. had enter name of view. in opinion should make field mandatory.

msbuild - Msbulid is not displayed in jenkins? -

i trying use continuous integration using jenkins svn bulid .net code. for installed msbuild plugin.but msbulid plugin not displayed in jenkins configuration( jenkins » manage jenkins » configure system.) but installed.. this has been moved global tool configuration under manage jenkins on version 2.7.1

send data from socket to c# in android -

i trying develop application in android sent gps data pc .the android part : @override public void onlocationchanged(location location) { // todo auto-generated method stub float latitude = (float) (location.getlatitude()); float longitude = (float) (location.getlongitude()); showmessage("student details", "latitude: " + latitude + ", longitude: " + longitude); log.i("geo_location", "latitude: " + latitude + ", longitude: " + longitude); try { socket socket = new socket("192.168.1.5",5000); dataoutputstream dos = new dataoutputstream(socket.getoutputstream()); dos.writeutf("hello_world"); socket.close(); } catch (unknownhostexception e) { // todo auto-generated catch block e.printstacktrace(); } catch (ioexception e) { // todo auto-generated catch block e.printstacktrace(); } } and c# code or

java - Joda Time - Convert a String into a DateTime with a particular timezone and in a particular format -

i want convert string date datetime object particular timezone , in particular format. how can ? string date can in format used in world. example mm-dd-yyyy, yyyy-mm-dd, mm/dd/yy , mm/dd/yyyy etc. timezone can legal timezone specified user. example - convert yyyy-mm-dd mm/dd/yy pacific timezone. use datetimeformatterbuilder build formatter able parse/format multiple datetimeformat s, , set resulting datetimeformatter use specified datetimezone : datetimeparser[] parsers = { datetimeformat.forpattern("mm-dd-yyyy").getparser(), datetimeformat.forpattern("yyyy-mm-dd").getparser(), datetimeformat.forpattern("mm/dd/yyyy").getparser(), datetimeformat.forpattern("yyyy/mm/dd").getparser() }; datetimeformatter formatter = new datetimeformatterbuilder() .append(null, parsers) .toformatter() .withzone(datetimezone.utc); datetime dttm1 = formatter.parsedatetime("01-31-2012"); datetime dttm2 = formatter.parsedat

c# - Cannot attach UI Text object to serialized field on Prefab in Unity 5.0.2f1 -

using unity 5.0.2f1 mac. created ui text object (called lifecountui) in scene. then, on player's script (attached player gameobject), have following field serialized: [serializefield] public text lifecounttext; this player gameobject prefab. my intention drag lifecountui in inspector serialized field on player gameobject. however, unity not allow me when select player prefab. it works, if drag instance of player prefab on scene, , drag lifecountui field (but obviously, not prefab). am doing wrong here? want have ability control text field prefab instance. have @ gurus in famouse 50 tips working unity (best practices) article: link prefabs prefabs; not link instances instances. links prefabs maintained when dropping prefab scene; links instances not. linking prefabs whenever possible reduces scene setup, , reduce need change scenes. this 1 of reason unable maintain reference.

python - Flask Google Maps Infobox with multiple marker images leads to wrong information -

i have flask application user can search room in city typing in cityname. when cityname typed in user redirected result page, use flask google maps show available rooms on map markers. i have 2 different marker images (for free users , users paid): mymap.markers['static/img/map-marker-marker-outside-small.png'] = markerlist mymap.markers['static/img/map-marker-marker-outside-pink.png'] = markerlist_bezahlt i populate markers list, other informations stored, f.e. room , rooms image, plus clickable , redirects on click details page. here whole method creates map , markers depending on whether user has payed or free (findroomcity cityname searching user has typed in): location = geolocator.geocode(findroomcity) if location.latitude not none: mymap = map( identifier="view-side", lat=location.latitude, lng=location.longitude, infobox=[], markers=[], zoom = 12 ) else: pr

javascript - Rails - nested form won't display in edit template -

i created form allows user dynamically add nested form fields clicking either text or url button. permutation of text or url fields can added (they can removed). example - http://imgur.com/4ldneem when form submitted, content displayed in view template. however, when go edit post @ /posts/id/edit, post content not appear in edit template - it's blank page. sql log http://i.stack.imgur.com/b2ueq.png post model class post < activerecord::base has_many :things, dependent: :destroy accepts_nested_attributes_for :things end thing model class thing < activerecord::base belongs_to :post end schema create_table "posts", force: :cascade |t| t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "things", force: :cascade |t| t.text "text" t.string "url" t.integer "post_id" end posts controller class postscontroller < applicationcon

.net - How to read from Process.StandardOutput without redirecting it? (F#) -

i've got little function saves me headaches dealing horrible system.diagnostics.process api: let hiddenexec (command: string, arguments: string) = let startinfo = new system.diagnostics.processstartinfo(command) startinfo.arguments <- arguments startinfo.useshellexecute <- false startinfo.redirectstandarderror <- true startinfo.redirectstandardoutput <- true use proc = system.diagnostics.process.start(startinfo) proc.waitforexit() (proc.exitcode,proc.standardoutput.readtoend(),proc.standarderror.readtoend()) this works great, because tuple of 3 elements exitcode, stdout , stderr results. now, suppose don't want "hide" execution. is, want write hypothetical, simpler, exec function. solution not redirect stdout/stderr , we're done: let exec (command: string, arguments: string) = let startinfo = new system.diagnostics.processstartinfo(command) startinfo.arguments <- arguments startinfo.useshelle

Python PyQt WebView Load Multiple Local Web Pages -

i building application uses twitter api return posts based on keyword search. application retrieves posts every minute , updates multiple webviews contain different information. have 4 different web views: display posts retrieved display charts display tag cloud display other statistical information i using threading retrieve data api. application runs until point when need load local html files have been updated include new html shows information. when loads 4 pages freezes application 20 seconds. this code calls 'updatewebviews' function once workerthread has done job: self.workerthread = updatethread() self.connect(self.workerthread, qtcore.signal('emit'), self.updatewebviews()) the below code updates 4 pages , freezes application: def updatewebviews(self): print('updating web views') self.postretrievedtext.load( (qtcore.qurl("posts.html"))) self.tagcloudwebview.load

java - Instance variables default value -

my book says 1 of crucial differences between local variables , instance variables must initialize local variables , instance variables default value of 0 if don't initialize them. shortly before did example introducing constructors, , public void , public double , return do. consider following example did in book. here balance instance variable .we have 2 constructors below it. if instance variable gets default value of zero, why need first constructor public account(){ balance = 0; } saying if call account acc = new account(); balance = 0 . doesn't 0 automatically? @ least thats understanding book heres full code working on public class account { private double balance; public account(){ balance = 0; } public account(double initialbalance){ balance = initialbalance; } public void deposit(double amount){ balance = balance+amount; } public void withdraw(double amount){ balan

python - 3d sliding window operation in Theano? -

tl.dr. there 3-dimensional friendly implementation of theano.tensor.nnet.neighbours.images2neibs ? i perform voxel-wise classification of volume (nxnxn) using neural network takes in nxnxn image, n>n. classify each voxel in volume, have iterate through each voxel. each iterration, obtain , pass neighborhood voxels input neural network. sliding window operation, operation neural network. while neural network implemented in theano, sliding window implementation in python/numpy. since not pure theano operation, classification takes forever (> 3 hours) classify voxels in 1 volume. 2d sliding window operation, theano has helper method, theano.tensor.nnet.neighbours.images2neibs , there similar implementation 3-dimensional images? edit: there existing numpy solutions( 1 , 2 ) n-d sliding window, both use np.lib.stride_tricks.as_strided provide 'views of sliding window', preventing memory issues. in implementation, sliding window arrays being passed numpy (cyth

python - How can I get the path of form, before it produced in view, Django -

i have such problem: have form, displays on every page of web-site. so, action specified(separate) view: def subscribe(request): if request.method == "post": form = subscriptionform(data=request.post) if form.is_valid(): form.save() return redirect() # there problem else: raise http404 after success handling of form, want redirect user page, form sent. if use request.path - returns me url handles form. need url of page... do understand? should do? thanks lot! you'll need add additional field form let view know redirect to. simplest way add hidden input form: <form action="/some/url/" method="post"> ... <input type="hidden" name="next" value="{{ request.path }}"> </form> the value of request.path path of page before user submits form. in view, can use parameter next redirect user page came from. def subscribe

java - Hector inserting only part of the primary key -

i have query in legacy code want understand. cassandra table this: cqlsh:mykeyspace> desc table "logtable" create table mykeyspace."logtable" ( key text, key2 text, column1 text, column2 text, column3 text, column4 text, value blob, primary key ((key, key2), column1, column2, column3, column4) ) i'm not kidding, columns named that, each column can used in way. makes code difficult read. now, there's code in java don't understand: private static final stringserializer ss = stringserializer.get(); public void logprogressmetadata(string affiliationid, string datasetid, string jobid, progressmetadata metadata) { composite rowkey = new composite(); rowkey.addcomponent("job_progress", ss); composite column = new composite(); column.addcomponent(affiliationid, ss); column.addcomponent(datasetid, ss); column.addcomponent(jobid, ss); mutator<com

c# - No output coming from log4net -

i trying use log4net following few tutorials , reading plethora of posts people having problems it, since can not make work properly. i have part right on top of .config file <configsections> <section name="log4net" type="log4net.config.log4netconfigurationsectionhandler, log4net"/> </configsections> <log4net> <appender name="rollingfile" type="log4net.appender.rollingfileappender"> <file value="log4net.log" /> <appendtofile value="true" /> <maximumfilesize value="500kb" /> <maxsizerollbackups value="2" /> <layout type="log4net.layout.patternlayout"> <conversionpattern value="%date %level %logger - %message%newline" /> </layout> </appender> <root> <level value="all" /> <appender-ref ref="rollin

javascript - Express 4 HTTP requests: user._id undefined -

i'm writing simple express app handle image uploads , searches. upload works fine same req.user._id invalid in request. idea why? //standard express-generator server.js requires //passport.js implementation var session = require('express-session'); app.use(session({ secret: '*****', proxy: true, resave: true, saveuninitialized: true })); the post function works fine using multer middleware . uses req.user._id no issues - i've checked it's being uploaded database. app.post('/upload/photodata', upload.single('photo'), function(req, res) { //retrieve data request using multer middleware objects var title = req.body.title; var description = req.body.description; var photourl = req.file.filename; var date = new date(); var user_id = req.user._id; //code create mongoose photo model instance using variables above , save }); immediately after i'm testing function returns following

gradle - Unable to access nexus repo to download the dependencies -

Image
i can see service is hosted successfully. my gradle script looks group 'com.tinkering' version '1.0-snapshot' apply plugin: 'java' apply plugin: 'idea' sourcecompatibility = 1.8 repositories { //mavencentral() maven{ url 'http://linkxserver:8081/nexus/content/repositories/central/' //url 'http://localhost:8081/nexus/content/repositories/central/' } } dependencies { compile 'com.google.code.gson:gson:2.3.1' testcompile group: 'junit', name: 'junit', version: '4.11' } when trying run gradle build, getting unknow host exception $ ./gradlew clean build :clean up-to-date :compilejava failure: build failed exception. * went wrong: not resolve dependencies configuration ':compile'. > not resolve com.google.code.gson:gson:2.3.1. required by: com.tinkering:gradletinker:1.0-snapshot > not resolve com.google.code.gson:gson:2.3.1.

php - mysql_fetch_assoc() expects parameter 1 to be resource, null given in -

i follow topic because have same problem ( can't use command shell, edit file host ) -> change value after 24 hours first run sql create table `php_cron` ( `id` int(11) unsigned not null auto_increment, `last_ts` datetime default null, primary key (`id`) ); insert `php_cron` (`id`, `last_ts`) values (1,'2012-08-10 00:00:00'); and code $res1 = mysql_query("select time_to_sec(timediff(now(), last_ts)) tdif php_cron id=1"); $dif = mysql_fetch_assoc($dif['tdif']); if ($dif >= 86400) { //24h //following code run once every 24h //update user's page rank $sql2 = "update logs_limitbandwidthtoday set bandwidthtoday = 0"; mysql_query($sql2); $sql23 = "update logs_limitlinktoday set limitlink = 0"; mysql_query($sql23); $sql24 = "update logs_limitvipbw set bandwidthtoday = 0"; mysql_query($sql24); $sql25 = "update logs_limitviplink set limitlink = 0";

How can I force a page language from servlet or jsp so angularjs will pick it up? -

angularjs form validation messages required display in french on given web page. displaying correctly in french language browsers not in english-language browser. i not want detect locale in latter case, incorrect needs. instead want tell javascript page/browser french. nor want switch language dynamically client-side in javascript. i tried modifying http headers way: <%@ page import="java.util.locale" %> <% locale locale = new locale("fr","ca"); response.setlocale(locale); response.setheader("content-language", "fr"); response.setheader("language", "fr"); %> but not seem work. thanks in advance help. i solved replacing angularjs own js code. approach same, cycle through html input tags in javascript, search custom attribute. if it's there, change language based on html tag's lang attribute. hope helpful someone. web page: <!doctype html> <html

How to use System.Windows.Forms in .NET Core class library -

i've created .net core class library , try build against net40 framework. want use clipboard class system.windows.forms assembly. how can this? my project.json file: { "version": "1.0.0-*", "dependencies": { "netstandard.library": "1.6.0" }, "frameworks": { "netstandard1.6": { "imports": "dnxcore50", "buildoptions": { "define": [ "netcore" ] }, "dependencies": { "system.threading": "4.0.11", "system.threading.thread": "4.0.0", "system.threading.tasks": "4.0.11" } }, "net40": { "buildoptions": { "define": [

jersey - spring Integration kafka outboundchannel object Injection Error by glassfish -

added @importresource("classpath:outbound-kafka-integration.xml") on top of springconfig class create beans in java code... added below dependency in pom.xml <dependency> <groupid>org.springframework.integration</groupid> <artifactid>spring-integration-kafka</artifactid> <version>1.3.0.release</version> </dependency> it gives below error when im debugging soap ui client(my application rest api)... multiexception stack 1 of 4 org.glassfish.hk2.api.unsatisfieddependencyexception: there no object available injection @ systeminjecteeimpl(requiredtype=conversionservice,parent=abstractexceptionmapper,qualifiers={},position=-1,optional=false,self=false,unqualified=null,780303454) @ org.jvnet.hk2.internal.threethirtyresolver.resolve(threethirtyresolver.java:75) @ org.jvnet.hk2.internal.clazzcreator.resolve(clazzcreator.java:211) @ org.jvnet.hk2.internal.clazzcreator.resolvealldependencies(clazzcre