Posts

java - Printing JPanel into PDF with itext without displaying it -

i have number of sheets contains numbers of jpanel. jpanels parents jtextpane, once panel visible can print pdf itext, if page not itext doesnt print panel. @ time of printing ducument created , contents added jtextpane , size of panel known too. hier print code public static void printcomponent(final jcomponent component, final rectangle bounds) throws documentexception, saxexception, ioexception, parserconfigurationexception { if (pdfcanvas == null) { return; } final rectangle alloc = new rectangle(component.getbounds().width, component.getbounds().height); pdfcanvas.savestate(); pdfcanvas.setleading(0); pdfcanvas.setcharacterspacing(0); final pdftemplate canvas = pdfcanvas.createtemplate(alloc.width, alloc.height); final fontmapper arialuni = new fontmapper() { @override public basefont awttopdf(final java.awt.font font) { //return basefont.... } @override public java.awt....

JAVA JDBC ODBC DRIVER SQLMX -

i have application connect mxsql(hp non stop db) using odbc driver. below code : string driver = "sun.jdbc.odbc.jdbcodbcdriver"; string dburl = "jdbc:odbc:smartvista"; string dbuname = "*****"; string dbpwd = "******"; class.forname(driver); connection conn = drivermanager.getconnection(dburl, dbuname, dbpwd); string getquery = "some query here"; system.out.println(getquery); statement stmt = conn.createstatement(); the code working fine time ago stop working throwing below error java.lang.classnotfoundexception: sun.jdbc.odbc.jdbcodbcdriver @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) i suspect error related java version. post has suggest using ucanacess , unable implement same. please advise anyone

python - How to get the state of checkbox which is the listview_item -

here code: list_view = ruleset_form.tsettingslistview ctrl = list_view.wrapperobject() list_view = listviewwrapper(ctrl) i can't checkbox http://take.ms/plezr variants presented below don't work: 1) ctrl = list_view.items()[2].wrapperobject() checkbox = buttonwrapper(ctrl) output is: attributeerror: '_listview_item' object has no attribute 'wrapperobject' 2) ctrl = list_view.getitem(i,3).wrapperobject() checkbox = buttonwrapper(ctrl) output is: attributeerror: '_listview_item' object has no attribute 'wrapperobject' 3) ctrl = list_view.getitem(i,3).item().wrapperobject() checkbox = buttonwrapper(ctrl) output is: attributeerror: 'lvitemw' object has no attribute 'wrapperobject' 4) checkbox = buttonwrapper(list_view.getitem(i,3).listview_ctrl) output always: 0

Embedded Tomcat logging over logback / sl4j -

how can make embedded tomcat write logs on logback? found info using standalone tomcat log4j. how setup embedded tomcat , logback? these maven dependencies: <dependency> <groupid>ch.qos.logback</groupid> <artifactid>logback-core</artifactid> <version>${logback.version}</version> </dependency> <dependency> <groupid>org.apache.tomcat.embed</groupid> <artifactid>tomcat-embed-core</artifactid> <version>${tomcat.version}</version> </dependency> <dependency> <groupid>org.apache.tomcat.embed</groupid> <artifactid>tomcat-embed-logging-juli</artifactid> <version>${tomcat.version}</version> </dependency> <dependency> <groupid>org.apache.tomcat.embed</groupid> <artifactid>tomcat-embed-logging-log4j</artifactid> <version>${tomcat.version}</version> </depend...

ios - Application builded using Dynamic framework not submitted to app store -

i have created dynamic framework , while importing dynamic framework application needs add in embedded binaries. it working both device , simulator when archive , make .ipa file submit , got below error while submitting app app store. 1) error itms-90087: "unsupported architectures. executable sample.app/frameworks/customframework.framework contains unsupported architectures '[x86_64, i386]'." 2) error itms-90209: "invalid segment alignment. app binary @ 'sample.app/frameworks/customframework.framework/customframework' not have proper segment alignment. try rebuilding app latest xcode version.” 3) error itms-90125: "the binary invalid. encryption info in lc_encryption_info load command either missing or invalid, or binary encrypted. binary not seem have been built apple's linker.” 4) warning itms-90080: "the executable 'payload/sample.app/frameworks/customframework.framework' not position independent executable. please ...

java - android SQLite, can't view data anymore in my listView -

yesterday made nice listview see database, today tried add on line database , got error message saying "database leaked. blabla close database". after not add anymore line database. but restarted android studio , add new line (and no error anymore) ! can't see news lines add. see line added before error (or maybe can see 1 added caused me error). checked database chrome , see everything, added news lines ! i don't know up, checked history several class didn't make bad change (i think). how can see database again ? use contentprovider access database. here fragment class list view (i use 2 button inside elements list view , textview) : public class viewcardeditor extends fragment implements loadermanager.loadercallbacks<cursor> { public static final string authority = "com.example.jean.cartememoire.cardcontentprovider"; public string[] from; public final int[] = {r.id.idlist, r.id.themelist, r.id.questionlist, r.id.reponselis...

spring boot - Where does MongoDB for PCF Development Services store all data values? -

my current application using mongodb running on localhost default port 27017. web application reflect data stored in database. when push application cloud foundry, , bind mongo service, uses database. , how can view/access data being inputted. on local machine able use db.collection.find() , queries of data. the data stored in cf mongo service. can check running inspecting values in vcap_services section of application environment: cf env <app name> in environment can see connection details, db should not accessible directly. connect db can use tunnel similar chisel or crowbar. there chisel fork contains instructions on how connect cf services.