Posts

Showing posts from January, 2013

java - MapView is only refreshing when it's touched -

i have mapview in fragment , want show user's current location. problem it's refreshed (in layers, first terrain, name of streets...) when mapview touched. shows front camera preview also. here's code. fragment layout <?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <relativelayout android:id="@+id/otherrelative" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:gravity="center" > <textview android:id="@+id

python - How do I create a variable number of variables? -

how accomplish variable variables in python? here elaborative manual entry, instance: variable variables i have heard bad idea in general though, , security hole in python. true? use dictionaries accomplish this. dictionaries stores of keys , values. >>> dct = {'x': 1, 'y': 2, 'z': 3} >>> dct {'y': 2, 'x': 1, 'z': 3} >>> dct["y"] 2 you can use variable key names achieve effect of variable variables without security risk. >>> x = "spam" >>> z = {x: "eggs"} >>> z["spam"] 'eggs' make sense?

visual studio - VS 2015 Custom TFS Policy Error -

we have custom policies in tfs , getting errors on pending changes screen in vs 2015. policies working in vs 2013 , earlier. 'microsoft.teamfoundation.powertools.checkinpolicies.changesetcomments, version=10.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' not registered any ideas? thanks! the custom policies have compiled version of .net framework used tfs 2015 / vs 2015.

java - Stable Line Custom Component -

