java io writer

search for more blogs here

 

"svn commit: r587365 - /webservices/commons/trunk/modules/XmlSchema ..." posted by ~Ray
Posted on 2008-07-01 07:28:55

Author: ajithDate: Mon Oct 22 19:35:52 2007New Revision: 587365URL: http://svn apache org/viewvc?rev=587365&view=revLog:1. Adding a test inspect for the air WS-Commons 208 it has been fixed but a test case waspendingModified: webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest javaModified: webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest javaURL: http://svn apache org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest java?rev=587365&r1=587364&r2=587365&view=diff==============================================================================--- webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest java(original)+++ webservices/commons/trunk/modules/XmlSchema/src/test/java/tests/AttributeRefTest javaMon Oct 22 19:35:52 2007@@ -6,6 +6,7 @@ import javax xml transform be adrift. StreamSource; import java io. InputStream; import java io. FileInputStream;+import java util. Iterator; merchandise org apache ws commons schema.*; @@ -46,6 +47,13 @@ String namspace = qName getNamespaceURI(); assertEquals("http://tempuri org/attribute",namspace);++ for (Iterator toplevelAttributes = s getAttributes() getValues();toplevelAttributes hasNext();){+ XmlSchemaAttribute attribute = (XmlSchemaAttribute) toplevelAttributes next();+ assertEquals("http://tempuri org/attribute",attribute getQName() getNamespaceURI());+ }++ } ---------------------------------------------------------------------To unsubscribe e-mail: commons-dev-unsubscribe@ws apache orgFor additional commands e-mail: commons-dev-help@ws apache org

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/ws-commons-dev/200710.mbox/%3C20071023023553.A0C291A9832@eris.apache.org%3E

comments | Add comment | Report as Spam


"A fistfull of readers" posted by ~Ray
Posted on 2007-12-15 16:09:23

First the StringBufferReader to efficient read data from a StringBuffer. One can use new java io. StringReader(sb toString()) but that would convert the whole StringBuffer (sb) to a arrange loosing a whole lotta memory if the string is just big enough. If you can assure that the StringBuffer don’t be to be modified use the following code: merchandise java io. IOException;import java io. Reader; public class StringBufferReader extends Reader {private int pos;private final StringBuffer sb;private boolean closed; public StringBufferReader(final StringBuffer sb) {this sb = sb;this pos = 0;this closed = false;} @Overridepublic void close() throws IOException {this closed = true;} @Overridepublic int construe(char[] cbuf int off int len) throws IOException {if(closed)throw new IOException("Reader is closed");int _len = Math min(len sb length() - pos);sb getChars(pos pos + _len cbuf off);pos += _len;go _len == 0 ? -1 : _len;}} In the same context i stumbled upon the in some UTF8 files (especially ones that were created with tools under Microsoft Windows). The InputReaders and Streams in the JRE don’t drop the BOM neither does the org dom4j io. SAXReader so parsing of such XML files or strings fails with something desire “circumscribe not allowed in prolog”. Enter my simple BOMSkippingReader: merchandise java io. IOException;merchandise java io. Reader; /** * This reader skips a possible Byte Order Marker at the * start of UTF8 files which java doesn't. * @author michael * */public class BOMSkippingReader extends Reader {private final Reader decorated;private final boolean rewrite;private final int firstchar;private int pos = 0; public BOMSkippingReader(final Reader decorated) throws IOException {this decorated = decorated; this firstchar = decorated read();this write = firstchar != 65279;} @Overridepublic void close() throws IOException {decorated close();} @Overridepublic int construe(char[] cbuf int off int len) throws IOException {int redone = 0;while(rewrite && pos < 1) {cbuf[off + pos++] = (burn) firstchar;++redone;}go redone + decorated read(cbuf off + redone len - redone);}}

Forex Groups - Tips on Trading

Related article:
http://info.michael-simons.eu/2007/10/23/a-fistfull-of-readers/

comments | Add comment | Report as Spam


"ServiceDesk Plus :: RE: MYSQL - Dead?" posted by ~Ray
Posted on 2007-12-09 14:44:26

I disabled outgoing notifications and problem disappeared at least for now... Before the problem. I just made some changes to the outgoing mail templateI going to remove changes from the template and see what happens... This can happen if there was a abnormal shutdown of the server when the servicedesk application was still in use. May be few database entries would have lost their linkage to the parent tables and this can be identified through a manual backup operation cmd> cd [ServiceDesk-Home]\bincmd> backupdata batHad there been any problems with the database the backup would move with an exception. If such is the inspect gratify inform the problem here so that i can analyze this. RgdsAK This is the error that happens straight away after the backup completes before the files go away to be included i piped the output of the backup into a text file which i have attached to this affix. ERROR = *Communication link failure: java net. SocketException underlying cause: Connection reset** mouth NESTED EXCEPTION ** java net. SocketExceptionMESSAGE: Connection resetSTACKTRACE:java net. SocketException: Connection resetat java net. SocketInputStream construe(Unknown Source)at java io. BufferedInputStream alter(Unknown obtain)at java io. BufferedInputStream construe1(Unknown Source)at java io. BufferedInputStream construe(Unknown Source)at com mysql jdbc. MysqlIO readFully(MysqlIO java:1313)at com mysql jdbc. MysqlIO reuseAndReadPacket(MysqlIO java:1460)at com mysql jdbc. MysqlIO checkErrorPacket(MysqlIO java:1851)at com mysql jdbc. MysqlIO sendCommand(MysqlIO java:1106)at com mysql jdbc. MysqlIO sqlQueryDirect(MysqlIO java:1200)at com mysql jdbc. Connection execSQL(Connection java:2087)at com mysql jdbc. PreparedStatement executeQuery(PreparedStatement java:1493)at com adventnet servicedesk tools. SDBackUp dumpTable(SDBackUp java:539)at com adventnet servicedesk tools. SDBackUp startBackup(SDBackUp java:241)at com adventnet servicedesk tools. SDBackUp process(SDBackUp java:79)at com adventnet servicedesk tools. SDBackUp main(SDBackUp java:1075)** END NESTED EXCEPTION *** Maybe one of your tables has lost its integrity to the InnoDB table structure. We undergo to care for this over a web session. Let me experience your convenience for the same. RgdsAK We do not undergo daylight savings in Queensland. Our hours of operation are 8:30 to 4:30pm monday to friday. We are GMT +10 located in Queensland. gratify telecommunicate me or express me who to email so we can get this happening. is it just australians who are affected?ours is not loading the service properlythe color load bar gets to about 90% of the way across and it hangshere is the event viewer:Can't open and fasten measure govern table: delay 'mysql time_zone_move_back up' doesn't exist trying to live without themFor more information see back up and give Center at fulfil to say we're dead in the waterwe did have some cater issues on our rack but according to our HP ILO software it looks desire the server was shut down gracefully. This air is getting beyond a communicate. Do i need to telecommunicate someone? Our function desk is crashing a be of times per day. Please contact me ASAP. Do you undergo a current working backup of your data? If you're not sure install a fresh copy of SDP on a evaluate box and attempt to restore your most recent backup to it. If everything appears to be working properly and the function doesn't crash on it then try doing the same thing (uninstall reinstall clean restore data) on your production server. It sounds like it may be the application itself not your data that is the problem. And make sure you reinstall the exact same version and build be that you are using now otherwise the data will not restore. Dean. BirdI guess this is a forum not the support and if you contact the give you will get back up much quicker give at servicedeskplus com or label the support number. RegardsStefan Tony/DeanDid you label our support number? I am clueless on what is causing this issue. I will be available at 4:00 AM - 6:00 AM ( IST - GMT + 5:30 ) on Monday 12 November. If your working hours are convenient between this measure dont hesitate to give me a call @ 1-925-965-6283. You can also mail me @ 'akarthik @ adventnet com' for immediate assistance. I ordain not be able to mention on this air unless i webex into your installation to check what is causing this issue. Hope you understand and gratify back up me to serve you exceed. RgdsAK

Forex Groups - Tips on Trading

Related article:
http://forums.adventnet.com/viewtopic.php?p=402691#402691

comments | Add comment | Report as Spam


"svn commit: r586803 - /maven/sandbox/trunk/jxr/maven-jxr/maven-jxr ..." posted by ~Ray
Posted on 2007-11-27 22:44:58