i used following code create custom component draw edges of graphs, component has weird behaviors. appear right, doesn't appear. looked other custom component samples couldn't find problem. question problem? public class edgeline extends jpanel { private static final long serialversionuid = -5820537358240087280l; public final edge edge; private int cheight; private int cwidth; private line2d line; public edgeline(edge edge) { point firstlocation = edge.firstvertex.location; point secondlocation = edge.secondvertex.location; this.edge = edge; cwidth = math.abs(firstlocation.y - secondlocation.y); cheight = math.abs(firstlocation.x - secondlocation.x); setsize(cheight, cwidth); this.setbackground(new color(0, 0, 0, 0)); int xpoint = math.min(firstlocation.x, secondlocation.x); int ypoint = math.min(firstlocation.y, secondlocation.y); setlocation(new java.awt.point(xpoint, ypoint)); line = new line2d.float(firstlocation.x

real time - storm failing to process all the tuples -

i'm using apache storm process huge data coming off kafka spout. currently, there on 3k json messages published kafka , it's continuing. have process messages published beginning. so, have set kafka spout parameter accordingly. this results in lot of failures in tuple processing. got info storm ui. i suspect storm not able handle messages bombarded towards in single shot. any appreciated. 1) increase parallelism hint bolts there's no backlog slowing down processing tuple emitted spout, or 2) use topology.max.spout.pending property limit number of tuples spout can emit before having wait 1 of tuples complete. try combination of both solutions. in production need run many iterations proper value of both values (parallelism,topology.max.spout.pending)

android - TextView on Button -

i created custom button , added textview programmatically: layout `framelayout` containing `button` , `textview` textview tv = new textview(context); framelayout.layoutparams lp=new framelayout.layoutparams(framelayout.layoutparams.wrap_content,framelayout.layoutparams.wrap_content); lp.gravity = gravity.center_vertical; tv.setlayoutparams(lp); tv.settextcolor(getcontrastcolor(left)); tv.settext(" " + left); layout.addview(tv); on device works (opo) - can see texts on emulator ( nexus 5 ) doesn't - texts invisible - maybe below button. knows problem? i found answer - in android 5 there new property - elevation. needed check if sdk 21 , if change elavation of textview

Why use "ensure" during Ruby exception handling? -

this question has answer here: begin, rescue , ensure in ruby? 7 answers using begin => rescue => else => ensure => end blocks, doesn't code after "end" run no matter what? couldn't put put in "ensure" after "end"? ensure runs no matter what, if exceptions raised in rescue block.

php - Laravel parent/children relationship on it's own model -

i want vouchers have @ least 1 child, voucher can have multiple voucher children, voucher can have 1 parent. i set following models , calls, , query generates desired, until part: 'vouchers'.'parent_id' = 'vouchers'.'id' wanted functionality: $vouchers = voucher::has('children')->get(); or $vouchers = voucher::has('parent')->get(); resulted query select * `vouchers` `vouchers`.`deleted_at` null , (select count(*) `vouchers` `vouchers`.`deleted_at` null , `vouchers`.`parent_id` = `vouchers`.`id` , `vouchers`.`deleted_at` null ) >= 1 models: class voucher extends basemodel { public function parent() { return $this->belongsto('voucher', 'parent_id'); // return $this->belongsto('voucher', 'parent_id', 'id'); <- attempted din't work } public function children() { return $this->hasmany('voucher', 'p

c# - vshost.exe not terminating properly in Visual Studio 2015 -

i in charge of testing vs 2015 , how works our current applications employer. use vs 2013 have, know there no issues there. problem having appears vshost.exe isn't terminating correctly or something. have not narrowed down exact issue far believe. here how error: run app in debug open few windows hit "stop debug" button (the little red square) clean solution rebuild solution after rebuild following errors in exe: error not copy "obj\debug\app.exe" "..\..\bin\app.exe". exceeded retry count of 10. failed. error unable copy file "obj\debug\app.exe" "..\..\bin\crm.exe". process cannot access file '..\..\bin\app.exe' because being used process. if open task manager , manually end vshost.exe process can rebuild again, no issues. if take same steps, however, no longer able build. i tested these steps in 2013 , did not have issue. also note disabling "enable visual studio hosting process&q

logging - How do you log systemd service starts,stops,failures as they occur? -

we have moved systemd, , has been quite useful. cannot find way log starts , restarts of given service. can use journalctl syslog_identifier=systemd -u some-service.service see entries, there doesn't seem way log when happens. i know hook execstartpre= or execstartpost= directives, have lot of services. i'm hoping more general solution.

sql server - MS SQL 2008/Access 2002 VBA - Check DB for current record, if does not exist then enter it -

i'm trying create sql string check table notification current record criteria (two different id values). if finds record both of these values, won't enter record table. if doesn't find it, will. i've tried using vba solve this, seems way i'm going able use sql because of constant type mismatch errors result access field types not being same sql field types (ie: integer being ok in sql, value causing overflow in access vba). i've been trying find sort of statement let me check table see if assetid , notificationtypeid in table. if are, ignore insert , move on. i've seen examples of other types of sql answer question, can't them work in vba. updated code(note:'i know, assetid should long. it's int in sql, when set int in vba access, overflow message 'when try set long, there's type mismatch. string seems work in sql @ moment putting values database ) this still isn't working @ .addnew. should, reason returns invalid oper

java - Spring security : @Secured : Error Add CGLIB to the class path or specify proxy interfaces -

i hope can me issue: i use spring security (3.1.0.release.jar) security configuration: <security:global-method-security secured-annotations="enabled"/> when add @secured('role_admin') controller error appear grave: exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.contextloaderlistener org.springframework.beans.factory.beancreationexception: error creating bean name 'services_controller' defined in file [d:\workspaceeclipsejee\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\myapp\web-inf\classes\com\pfe\controller\services_controller.class]: initialization of bean failed; nested exception org.springframework.aop.framework.aopconfigexception: cannot proxy target class because cglib2 not available. add cglib class path or specify proxy interfaces. @ org.springframework.beans.factory.support.abstractau

ios - Stopping NSURL Connection before redirect, while getting the redirect URL -

i trying response body of url, redirects invalid url. stop redirection well, since crashes app. i have tried using following methods within code, aren't picked up: func urlsession(_ session: nsurlsession, datatask datatask: nsurlsessiondatatask, didreceiveresponse response: nsurlresponse, completionhandler completionhandler: (nsurlsessionresponsedisposition) -> void) { print("did here?") } func urlsession(_ session: nsurlsession, task task: nsurlsessiontask, didcompletewitherror error: nserror?) { print("how here?") } func urlsession(_ session: nsurlsession, task task: nsurlsessiontask, willperformhttpredirection response: nshttpurlresponse, newrequest request: nsurlrequest, completionhandler completionhandler: (nsurlrequest?) -> void) { print("maybe here?") } func urlsession(_ session: nsurlsession, didbecomeinvalidwitherror error: nserror?) { print("did find

xcode - iOS: xcodebuild: error: The workspace '' does not contain a scheme named '' -

i'm trying release simulator build facebook review of app. when run command see scheme called "roomify": xcodebuild -list information project "roomify": targets: roomify roomifytests build configurations: debug release if no build configuration specified , -scheme not passed "release" used. schemes: roomify roomapp however, when try build fails telling me scheme doesn't exist, why so? >xcodebuild -arch i386 -sdk iphonesimulator8.3 -workspace roomify.xcworkspace/ -scheme roomify build settings command line: archs = i386 sdkroot = iphonesimulator8.3 xcodebuild: error: workspace 'roomify' not contain scheme named 'roomify'. turns out used wrong command list schemes in workspace. instead of: xcodebuild -list do: xcodebuild -workspace roomify.xcworkspace -list

java - How to migration JXLS from version 1 to 2 -

jxls 2 not backward compatible version 1. there no upgrade instructions , while can things working version 2 i'm having 2 issues. version 1 did not require use of comment tags, cant output generate without them. java code must specify worksheet location write results, in version 1, output written on top of template did not require duplication of template settings in excel , java code. if cannot find workaround these 2 issues, i'll have go change every single template use comments. worse, i'll have make java code aware of template worksheet layout. dont understand why default behavior. there way version 2 behave more version 1? version 1 did not require use of comment tags, cant output generate without them. this not true. can choose not use xlscommentareabuilder . in case have 3 options use xmlareabuilder (probably not way want) use java api build commands (probably not way want) create own jxls1tagcommandareabuilder build commands jxls-

Using variable in object name (VBA Excel) -

here want do: private function foo(bar integer) n = 0 combobox(bar).listcount - 1 [some stuff] end end function i'm getting error on second line because i'm using (bar), rather (e.g.) 2, or 3. can accomplish want do? if on userform, can use: for n = 0 me.controls("combobox" & bar).listcount - 1 if worksheet module , activex combobox, need: for n = 0 me.oleobjects("combobox" & bar).object.listcount - 1

Java if statements without brackets creates unexpected behaviour -

why work: if(name.equals("email_stub")) { if(emailstub == "") emailstub = results.getstring("text"); } else if(name.equals("fax")) { if(fax == "") fax = results.getstring("text"); } but without first tier of brackets, not work , instead fail logically separate if statements. i.e. never go beyond first if statement , won't work intended. if(name.equals("email_stub")) if(emailstub == "") emailstub = results.getstring("text"); else if(name.equals("fax")) if(fax == "") fax = results.getstring("text"); thanks.thought weird when ran issue. because this: if(name.equals("email_stub")) if(emailstub == "") emailstub = results.getstring("text"); else if(name.equals("fax")) if(fax == "") fax = results.getstring("text");

mongodb - Load video from inputstream using java and video.js -

i fetch inputstream mongodb , pass video.js play. it plays fine first time, once video finished , click on 'play' button play again got below exception in java code java.net.socketexception: software caused connection abort: socket write error my java code - @requestmapping(value = "/getvideo/{videoid}" , method = requestmethod.get) public void fetchvideo(@pathvariable(value = "videoid") string videoid, httpservletresponse response, httpservletrequest request) { try{ gridfsdbfile file = filestorageservice.getfilebyid(videoid); file.getinputstream(); response.setheader("content-type", file.getcontenttype()); response.setheader("x-content-type-options", "nosniff"); response.setheader("accept-ranges", "bytes"); response.setcontentlength((int) file.getlength()); file.writeto(response.getoutputstream()); file.getinputstream().close

php - Eloquent functionaliy lost in Else{} -

i have route following: simply put have following: route::get('login/linkedin', function() { $userid = auth::id(); dd($userid); <----this works $provider = new linkedin(config::get('social.linkedin')); if ( !input::has('code')) { // if don't have authorization code, 1 $provider->authorize(); }else{ } but when : route::get('login/linkedin', function() { $provider = new linkedin(config::get('social.linkedin')); if ( !input::has('code')) { // if don't have authorization code, 1 $provider->authorize(); }else{ $userid = auth::id(); dd($userid); <----this returns null } why cant use auth:: after else? why not try this: route::get('login/linkedin', function() { $userid_aux = auth::id(); $provider = new linkedin(config::get('social.linkedin'

Under what circumstances does control pass from userspace to the Linux kernel space? -

i'm trying understand events can cause transition userspace linux kernel. if it's relevant, scope of question can limited x86/x86_64 architecture. here sources of transitions i'm aware of: system calls (which includes accessing devices) causes context switch userspace kernel space. interrupts cause context switch. far know, includes scheduler preemptions, since scheduler relies on timer interrupt work. signals. seems @ least signals implemented using interrupts don't know if implemented differently i'm listing them separately. i'm asking 2 things here: am missing userspace->kernel path? what various code paths involved in these context switches? one missing: exceptions (which can further broken down in faults, traps , aborts) for example page fault, breakpoint, division 0 or floating-point exception. technically, 1 can view exceptions interrupts not way have defined interrupt in question. you can find list of x86 exceptions

getColor(int id) deprecated on Android 6.0 Marshmallow (API 23) -

the resources.getcolor(int id) method has been deprecated. @colorint @deprecated public int getcolor(@colorres int id) throws notfoundexception { return getcolor(id, null); } what can do? starting android support library 23, a new getcolor() method has been added contextcompat . its description official javadoc: returns color associated particular resource id starting in m, returned color styled specified context's theme. so, just call : contextcompat.getcolor(context, r.color.your_color); you can check contextcompat.getcolor() source code on github .

CSS selector for expanded select (dropdown) element -

how can style drop down different when open or closed? there pseudo selectors or tricks that? of course out javascript. <select> <option> op1 </option> <option> op2 </option> </select> and :hover doesn't suit need because when drop down expanded, can move cursor away. still open :hover styling doesn't apply anymore. are looking :hover ? it's state of element if mouse on it. a { color: blue; } a:hover { color: red; text-decoration: overline; } <a href="#">move mouse on me</a>

asp.net - Control inside repeater causing full postback even after keeping in update panel -

in page, have 1 search button , repeater. have wrapped inside updatepanel . search button not causes full postback, i.e ideal radiobuttonlist inside repeater control does. have no idea do. <asp:updatepanel id="up" runat="server"> <contenttemplate> <table align="center" border="1" cellspacing="0" class="tabmn6"> <tr id="trheader" runat="server"> <th id="tredit" runat="server">edit</th> <th>user name </th> <th>role</th> <th>from date</th> <th>to date</th> <th>comment</th> <th>status</th> </tr> <asp:repeater id="rpuserdetails" runat="server" onitemdatabound="rpuserdetails_itemdatab

Problems with jira permissions to step -

please me jira , because can't find needed docs in off site. have workflow (my personal, not default) , have step "close task". how can create rule , can create there see button admin user? thanks help. (if not difficult, please write steps) from edit workflow screen: click transition "close task" under options menu (on right side of screen), click "conditions" click "add condition" select "user in project role" be sure "administrators" selected, click "add" i think should solve problem. the atlassian university training might helpful you: https://university.atlassian.com/uac/2.0/courses/administrator/jira/v62/workflows/conditions-validators-post-functions#/lesson-content-header

ruby - Capybara - unable to click a link -

i using capybara 2.4.4 click link. html this: <a name="skiplink" id="skiplink" type="button" href="javascript:void(0);" onclick="skipform(); return false;">salta</a> capybara command: find("a", :text => "salta").click find('skiplink').click none of both works: failure/error: find("a", :text => "salta").click nomethoderror: undefined method `empty?' nil:nilclass i have copied-pasted html save_and_open_page output may correct i using default driver (no selenium) thanks either of following should work click_on('salta') find(:css, '#skiplink').click # :css necessary if you've changed capybaras default selector your find("a", :text => "salta").click should work -- when using capybaras default driver (racktest) clicking on javascript links isn't going work since driver doesn't

.net - Entity FrameWork Filter Navigation Properties Does Not Work -

i realised need filter out entities navigation property in ef. found microsoft's own page on this: https://msdn.microsoft.com/en-us/data/jj574232#explicitfilter i have copied code vb.net closely can entities. changed filter after did not work should filter out (id = -99). still did not work. gets invoice not filter of related invoice details. dim inv = mybase.context.invoices.include(function(x) x.invoicedetails).where(function(x) x.id = id).firstordefault mybase.context.entry(inv).collection(function(x) x.invoicedetails).query().where(function(d) d.id = -99).load() dim cc = inv.invoicedetails.count if cc > 1 debug.write(cc)''this should not run should filtered out end if any ideas? code seems match thiers closely. have tried , without ".include". note not possible filter related entities loaded. include bring in related entities. entity framework team working on it. upcoming feature request feature please see explicit fil

javascript - Can't change text in button -

here code book "html 5 + js dummies", looking @ more 2 hours , can't find reason why doesn't want work. i'm in stage , sorry newb question. <!doctype html> <html> <head> <title> outputting data html </title> <script language ="javascript"> { document.getelementbyid("mytext"). innerhtml ="clicked!"; } </script> </head> <body> <h1> creating html element output </h1> <div> <p id="mytext">change me </p> </div> <div> <input id="btnclickme" type="button" value = "click me" onlick="writetext()"/> </div> </body> </html> <!doctype html> <html> <head> <title> outputting data html </title> <script> function writetext() { document.getelementbyid("mytext"). innerhtml ="clicked!"; } </script>

xml - Grouping rows and merge output HTML cells using XSL -

Image
i'm trying group span of rows can set background color of each set alternatively. merge first column 1 cell. here have done far. xml <action> <step> <obj>uc_a</obj> </step> <step> <obj>abc</obj> </step> <step> <obj>bcd</obj> </step> <step> <obj>cde</obj> </step> <step> <obj>uc_b</obj> </step> <step> <obj>def</obj> </step> <step> <obj>efg</obj> </step> <step> <obj>uc_c</obj> </step> <step> <obj>abc</obj> </step> <step> <obj>bcd</obj> </step> <step> <obj>cde</obj> </step> </action> xsl <xsl:stylesheet version="1.0"

node-sqlserver, Azure Mobile Services and Azure SQL - old rows are returned even after transaction commit -

i have following code on server side: let query = ` begin transaction foo_tran exec sp1_update ..., exec sp2_insert ..., exec sp3_update ..., exec sp4_delete ..., ... commit transaction foo_tran select 1 [@@@]; `; mssql.query(query, params, { success: function (res) { if (res && res.length === 1 && res[0]['@@@'] == 1) { response.status(200).send({id: request.body.id}); } }, error: (err)=>response.status(500).send(err) }); then client requests modified content using provided id . problem: old data returned ~2-3 seconds. tried specify read uncommited in subsequent select, didn't - old rows mixed new ones. to use transactions azure mobile services you'll want use open method on mssql connection supports transactions. see documentation of open method here . example: request.service.mssql.open({ success: function(connection) {

c# - The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8' -

for months following web api 2 (simplified example) responded correctly to http://localhost/testapi2/api/tests this. [{"id":1,"name":"naples"},{"id":2,"name":"paris"}] //using newtonsoft.json; namespace testapi2.controllers { public class personscontroller : apicontroller { [httpget] [route("api/tests")] public httpresponsemessage getall() { // dbcontext generated databasefirst ef generation using (var cleandbcontext = new cleandbentities()) { var tests = cleandbcontext.testtables; // return return request.createresponse(httpstatuscode.ok, tests, configuration.formatters.jsonformatter); } } } } then updated nugets on project same call responded with: <exceptionmessage> 'obje

git - How to clean working directory after closing a feature branch put old code into develop -

i'm working on project uses git-flow, feature branches have been left dangling. want clean things i'm not familiar git-flow in practice. i used tower's git-flow "finish feature" on branch, noticed working directory contains code has been superseded while ago. in hindsight, guess should have rebased code on feature branch use latest develop branch available, thought git-flow did automatically. how clean mess (i.e. return working directory latest status of develop branch) , how merge old feature branches without reverting code? thanks! i'm not entirely sure understood problem. here's got : you have feature branch started while ago, several changes having been made on develop (master) git checkout develop git fetch -p git pull origin develop (or whatever main branch called) git checkout myfeaturebranch git merge develop now files correctly updated, you'll conflicts if touched same files. files conflicts show, can check them

Trying to insert a ruby hash into a Postgres Database -

i have created hash scraped xml data have retrieved web. next task insert data postgresql database each key different column, , have drawn blank. appreciated. in advance. temp = @ttc.css('vehicle').map |vehicle| { id: vehicle.attributes["id"].value, routetag: vehicle.attributes["routetag"].value, lat: vehicle.attributes["lat"].value, lon: vehicle.attributes["lon"].value } end provided model name vehicle , vehicles table has columns named id , routetag , lat , lon , solution simple this: @new_vehicle = vehicle.create(temp)

Are EventListeners automatically added to the AWTEventMulticaster in Java Swing -

we seeing stackoverflow error in our application after numerous jtextfields instantiated in application. error, shown below, involves awteventmulticaster . based on reading of is, don't understand how happenning since never explicitly add event listerners awteventmulticaster (until didn't know existed). when attach listener component, somehow automatically registered awteventmulticaster well? exception in thread "awt-eventqueue-0" java.lang.stackoverflowerror @ java.awt.awteventmulticaster.remove(unknown source) @ java.awt.awteventmulticaster.removeinternal(unknown source) @ java.awt.awteventmulticaster.remove(unknown source) @ java.awt.awteventmulticaster.removeinternal(unknown source) @ java.awt.awteventmulticaster.remove(unknown source) @ java.awt.awteventmulticaster.removeinternal(unknown source) @ java.awt.awteventmulticaster.remove(unknown source) @ java.awt.awteventmulticaster.removeinternal(unknown source)

r programming list.files with for than one file format -

i don't think can done, still, not hurt ask: for example can see .csv , .rda files in working dir 1 command. i.e. can these 2 commands combined list.files(pattern=".rda") list.files(pattern=".csv") is best way: a = list.files(pattern=".rda") b = list.files(pattern=".csv") print(c(a,b)) from ?list.files pattern optional regular expression. file names match regular expression returned. you may use regex. list.files(pattern="\\.(rda|csv)") use end of line anchor if necessary. list.files(pattern="\\.(rda|csv)$")

eclipse - How to display sqlites file.db in eclipe as part of python 3 -

Image
i'm trying add below code, seems added, when go view database.db file, outputs image, explain how proper output eclipse? i'm using latest python has sqlite3 included. import sqlite3 db = sqlite3.connect('database.db') db.execute('create table person (firstname text, secondname text, age int)') if need view .db file, if that's case use view db. http://sourceforge.net/projects/sqlitebrowser/

Python - search and replace content in XML file -

i have requirement have sample xml file defined structure. want search of tag/child in xml file, replace text/value input file , save changes new xml file preferably without effecting input sample xml. i understand can achieved xml parser traverse through child intended. problem @ top of xml file have <nc:data xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> i have written python function shown below failing intended thing. def search_replace(): replicate() // function makes tmp file sample input xml work on. tree = et.parse("/path/to/file/tmp_file.xml") tree.find('nc:data/child1/child2/child3').text = 'test' tree.write("new_file.xml") please suggest best approach handle this. not python-skilled of !! you need create dictionary map prefix namespace uri , pass additional parameter of find() : def search_replace(): replicate() tree = et.parse("/path/to/file/tmp_file.xml&q

Programmatically open a specific Android settings page without allowing the user to further navigate away from the application -

i developing application run in kiosk mode. in android application possible programmatically open settings page , how can while preventing user further navigating other settings via button in top left corner? ideally clicking button in top left of opened settings page return application opened instead of going main android settings page user can change things don't want them have access kiosk mode application. edit specifically, trying open language settings change language , culture on device can detect , change language , culture in application. the intent mechanism not totally fine-grained. can see question linked, can open settings application easily. exception of location settings page , android settings application not designed provide fine grained control cannot step main settings screen. i have taken @ source code , can find actions related each settings page. in general, not possible isolate user on specific screen. example, tablets show entire settings

java - Changing values of parameters after binding when calling query at Oracle database -

we have in company application developed using java 7, spring framework 3.1.2, mybatis 3.1.1, mybatis spring 1.2.2, jasperreports 6.1.0, etc. application works @ tomcat 7.0.35, uses tomcat connection pool connection oracle database 10g enterprise edition release 10.2.0.4.0 - 64bit. jre version 1.7.0_09-b05. application works @ rhel server 6.5. from time time problem arises, disappears after few hours (3-6 hours), , couple of days (1-3 days). when web service creates report, application calls method mybatis mapper returns list<monthlyreport>, application passes list jasperreport engine create report on file system, , @ end application returns stream of file @ response (mtom). problem periodically when trying run query in database create report, causes following exception: error 2015-07-23 11:44:03,012 [http-bio-8280-exec-2] exception type: org.springframework.jdbc.uncategorizedsqlexception error 2015-07-23 11:44:03,012 [http-bio-8280-exec-2] exception message: ### error q