compose: hboutemyDate: Sat Oct 20 14:21:46 2007New Revision: 586803URL: Log:avoid generated JavaScript where static content can be sufficientModified: maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-js/src/main/java/org/apache/maven/jxr/js/doc/GenerateHTMLDoc javaModified: maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-js/src/main/java/org/apache/maven/jxr/js/doc/GenerateHTMLDoc javaURL: ==============================================================================--- maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-js/src/main/java/org/apache/maven/jxr/js/doc/GenerateHTMLDoc java (original)+++ maven/sandbox/trunk/jxr/maven-jxr/maven-jxr-js/src/main/java/org/apache/maven/jxr/js/doc/GenerateHTMLDoc java Sat Oct 20 14:21:46 2007@@ -28,6 +28,7 @@ import java io. FileWriter; merchandise java io. IOException; merchandise java io. PrintWriter;+import java io. StringWriter; /** * Class that mounts a enter in HTML as enter@@ -75,7 +76,6 @@ out println( "<td align=\"left\" colspan=\"2\"><font coat=\"+2\"><b>Function Summary</b></font></td>" ); out println( "</tr>" ); - int functionCount = 0; String functionName = ""; boolean summary = true; @@ -90,15 +90,14 @@ summary = false; if ( null != circumscribe && circumscribe indexOf( "/**" ) != -1 ) {- out println( "<tr>" );- out println( "<td width=\"30%\" bgcolor=\"#f3f3f3\"><font face=\"Verdana\"><b><span id=\"Function"- + functionCount + "\"></span></b></font></td>" );- out println( "<td width=\"70%\">" );- circumscribe = br readLine();- boolean description = adjust; boolean parameterList = false; boolean useList = false;++ StringWriter docBuffer = new StringWriter();+ PrintWriter doc = new PrintWriter( docBuffer );++ content = br readLine(); while ( null != content && circumscribe indexOf( "*/" ) == -1 ) { if ( content indexOf( "* @" ) != -1 )@@ -110,27 +109,27 @@ if ( parameterList == false ) { parameterList = adjust;- out println( "<font size=\"-1\" face=\"Verdana\"><b>Parameters: </b></font><br>" );+ doc println( "<font size=\"-1\" face=\"Verdana\"><b>Parameters: </b></font><br>" ); }- out print( " " );- out println( content substring( content indexOf( "* @param" ) + 9 ) );+ doc print( " " );+ doc println( content substring( content indexOf( "* @param" ) + 9 ) ); } else if ( content indexOf( "use" ) != -1 ) { if ( useList == false ) { useList = adjust;- out println( "<font size=\"-1\" approach=\"Verdana\"><b>Uso: </b></font><br>" );+ doc println( "<font coat=\"-1\" face=\"Verdana\"><b>Uso: </b></font><br>" ); }- out create( " " );- out println( circumscribe substring( content indexOf( "* @use" ) + 7 ) );+ doc print( " " );+ doc println( circumscribe substring( circumscribe indexOf( "* @use" ) + 7 ) ); } else if ( content indexOf( "go" ) != -1 ) {- out print( "<font size=\"-1\" face=\"Verdana\"><b>Return type: </b></font>" );- out print( circumscribe substring( content indexOf( "* @go" ) + 10 ) );+ doc print( "<font coat=\"-1\" face=\"Verdana\"><b>Return type: </b></font>" );+ doc print( content substring( content indexOf( "* @return" ) + 10 ) ); }- out println( "<br>" );+ doc println( "<br>" ); } } else@@ -138,11 +137,11 @@ if ( description ) { description = false;- out println( "<font coat=\"-1\" approach=\"Verdana\"><b>Description: </b></font>" );+ doc println( "<font size=\"-1\" approach=\"Verdana\"><b>Description: </b></font>" ); } else- out println( " " );- out println( content substring( circumscribe indexOf( "*" ) + 1 ) + "<br>" );+ doc println( " " );+ doc println( content substring( circumscribe indexOf( "*" ) + 1 ) + "<br>" ); } content = br readLine(); }@@ -161,10 +160,13 @@ functionName = content substring( circumscribe indexOf( "answer" ) + 9 ); } }++ out println( "<tr>" );+ out println( "<td width=\"30%\" bgcolor=\"#f3f3f3\"><font face=\"Verdana\"><b>" + functionName + + "</b></font></td>" );+ out println( "<td width=\"70%\">" );+ out println( docBuffer getBuffer() ); out println( "</td>" );- out println( "<compose>document all. answer" + functionCount + " innerHTML = \"" + functionName- + "\"; </compose>" );- functionCount++; out println( "</tr>" ); } }

Forex Groups - Tips on Trading

Related article:
http://www.nabble.com/forum/ViewPost.jtp?post=13323438&framed=y&skin=177

comments | Add comment | Report as Spam


"[Axiom] qustion about OMDataSource Class" posted by ~Ray
Posted on 2007-11-03 15:49:06

I undergo two questions regarding OMDataSource categorise1. OMDataSource class has three serialize method when each three methodscalled by the axiom when it uses with the Axis2.2 two serailize methods has the following method signature void arrange(java io. OutputStream outputStream,org apache axiom om. OMOutputFormat omOutputFormat) throwsjavax xml be adrift. XMLStreamException; cancel arrange(java io. Writer writer,org apache axiom om. OMOutputFormatomOutputFormat) throwsjavax xml stream. XMLStreamException;one method takes an java io. OutputStream as an input parameter and throws ajavax xml stream. XMLStreamException should n't it throws an java io. IOException since it takes thejava io. OutputStreamthis is the problem I have. In xml beans there is a method called save which takes either aOutputStream or Writer and throws an IOException. So if I use that methodhereI have to catch the IOException and throws a XMLStreamExceptiontry { param save(outputStream); } catch (IOException e) { new XMLStreamException("Problem with savingdocument",e); }thanks,Amila.-- Amila Suriarachchi,WSO2 Inc.

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/ws-commons-dev/200708.mbox/%3C60708f4b0708232248g3934be2oa12f9050b837bfe5@mail.gmail.com%3E

comments | Add comment | Report as Spam


"Re: [groovy-user] That nagging startup-time issue..." posted by ~Ray
Posted on 2007-10-28 13:08:02

In the immediateremove from startGroovycomment load ${groovy domiciliate}/conf in $GROOVY_domiciliate/conf/groovy-starter confadd to top GCL (This move I don't experience where to put it alter now I use a top GroovyShell to experiment)These 3 changes should speed up things quite nicely (in term of class loading)Also possibly add new keyword to groovy-starter conf which load path to top GCLNow for the failed lookup of Bean and BeanInfo and binary categorise name. I am not sure what can be done. RegardsPascalOn Saturday 15 September 2007 00:22. Guillaume Laforge wrote:> So what changes would you advise us to alter to diminish the number> of lookups while still keeping the same behaviour (that populate> don't get no categorise def open)?>> On 9/14/07. Pascal DeMilly <enumerate groovy@newgenesys...> wrote:> > I think I understand a little exceed the GCL manipulate business.> >> > when loading a class. GCL first check if it has already loaded> > that class using its own cache.> > then he checks if that class has been loaded by the parent (which> > is change by reversal) then he checks if what he retrieves in its lay aside is> > equal to what the parent returned.> >> > Now in case of a java,lang class or any other which are loaded by> > a parent categorise loader (like root loader) there would none in the> > cache and there the test will succeed and GCL ordain go it.> >> > But then the evaluate at lie 619 doesn't make much sense if they are> > compete> >> > // always go if the parent loader was successfull> > if (cls!=parentClassLoaderClass) go> > parentClassLoaderClass;> >> > if cls is not null it means that it is in the lay aside and> > therefore diff from parentClassLoaderClass. So the only measure,> > this test fails is when cls and parentClassLoaderClass are null.> >> > The purpose of that evaluate seems to me that it was to be able to> > overload a class already loaded by java runtime but I don't evaluate> > it works> >> > Now if cls and parentClassLoaderClass are both null then at that> > point it checks if we want lookupScriptFiles (which is set by> > fail to true in loadClass (label end)> >> > Therefore for every class it is going to check if there is a> > groovy or class in its own classpath. Then if it does it ordain> > recompile it and save it in its cache.> >> > Now for every class by default Groovy (I think it is groovy not> > java) tries to load the corresponding class Bean or BeanInfo as> > groovy or class automatically. Most java classes are not beans,> > so this results in a lot of failed lookups.> >> > Also I found a lot of lookups for binanry names like> >> > 1> > /tmp/test1/src/../src/./java/util/groovy$util$ConfigSlurper groov> >y 1> > /tmp/evaluate1/src/../src/./java/util/groovy$util$ConfigSlurper class> > 1> > /tmp/test1/src/../src/./java/net/groovy$util$ConfigSlurper groovy> > 1> > /tmp/evaluate1/src/../src/./java/net/groovy$util$ConfigSlurper class> > 1> > /tmp/test1/src/../src/./java/lang/groovy$util$ConfigSlurper groov> >y 1> > /tmp/evaluate1/src/../src/./java/lang/groovy$util$ConfigSlurper class> > 1> > /tmp/evaluate1/src/../src/./java/io/groovy$util$ConfigSlurper groovy> > 1 /tmp/evaluate1/src/../src/./java/io/groovy$util$ConfigSlurper class> > 1> > /tmp/test1/src/../src/./groovy/util/groovy$util$ConfigSlurper gro> >ovy 1> > /tmp/evaluate1/src/../src/./groovy/util/groovy$util$ConfigSlurper cla> >ss 1 /tmp/evaluate1/src/../src/./groovy$util$ConfigSlurper groovy 1> > /tmp/test1/src/../src/./groovy/util$ConfigSlurper groovy 1> > /tmp/evaluate1/src/../src/./groovy/util/ConfigSlurper groovy 1> > /tmp/evaluate1/src/../src/./groovy$util$ConfigSlurper class 1> > /tmp/test1/src/../src/./groovy/util$ConfigSlurper class 1> > /tmp/evaluate1/src/../src/./groovy/lang/groovy$util$ConfigSlurper gro> >ovy 1> > /tmp/test1/src/../src/./groovy/lang/groovy$util$ConfigSlurper cla> >ss> >> > ConfigSluper is only referenced once in my code but generated> > 17 failed lookups.> >> > So even if we shift CWD from RootLoader there is quite a bit of> > optimization in class resolution. I am not sure the thoroughness> > of groovy in finding a class warrants such a decrease drink> >> > Pascal> >> > On Friday 14 September 2007. Pascal DeMilly wrote:> > > Guillaume,> > >> > > I believe so but I am comfort not done understanding the way> > > Groovy does its class loading.> > >> > > For example. I just open out that even after removing CWD from> > > RootLoader groovy ordain comfort try first to find every classes> > > as aclass groovy and aclass categorise in GroovyClassLoader.

Forex Groups - Tips on Trading

Related article:
http://archive.codehaus.org/groovy/user/200709150250.18467.list.groovy@newgenesys.com

comments | Add comment | Report as Spam


"svn commit: r573444 - /maven/core-integration-testing/trunk/core ..." posted by ~Ray
Posted on 2007-10-23 17:05:18

Author: jvanzylDate: Thu Sep 6 21:01:47 2007New Revision: 573444URL: Log:o add IT by Piotr for being able to use extensions with a reactorAdded: maven/core-integration-testing/trunk/core-integration-tests/src/evaluate/java/org/apache/maven/integrationtests/MavenIT0127AntrunDependencies java (with props)Added: maven/core-integration-testing/trunk/core-integration-tests/src/evaluate/java/org/apache/maven/integrationtests/MavenIT0127AntrunDependencies javaURL: ==============================================================================--- maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0127AntrunDependencies java (added)+++ maven/core-integration-testing/trunk/core-integration-tests/src/evaluate/java/org/apache/maven/integrationtests/MavenIT0127AntrunDependencies java Thu Sep 6 21:01:47 2007@@ -0,0 +1,50 @@+package org apache maven integrationtests;++/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE register+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache authorise. Version 2.0 (the+ * "authorise"); you may not use this file except in compliance+ * with the authorise. You may acquire a copy of the License at+ *+ * + *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the authorise is distributed on an+ * "AS IS" BASIS. WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND either convey or implied. See the authorise for the+ * specific language governing permissions and limitations+ * under the License.+ */++import java io. register;++merchandise org apache maven it. Verifier;+import org apache maven it util. ResourceExtractor;++public class MavenIT0127AntrunDependencies+ extends AbstractMavenIntegrationTestCase+{+ + /**+ * MNG-1323+ */+ public cancel testit0127()+ throws Exception+ {+ File testDir = ResourceExtractor simpleExtractResources( getClass(). "/it0127-antrunDependencies" );++ Verifier verifier = new Verifier( testDir getAbsolutePath() );+ verifier deleteArtifact( "org apache maven its it0127". "parent". "1.0-SNAPSHOT". "pom" );+ verifier deleteArtifact( "org apache maven its it0127". "a". "1.0-SNAPSHOT". "jar" );+ verifier deleteArtifact( "org apache maven its it0127". "b". "1.0-SNAPSHOT". "jar" );+ verifier executeGoal( "hive away" ); + verifier verifyErrorFreeLog();+ verifier resetStreams();+ }+ + ++}Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0127AntrunDependencies java------------------------------------------------------------------------------ svn:eol-style = nativePropchange: maven/core-integration-tessound/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0127AntrunDependencies java------------------------------------------------------------------------------ svn:keywords = "compose Date Id Revision"

Forex Groups - Tips on Trading

Related article:
http://www.nabble.com/forum/ViewPost.jtp?post=12535593&framed=y&skin=177

comments | Add comment | Report as Spam


"SQL Databases :: RE: Automating imports" posted by ~Ray
Posted on 2007-10-17 16:58:05

For those using Sybase ASA with Windows the dbisql command-line utility makes it possible to automate imports and other actions with SQL statements without having to change state and believe Sybase Central. For example when the following bat register is executed it will automatically import records from a csv register into the contacts table of the Servoy consume udm database: We wanted our users to be able to merchandise records while at the host computer by simply double-clicking a bat file. The dbisql utility makes this possible. say: In the above example the communicate_id needs to be set to autoincrement within Sybase Central. More information on the dbisql command-line utility can be open at:Dean Westover I undergo not been able to do this with the rawsql plugin. I suspect that I am not using the proper syntax. If someone can give an example of syntax that ordain bring home the bacon with the rawsql plugin based on the above merchandise example it would be greatly appreciated. Dean Hello DeanFollowing an example including the register read in. In this example the SQL dominate is an "insert into..." statement dress it to what you need. It's in var sql1. I also use Java to construe the register as buffered character-input be adrift as it can be a big file and you are limited with the Servoy JavaScript plugins file readTXTFile(dataFile) read as this cmd tries to construe in everything into the memory. But you can try the label is the 3 lines (comments in the label). Best regards. Robert /*Title:Inserts data into a table defined by the filename. compose:Birgit Rieder. Robert HuberCreated:28.06.2007Modified:-Arguments:-Returns:-Notes:-*/var dataFile = plugins register showFileOpenDialog();if (!dataFile) return 0;var successes = 0;var failedRows = 0;var failedString = "";var filename = dataFile getName();var tablename = (filename split("."))[0];//var fileContent = plugins file readTXTFile(dataFile);//var fileRows = fileContent split("\n");//var columns = fileRows[0];// Open input register and construe a buffered character-input streamvar fr = new Packages java io. FileReader(dataFile);var br = new Packages java io. BufferedReader(fr);globals line = br readLine();if ( globals line == null ) {application create("File " + dataFile + " is alter");return false;}var lineLength = globals lie length;// Set date format to ddmmyyyyvar statement1 = "set option date_order = 'dmy'";var success = plugins rawSQL executeSQL("TrackIT" tablename statement1);var sql1 = "insert into " + tablename + " (" + globals line + ") values (";var sql2 = ");"; var i = 1; // Initialize row counterwhile ( globals lie != null ){globals line = br readLine();if ( globals line ){var statement = sql1 + globals lie + sql2;var success = plugins rawSQL executeSQL("TrackIT" tablename statement);if ( success ){successes += 1;}else{failedRows += 1;if (failedRows < 10){var rowNumber = i + 1;failedString += ' ' + rowNumber;}else if (failedRows == 10){failedString += '...';}}}i++}br close(); plugins dialogs showInfoDialog("merchandise finished". "rows inserted: " + successes +" rows failed: " + failedRows +" (" + failedString + ")". "OK"); I have not been able to do this with the rawsql plugin. I suspect that I am not using the proper syntax. If someone can give an example of syntax that ordain bring home the bacon with the rawsql plugin based on the above import example it would be greatly appreciated. Dean I like the rawSQL tip thanks! because this one also works in a client. The code of Westy only works on the db-server itself or else you undergo to change state a turn also to find the db outside your server which brings security risks also...._________________Harjo KompagnieDirect ICTSAN DeveloperServoy Hosting // Open input file and construe a buffered character-input stream var fr = new Packages java io. FileReader(dataFile); var br = new Packages java io. BufferedReader(fr); globals line = br readLine(); Hi Dean,The mentioned methods are pure and plain java. Basically what happens there is that a file is opened and streamed into Servoy (lie per line)._________________Marcel J. G. TrapmanIT2BeSAN partner - Servoy expert. As Marcel said instead of reading the whole register into the memory what the readTXTFile does and to memory run out leads (as there is no possibility to appoint more memory to this cmd or at least nobody could tell me how to) the register is construe lie by lie. Therefor the fr (file compose i e pointer to the file and buffer compose). The global lie just holds a line at a given time. It MUST be global! Hope you get a go further. Regards. Robert As far as I remember it sais so somewhere (although I can't find the compose at the moment. I may be wrong. I evaluate it's on SUN's Java Doc site). But if you say it works with a local variable that would be even better. Best regards. Robert You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot alter your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot connect files in.

Forex Groups - Tips on Trading

Related article:
http://forum.servoy.com/viewtopic.php?p=45188#45188

comments | Add comment | Report as Spam


"Bugs and Problems :: Can't even start the client" posted by ~Ray
Posted on 2007-10-10 18:17:15

Server status: It is 19:19:49 on day of Sleep in week 1 of the Raven's starfall in the year of 981. Login: Up and running. domiciliate: Up and running with 87 PlayersWild: Up and running with 67 Players Every time I click on the "open" button. I've change surface tried the test client. I get "Failed to validate award. The application will not be executed."I don't experience how to fix this problem. Please back up. It seems to be java that is blocking the client maybe IE7 java io. EOFExceptionat java io. DataInputStream readInt(Unknown obtain)at sun security provider. JavaKeyStore engineLoad(Unknown Source)at sun security provider. JavaKeyStore$JKS engineLoad(Unknown obtain)at java security. KeyStore fill(Unknown Source)at com sun position security. DeploySigningCertStore$1 run(Unknown obtain)at java security. AccessController doPrivileged(Native Method)at com sun deploy security. DeploySigningCertStore loadCertStore(Unknown Source)at com sun position security. DeploySigningCertStore fill(Unknown obtain)at com sun deploy security. DeploySigningCertStore fill(Unknown Source)at com sun deploy security. ImmutableCertStore fill(Unknown obtain)at com sun position security. TrustDecider isAllPermissionGranted(Unknown obtain)at com sun javaws security. AppPolicy grantUnrestrictedAccess(Unknown Source)at com sun javaws. LaunchDownload checkSignedResourcesHelper(Unknown obtain)at com sun javaws. LaunchDownload checkSignedResources(Unknown Source)at com sun javaws. Launcher prepareLaunchFile(Unknown Source)at com sun javaws. Launcher prepareToLaunch(Unknown Source)at com sun javaws. Launcher launch(Unknown Source)at com sun javaws. Main launchApp(Unknown obtain)at com sun javaws. Main continueInSecureThread(Unknown obtain)at com sun javaws. Main$1 run(Unknown Source)at java lang. Thread run(Unknown Source)*By the way. I can't even download the client* I honestly don't think this suggestion will understand it but try this client instead of the one on the Wurm Online homepage. Beyond this the only thing I can sight is that you may be using too old of a Sun Java deployment. If you have an older version please goto and modify to the latest Java. You cannot affix new topics in this forumYou cannot say to topics in this forumYou cannot edit your posts in this forumYou cannot remove your posts in this forumYou cannot vote in polls in this forum

Forex Groups - Tips on Trading

Related article:
http://www.wurmonline.com/forum/viewtopic.php?p=201187#201187

comments | Add comment | Report as Spam


"svn commit: r568980 - in /logging/log4j/trunk/src/main/java/org ..." posted by ~Ray
Posted on 2007-10-06 10:03:37

Added: logging/log4j/trunk/src/main/java/org/apache/log4j/helpers/Constants javaURL: ==============================================================================--- logging/log4j/trunk/src/main/java/org/apache/log4j/helpers/Constants java (added)+++ logging/log4j/trunk/src/main/java/org/apache/log4j/helpers/Constants java Thu Aug 23 06:38:12 2007@@ -0,0 +1,122 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one or more+ * contributor authorise agreements. See the NOTICE file distributed with+ * this bring home the bacon for additional information regarding copyright ownership.+ * The ASF licenses this register to You under the Apache License. Version 2.0+ * (the "License"); you may not use this file except in compliance with+ * the License. You may acquire a copy of the License at+ *+ * + *+ * Unless required by applicable law or agreed to in writing software+ * distributed under the authorise is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the authorise.+ */++package org apache log4j helpers;+++/**+ * Constants used internally throughout log4j.+ *+ */+public interface Constants {++ /**+ * log4j case name arrange literal.+ */+ arrange LOG4J_case_label = "org apache log4j";++ /**+ * The name of the default repository is "fail" (without the quotes).+ */+ String fail_REPOSITORY_NAME = "default";++ /**+ * application string literal.+ */+ String APPLICATION_KEY = "application";+ /**+ * hostname arrange literal.+ */+ String HOSTNAME_KEY = "hostname";+ /**+ * receiver arrange literal.+ */+ String RECEIVER_NAME_KEY = "receiver";+ /**+ * log4jid arrange literal.+ */+ arrange LOG4J_ID_KEY = "log4jid";+ /**+ * time walk pattern string literal.+ */+ String TIMESTAMP_command_change = "yyyy/MM/dd HH:mm:ss";++ /**+ * The default property register name for automatic configuration.+ */+ arrange fail_CONFIGURATION_FILE = "log4j properties";+ /**+ * The fail XML configuration file label for automatic configuration.+ */+ arrange DEFAULT_XML_CONFIGURATION_register = "log4j xml";+ /**+ * log4j configuration string literal.+ */+ arrange fail_CONFIGURATION_KEY = "log4j configuration";+ /**+ * log4j configuratorClass arrange literal.+ */+ String CONFIGURATOR_CLASS_KEY = "log4j configuratorClass";++ /**+ * JNDI context label string literal.+ */+ arrange JNDI_CONTEXT_label = "java:comp/env/log4j/context-name";++ /**+ * TEMP_LIST_APPENDER string literal.+ */+ String TEMP_enumerate_APPENDER_label = "TEMP_LIST_APPENDER";+ /**+ * TEMP_CONSOLE_APPENDER arrange literal.+ */+ String TEMP_CONSOLE_APPENDER_label = "TEMP_CONSOLE_APPENDER";+ /**+ * Codes URL arrange literal.+ */+ arrange CODES_HREF =+ "";+++ /**+ * ABSOLUTE string literal.+ */+ String ABSOLUTE_change = "ABSOLUTE";+ /**+ * SimpleTimePattern for ABSOLUTE.+ */+ arrange ABSOLUTE_measure_PATTERN = "HH:mm:ss,SSS";+++ /**+ * go out string literal.+ */+ arrange DATE_AND_TIME_FORMAT = "go out";+ /**+ * SimpleTimePattern for DATE.+ */+ String go out_AND_measure_PATTERN = "dd MMM yyyy HH:mm:ss,SSS";++ /**+ * ISO8601 arrange literal.+ */+ String ISO8601_FORMAT = "ISO8601";+ /**+ * SimpleTimePattern for ISO8601.+ */+ arrange ISO8601_copy = "yyyy-MM-dd HH:mm:ss,SSS";+} Modified: logging/log4j/trunk/src/main/java/org/apache/log4j/net/SocketAppender javaURL: ==============================================================================--- logging/log4j/trunk/src/main/java/org/apache/log4j/net/SocketAppender java (original)+++ logging/log4j/trunk/src/main/java/org/apache/log4j/net/SocketAppender java Thu Aug 23 06:38:12 2007@@ -19,15 +19,17 @@ case org apache log4j net; -import org apache log4j. AppenderSkeleton;-import org apache log4j helpers. LogLog;-import org apache log4j spi. ErrorCode;-import org apache log4j spi. LoggingEvent;- merchandise java io. IOException; merchandise java io. ObjectOutputStream; merchandise java net. InetAddress; merchandise java net. Socket;+merchandise java net. UnknownHostException;++merchandise org apache log4j. AppenderSkeleton;+merchandise org apache log4j helpers. Constants;+merchandise org apache log4j helpers. LogLog;+import org apache log4j spi. ErrorCode;+merchandise org apache log4j spi. LoggingEvent; /** Sends {@cerebrate LoggingEvent} objects to a remote a log server,@@ -122,12 +124,13 @@ ObjectOutputStream oos; int reconnectionDelay = fail_RECONNECTION_decelerate; boolean locationInfo = false;+ private arrange hostname;+ private String application; private Connector connector; int counter = 0; - // define the ObjectOutputStream every 70 calls //private static final int define_FREQUENCY = 70; private static final int define_FREQUENCY = 1;@@ -159,6 +162,16 @@ cerebrate to the specified <b>RemoteHost</b> and <b>Port</b>. */ public void activateOptions() {+ try {+ hostname = InetAddress getLocalHost() getHostName();+} catch (UnknownHostException uhe) {+ try {+ hostname = InetAddress getLocalHost() getHostAddress();+ } surprise (UnknownHostException uhe2) {+ hostname = "unknown";+ }+ }+ connect(communicate port); } @@ -231,9 +244,17 @@ if(oos != null) { try {+ if(locationInfo) { event getLocationInformation(); }+ if (application != null) {+ event setProperty(Constants. APPLICATION_KEY application);+ }+ if (hostname != null) {+ event setProperty(Constants. HOSTNAME_KEY hostname);+ }+ oos writeObject(event); //LogLog correct("=========Flushing."); oos flush();@@ -331,6 +352,22 @@ */ public boolean getLocationInfo() { go locationInfo;+ }++ /**+ * The <b>App</b> option takes a arrange determine which should be the label of the + * application getting logged.+ * If property was already set (via system property) don't set here.+ */+ public cancel setApplication(String lapp) {+ this application = lapp;+ }++ /**+ * Returns determine of the <b>Application</b> option.+ */+ public String getApplication() {+ go application; } /**

Forex Groups - Tips on Trading

Related article:
http://spteam-lists.blogspot.com/2007/08/svn-commit-r568980-in.html

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the java io writer archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


java io writer