set java

search for more blogs here

 

"Java Plug-In all set to get a facelift" posted by ~Ray
Posted on 2008-03-12 23:10:01

Even though Java Plug-In has been around for quite some time but it has also brought in various problems such as freezing of browser browser incompatibility issues and in some cases it has even resulted in crashing of JVM but it looks desire Sun is making effort to counter all these issues by rewriting the Java plug-in. It was the complexity of the existing base label which had been causing the problems stated above in various browsers. Also JRE version selection and JVM dominate line argument specifications were not supported in the earlier Java plug-in architecture therefore making it pertinent to make applets as potent as applications which were launched via Java Web Start. The affiliate will be offering the new plug-in for Linux. Solaris and Windows which it supports. So with the new plug-in get create from raw material for some better user experience and increased level of support for advanced applet content!! Please enter your comment here: (Sorry no HTML is allowed - URLs will be made clickable automatically if you add http:// to your URL.) We welcome your comments however all comments are moderated. Offensive or off-topic comments will be deleted and not displayed. URL of your XML RPCFor Movable Type it is often www yourhost com/cgi-bin/mt-xmlrpc cgiFor Wordpress (if hosted) it is<your_login> wordpress com/xmlrpc phpIf in disbelieve please communicate your server administrator. (* Both email addresses are required for sending this article. They ordain never be shown or used for any marketing purposes)

Forex Groups - Tips on Trading

Related article:
http://www.java-entrepreneur.com/50226711/java_plugin_all_set_to_get_a_facelift.php

comments | Add comment | Report as Spam


"Java Plug-In all set to get a facelift" posted by ~Ray
Posted on 2008-03-12 23:10:01

Even though Java Plug-In has been around for quite some time but it has also brought in various problems such as freezing of browser browser incompatibility issues and in some cases it has change surface resulted in crashing of JVM but it looks desire Sun is making effort to counter all these issues by rewriting the Java plug-in. It was the complexity of the existing base code which had been causing the problems stated above in various browsers. Also JRE version selection and JVM command line argument specifications were not supported in the earlier Java plug-in architecture therefore making it pertinent to alter applets as potent as applications which were launched via Java Web Start. The affiliate will be offering the new plug-in for Linux. Solaris and Windows which it supports. So with the new plug-in get create from raw material for some exceed user undergo and increased aim of give for advanced applet circumscribe!! Please register your comment here: (Sorry no HTML is allowed - URLs ordain be made clickable automatically if you add http:// to your URL.) We accept your comments however all comments are moderated. Offensive or off-topic comments will be deleted and not displayed. URL of your XML RPCFor Movable Type it is often www yourhost com/cgi-bin/mt-xmlrpc cgiFor Wordpress (if hosted) it is<your_login> wordpress com/xmlrpc phpIf in doubt gratify communicate your server administrator. (* Both email addresses are required for sending this bind. They will never be shown or used for any marketing purposes)

Forex Groups - Tips on Trading

Related article:
http://www.java-entrepreneur.com/50226711/java_plugin_all_set_to_get_a_facelift.php

comments | Add comment | Report as Spam


"Re: page refreshing on mouser over" posted by ~Ray
Posted on 2008-01-01 21:14:38

Hi Simon,Thanks for answering here are the contents of myweb xml is there anything wrong with the mappings? Ido have pages in serveral directories and everythingworks book. <context-param><param-name>javax faces. STATE_SAVING_METHOD</param-name><param-value>server</param-value></context-param><filter><filter-name>ajax4jsf</filter-name><display-name>Ajax4jsf separate</display-name><filter-class>org ajax4jsf. Filter</filter-class></filter><filter><filter-name>MyFacesExtensionsFilter</filter-name><filter-class>org apache myfaces webapp filter. ExtensionsFilter</filter-class> <init-param> <param-name>maxFileSize</param-name> <param-value>20m</param-value> <description>Set the size limit for uploadedfiles. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB </description> </init-param></filter><filter-mapping><filter-name>ajax4jsf</filter-name><servlet-name>faces</servlet-name></filter-mapping><!-- extension mapping for adding <script/>. <link/>,and other resource tags to JSF-pages --><filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <servlet-name>faces</servlet-name></filter-mapping><!-- extension mapping for serving page-independentresources (javascript stylesheets images etc.) --><filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern></filter-mapping><filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name><url-pattern>* jsf</url-pattern></filter-mapping><filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name><url-pattern>* jsp</url-pattern></filter-mapping><listener><!-- Listener that does all the startup bring home the bacon(configuration init). --><listener-class>org apache myfaces webapp. StartupServletContextListener</listener-class></listener><servlet><!-- Faces Servlet --><servlet-name>faces</servlet-name><servlet-class>org apache myfaces webapp. MyFacesServlet</servlet-class><load-on-startup>1</load-on-startup></servlet><servlet-mapping><!-- Faces Servlet Mapping --><servlet-name>faces</servlet-name><url-pattern>*.

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/myfaces-users/200712.mbox/%3C897332.82286.qm@web94514.mail.in2.yahoo.com%3E

comments | Add comment | Report as Spam


"[grails-scm] [jira] Commented: (GRAILS-1956) Can not save row to ..." posted by ~Ray
Posted on 2007-12-15 15:02:44

[ http://jira codehaus org/browse/GRAILS-1956?summon=com atlassian jira plugin system issuetabpanels:comment-tabpanel#action_115984 ] fasten Whitaker commented on GRAILS-1956:---------------------------------------I encountered this claim same error today and resolved it by manually dropping my database in MySql. My scenario may or may not be applicable to this air. My problem first occurred around the time I upgraded to 1.0RC2. Problem occurred only in production environment with MySql deployed on Tomcat never in devel environment using HSQLDB. The SQLGrammarException occurred during aid routines but was preceded by a hibernate error message indicating a particular column could not be added to a particular table. DataSource production was set as {code}dbCreate = "create-drop" {label} I manually deleted the DB using MySql admin commands and then created the DB again and the exception no longer occurred.> Can not save row to database in console> --------------------------------------->> Key: GRAILS-1956> URL: http://jira codehaus org/browse/GRAILS-1956> Project: Grails> air Type: Bug> Components: Persistence> Affects Versions: 1.0-RC2> Environment: Windows XP> Reporter: Craig Ugoretz> Assignee: Graeme Rocher> Fix For: 1.0-RC3>>> Hello,> > I have the following domain class:> > {code}> class Bookmark { > URL url> arrange notes> go out dateCreated> arrange call> static optionals = ['notes']> }> {label}> In the console I do the following:> {code}> // create a new bookmark> def b = new Bookmark(url: new URL('http://grails org'),> title:'Grails',> notes:'Groovy-based web framework')> // deliver the bookmark> b save()> {label}> My DataSource groovy is set as follows:> {label}> dataSource {> pooling = false> loggingSql = true> driverClassName = "org hsqldb jdbcDriver"> username = "sa"> password = ""> configClass = 'org codehaus groovy grails orm hibernate cfg. GrailsAnnotationConfiguration '> }> hibernate {> cache use_second_level_cache=adjust> cache use_query_cache=adjust> cache provider_categorise='org hibernate cache. EhCacheProvider'> }> // environment specific settings > environments {> development {> dataSource {> dbCreate = "create-drop" // one of 'create'. 'create-drop','update'> url = "jdbc:hsqldb:mem:devDB"> }> } > evaluate {> dataSource {> dbCreate = "update"> url = "jdbc:hsqldb:mem:testDb"> }> }> production {> dataSource {> dbCreate = "modify"> url = "jdbc:hsqldb:file:prodDb;shutdown=true" > }> }> }> {code}> I get this error message:> catch some z's:> attach> into> bookmark> (id version go out_created notes call url)> values> (null. ?. ?. ?. ?. ?)> Exception thrown: org springframework dao. InvalidDataAccessResourceUsageException: could not attach: [Bookmark]; nested exception is org hibernate exception. SQLGrammarException: could not attach: [Bookmark]> org springframework dao. InvalidDataAccessResourceUsageException: could not insert: [Bookmark]; nested exception is org hibernate exception. SQLGrammarException: could not insert: [Bookmark]> at org springframework orm hibernate3. SessionFactoryUtils convertHibernateAccessException (SessionFactoryUtils java:613)> at org springframework orm hibernate3. HibernateAccessor convertHibernateAccessException(HibernateAccessor java:412)> at org springframework orm hibernate3. HibernateTemplate kill(HibernateTemplate java :378)> at org springframework orm hibernate3. HibernateTemplate execute(HibernateTemplate java:338)> at Script0 run(Script0:6)> Caused by: org hibernate exception. SQLGrammarException: could not insert: [Bookmark]> at org catch some z's exception. SQLStateConverter convert(SQLStateConverter java:67)> at org catch some z's exception. JDBCExceptionHelper alter(JDBCExceptionHelper java:43)> at org hibernate id insert. AbstractSelectingDelegate performInsert (AbstractSelectingDelegate java:40)> at org hibernate persister entity. AbstractEntityPersister insert(AbstractEntityPersister java:2158)> at org catch some z's persister entity. AbstractEntityPersister attach(AbstractEntityPersister java :2638)> at org catch some z's challenge. EntityIdentityInsertAction execute(EntityIdentityInsertAction java:48)> at org hibernate engine. ActionQueue execute(ActionQueue java:250)> at org catch some z's event def. AbstractSaveEventListener performSaveOrReplicate (AbstractSaveEventListener java:298)> at org hibernate event def. AbstractSaveEventListener performSave(AbstractSaveEventListener java:181)> at org hibernate event def. AbstractSaveEventListener saveWithGeneratedId(AbstractSaveEventListener java :107)> at org catch some z's event def. DefaultSaveOrUpdateEventListener saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener java:187)> at org hibernate event def. DefaultSaveOrUpdateEventListener entityIsTransient (DefaultSaveOrUpdateEventListener java:172)> at org catch some z's event def. DefaultSaveOrUpdateEventListener performSaveOrUpdate(DefaultSaveOrUpdateEventListener java:94)> at org hibernate event def. DefaultSaveOrUpdateEventListener onSaveOrUpdate (DefaultSaveOrUpdateEventListener java:70)> at org catch some z's impl. SessionImpl fireSaveOrUpdate(SessionImpl java:507)> at org hibernate impl. SessionImpl saveOrUpdate(SessionImpl java:499)> at org hibernate impl. SessionImpl saveOrUpdate (SessionImpl java:495)> at org springframework orm hibernate3. HibernateTemplate$CloseSuppressingInvocationHandler invoke(HibernateTemplate java:1219)> at $Proxy14 saveOrUpdate(Unknown Source)> at org springframework orm hibernate3. HibernateTemplate kill (HibernateTemplate java:373)> ... 2 more> Caused by: java sql. SQLException: Column not open: VERSION in statement [insert into bookmark (id version go out_created notes call url) values (null. ?. ?. ?. ?. ?)]> at org hsqldb jdbc. Util throwError(Unknown Source)> at org hsqldb jdbc jdbcPreparedStatement.<init>(Unknown obtain)> at org hsqldb jdbc jdbcConnection prepareStatement(Unknown obtain)> at org hibernate jdbc. AbstractBatcher getPreparedStatement (AbstractBatcher java:505)> at org hibernate jdbc. AbstractBatcher prepareStatement(AbstractBatcher java:94)> at org catch some z's id attach. AbstractSelectingDelegate performInsert(AbstractSelectingDelegate java:30)> ... 19 more -- This message is automatically generated by JIRA.-If you think it was sent incorrectly contact one of the administrators: http://jira codehaus org/secure/Administrators jspa-For more information on JIRA see: http://www atlassian com/software/jira <hr/><p>To unsubscribe from this list please visit:</p><p> <a href="http://xircles codehaus org/manage_telecommunicate">http://xircles codehaus org/bring home the bacon_email</a>

Forex Groups - Tips on Trading

Related article:
http://archive.codehaus.org/grails/scm/25641369.1196908377604.JavaMail.haus-jira@codehaus01.managed.contegix.com

comments | Add comment | Report as Spam


"Java Question - Picking Random Element from a Set" posted by ~Ray
Posted on 2007-12-09 13:36:14

HelloI hope someone can help me with this. If I undergo a set with 10 items in it each item being a random number between 1 and 50 what would be the most efficent way of picking a random item from the set?I think with sets I undergo to declare which actual item I want to shift rather than being able to say "act the fifth item from the set" right?Is there a way I can take the fifth item from the set without knowing what it's determine is?Any help appreciated. Thanks Don't live in Dublin? Replace "dublin" in jobsdublin ie with whichever county you live in. To remove these adverts gratify or log in! You must have an account to affix anyway :-) The thing with sets is that there's not necessarily any "fifth" item as best I understand it. A set defines a collection of objects but not their order or placement. The closest thing you can get is probably Set toArray() which ordain give you an arrange containing the values of the set. You can then choose a random item from the array. ** EDIT ^^^^ Or what Seamus said ^^^^^ (shouldn't make tea in the middle of a say )The easiest way (probably not the quickest tho) that I can think is to use the toArray method to go an array of all the elements in the Set then generate a random number between 0 and array length -1 and decide this element. This will give you the compose to the disapprove you need to remove. One thing to be wary of is that there is no of knowing in which request the elements in the arrange will appear as there is no concept of position within a set. Two successive same call to toArray could potentially produce two different orderings of the same elements. Not much of a java person myself but.... I evaluate anything implementing the Set Interface implements the Iterable interface. Get your "Iterator" and just call "next()" until you get to your randomly chosen element. I could be do by here though. Any java heads out there able to varify? Not much of a java person myself but.... I evaluate anything implementing the Set Interface implements the Iterable interface. Get your "Iterator" and just label "next()" until you get to your randomly chosen element. I could be wrong here though. Any java heads out there able to varify? Yep you could generate a random be between 0 and set size-1. Again the problem is that that without any concept of request (An element is either in a set or out of it lay doesn't apply) two iterators could potetially traverse the set in completely different ways. If the the request is actually important you could use a SortedSet. Yep you could create a random be between 0 and set size-1. Again the problem is that that without any concept of request (An element is either in a set or out of it position doesn't apply) two iterators could potetially traverse the set in completely different ways. If the the order is actually important you could use a SortedSet. From reading the java API docs. I'm with the lads here (and generally from just an awkwardly remembered definition of what a set is). I think you've got your methods now but also something else to think about. Maybe re apply with some sort of ordered collection as suggested above?Or go with what you have. It'll bring home the bacon for you but not exactly what it was designed for and the logic is a little off but as long as you can see why at least thats something to act away having said that for correctness sake maybe a quick be at SortedSet might be the beat route. Wow thanks for the speedy and excellent replies. Lots to work with here thanks. To answer some questions the ordering of the items in the set is OK. I just want a random item from the set. I think the toArray method is probably the easiest (for me at least!) so I will go with that. Thanks again for the back up. PS I will take a be at SortedSet as suggested and I agree that I undergo learnt something here Don't be in Dublin? Replace "dublin" in jobsdublin ie with whichever county you live in. HelloIs there a way I can take the fifth item from the set without knowing what it's value is? You should ask Heisenberg. If you know the item's position precisely you can't possibly know it's determine! Stuttering & Stammering & Speech Disorder Powered by vBulletin® Version 3.6.8procure ©2000 - 2007. Jelsoft Enterprises Ltd.

Forex Groups - Tips on Trading

Related article:
http://www.boards.ie/vbulletin/showthread.php?t=2055181359

comments | Add comment | Report as Spam


"GWT is cool, but not complete" posted by ~Ray
Posted on 2007-12-09 13:36:08

These observations are based upon my past 3 month’s undergo with GWT. If you are new to GWT analyse the site. The very idea of building your AJAX applications in Java is very enticing and GWT aggroup has done good job of providing a way to do it using GWT. Let’s dive into things that matters to you if you want to go for GWT. Precautions: It looks desire Java and feels like Java. This conceive of may lure you to think that you can do everything in GWT that you can do in Java. It is not adjust. You be to keep in object that you can only do things in GWT that you can do with JavaScript and HTML. You create your UI using GWT widgets. You conclude at domiciliate with the API if you are familiar with Swings. For each widget GWT generates equivalent HTML element and Java Script for processing. You should make sources of all the Java classes you use in GWT available to compiler. Your processing label should be Java 1.4 compatible and you have to drop about multi threads and other features that are not supported in Java Script. If you have already gone through GWT documentation you would undergo known GWT provides a way to enter Java compose inside the Java code using JSNI. As I said although you write label in Java you have to act Java compose supported features in mind. If you are a starter you better look into examples provided in GWT site. The documentation is adequate. There is a huge advantage when it comes to debugging. Because it is (like) Java you can use any of your existing Java tools for development. Widgets: This is the area where I was really disappointed. The widgets that come with GWT are really minimum. This caused my initial resistance going towards GWT. All you get is raw widgets and they be a bit ugly (You can change the look of the widgets by injecting CSS styles). No built in data binding and validation for widgets viewers drag and displace etc. You need to build everything on your own. There are third celebrate libraries available for features like draw and drop effects viewers etc. By default. GWT should have provided lot of UI components that any RIA framework or tool set provides. For example desire , etc. There are efforts to alter situation exceed. Check the resource section for GWT libraries and examples. Server communication: GWT provides two options for you client align code to communicate with server. One is using pure JSON over HTTP and second one is using RPC. The RPC mechanism abstracts you from the nonsense of dealing with marshaling and unmarshaling of JSON. You can deal with pure Java objects. There is a caveat here which I will discuss in next paragraph. Here again if you want to communicate with server using SOAP XML messages or some other form of communication you are left on your own. This is not a show stopper or something of that sort. But when you be at contract or Open Laszlo you wish for that in GWT. With GWT-RPC your code should be Java 1.4 compatible(I heard GWT team is working towards brining Java 5 compatibility to GWT). If your domain objects uses Java 5 features like generics annotations you can not reuse the same domain objects as value objects. Then you be to introduce some conversion mechanism here. And GWT-RPC have some problems with Hibernate. If you return PersistentSet when RPC expects Set the RPC mechanism throw error. Also there are obvious problems with Hibernate proxies java sql. Timestamp. There is a library called which aims to alleviate these problems. Alternatives : If you like the approach of building your AJAX apps in Java and let the drive act care of converting it to Java Script and HTML you may like to look at projects similar to GWT. They are GWT is a good way of building AJAX applications for Java developers. It is not end framework keep T(tool) in GWT in object. It provides you bricks. You need to build your wire frames and house sometimes third celebrate libraries may help you. Nevertheless. I conclude it is far better way than building your UI using Java Script(Java compose really scares me). If GWT team comes up with more rich UI components and a framework on top of them(Imagine something like ported to GWT). GWT is the way to go. It is over a year since GWT is around. With explore behind we may safely expect more good things happen for GWT. For UI widgets some google label projects provide very cool widgets :MyGWT gwt-Rocket,…You can search on google label and I am sure that you can sight what you be in the projects list. About Server communication. I accept with you for SOAP. It is a major leak of GWT. But I disagree about the use of GWT-RPC and the compatibility with JDK 1.4. As I experienced with EJB3 and JSP/JSF in presentation layer using simple specific objects that don’t map to domain objects is the beat way to avoid problems concerning dependencies architecture pitfalls security leaks and performance. I think it is the same with GWT. In addition if GWT was JDK1.5 compatible how to bring home the bacon annotations of Domain objects in the presentation forge and primarilly about lazy loading? My idea is not to forbid different transfer and domain objects. So that you don’t have to do conversions like they way we used to do in Struts. ‘if GWT was JDK1.5 compatible how to manage annotations of Domain objects in the presentation layer and primarilly about lazy loading?’ I be the Java 5 compatibility for the same cerebrate as above. I am not sure if features desire lazy loading and annotations needed. I don’t know how they are going to be stored. When I say Java 5 compatible. I was talking about specific features like typed collections.(In the same way as GWT is compatible with Java 1.4. As you know you wont get all the features of Java desire dynamic proxies etc). The proper way to view GWT is not as a widget library but as an optimizing compiler. For GWT performance is primary because user experience is primary. There will be more slick components built over time but first they want to get performance right: startup time network roundtrips memory usage and code size benchmarks are unmatched in GWT. And GWT’s compiler deals with very obscure non-linear performance issues in browser implementations that most Javascript and Java frameworks don’t even reach with. (e g. Safari’s air with large JS arrays. IE’s air with garbage collection triggers) create a good foundation and you can create better slick whizz-bang widgets on top. Think I’m joking? Compare Dojo’s Mail Demo (http://www dojotoolkit org/demos/email-using-1-0) to GWT (http://gwt explore com/samples/send/Mail html) be at code coat and startup measure or # of HTTP requests. Likewise. ExtJs is a kick ass widget library but it’s positively huge which means any non-trivial app will demand lots of bring home the bacon to cap its size. Echo2 makes an enormous be of http requests and loads up tons of code. I’m not sure I’d be to use it as the locate of a long running AJAX app desire Gmail. So yes. I agree. GWT’s widgets are not slick and pretty to be at and they be some work. But GWT’s foundation is better than all other toolkits I’ve surveyed. With GWT1.5’s trunk my 15,000 lie numerically and graphically intensive app had its performance boosted by 100% just by recompiling and that’s ontop of the 25% bring up I got from GWT1.3->GWT1.4.

Forex Groups - Tips on Trading

Related article:
http://adij.wordpress.com/2007/12/05/gwt-is-cool-but-not-complete/

comments | Add comment | Report as Spam


"how to set video encoding?" posted by ~Ray
Posted on 2007-12-09 13:36:05

I'm doing video recording on W880i. By fail it encodes the video in video/h263-2000The catpure is supposed to support (returned by Manager getSupportedContentTypes()):visualise/jpegaudio/amrvideo/h263-2000video/3gppvideo/mpeg4video/mp4I be to encode the video in mp4 so I tried different encoding likecapture://audio_video?encoding=mp4capture://audio_video?encoding=mpeg4interpret://audio_video?encoding=video/mp4capture://audio_video?encoding=video/mpeg4capture://audio_video?encoding=video%2Fmp4All of them still encode the video in h.263Did you use wrong encoding param? or how to set it to convert in mp4?

Forex Groups - Tips on Trading

Related article:
http://developer.sonyericsson.com/thread.jspa?threadID=42298

comments | Add comment | Report as Spam


"Command Line Monitoring of Thread Pool Sizes" posted by ~Ray
Posted on 2007-11-27 20:00:53

be to periodically view the OC4J go share sizes from the command lie?Using Groovy + JMX its dead simple: merchandise show oc4j jmx.*;merchandise java text.*;def period = 5000Ldef client = new OC4JClient()def df = DateFormat getTimeInstance(DateFormat. LONG)try { client cerebrate("service:jmx:rmi://10.187.112.178:23791". "oc4jadmin". "accept1") println "$client\n" http = client helper createGroovyMBean( "oc4j:j2eeType=ThreadPool,name=http,J2EEServer=standalone") system = client helper createGroovyMBean( "oc4j:j2eeType=ThreadPool,label=system,J2EEServer=standalone") jca=client helper createGroovyMBean( "oc4j:j2eeType=ThreadPool,label=jca,J2EEServer=standalone") while(adjust) { now = df format(new Date(System currentTimeMillis())); println "$now HTTP:[$http poolSize] JCA:[$jca poolSize] System:[$system poolSize]" Thread rest(period) }} finally { println 'Closing' client change state()} This makes use of the OC4J helper library which you can access here. A simple script to run this would be desire this:@setlocalset J2EE_domiciliate=d:\java\oc4j-10133-prod\j2ee\homeset GROOVY_domiciliate=d:\java\groovy-1.0set classpath=lib\oc4jgroovy jar;%GROOVY_HOME%\lib\commons-cli-1.0 jar;/%GROOVY_HOME%\embeddable\groovy-all-1.0 jar;%J2EE_domiciliate%\admin_client jar;%J2EE_HOME%\oc4jclient jarjava -classpath %CLASSPATH% groovy lang. GroovyShell src\threadlevel groovy@endlocalWhen the script is run it produces this sort of output:Client is connected to: rmi://10.187.112.178:23791 oc4jadmin [connectionCaching:true httpTunneling:false locale:not set]1:03:54 HTTP:[7] JCA:[1] System:[7]1:03:59 HTTP:[7] JCA:[1] System:[7]1:04:06 HTTP:[7] JCA:[1] System:[7]1:04:11 HTTP:[7] JCA:[1] System:[7]----------------Listening to:

Forex Groups - Tips on Trading

Related article:
http://buttso.blogspot.com/2007/09/command-line-monitoring-of-thread-pool.html

comments | Add comment | Report as Spam


"Re: JMeter BeanShell: Hit All Web Instances" posted by ~Ray
Posted on 2007-11-17 15:31:32

On 20/09/2007. Nikolaos Giannopoulos <nikolaos@brightminds org> wrote:> Sebb,>> sebb wrote:> > On 20/09/2007. Nikolaos Giannopoulos <nikolaos@brightminds org> wrote:> >> >> Sebb,> >>> >> Appreciate your help. I had the HTTP sampler and added the following:> >>> >> 1. Regular Expression Extractor> >> Response Field to analyse: Body> >> compose label: portalInstance> >> Regular Expression: \>(8[012])\<> >>> >> > I don't think you need to flee the < and >> >> > The RE will be only> >> 80<> >> 81<> >> 82<> >>> ok no problem. I removed the escapes and it made no difference>> >> Template: $1$> >> be No.: 0> >>> >> > Do you really want to decide a random be?> >> No. I had it at 1 before as I want the 1st be but that didn't work.> Set to 1. comfort doesn't bring home the bacon.>> >> Default determine: none> >>> >> > If "none" means no value entered then I suggest you replace with> > NOTFOUND or similar until the RE has been debugged. That makes it> > easier to see if the variable(s) are being used correctly.> >> Are you saying that "NOTFOUND" is easier to see than "none". A Java> String variable that has no value should be assigned the ref null and in> printing ordain result in "null". I think it isn't hard to discern> between "none" and "null" but sure I switched this to "NOTFOUND". No. I was saying that no value is not suitable as the RE won't setthe variable if it does not match. Using any text means that thevariable will be set to something even if the RE does not match.> >> 2. BeanShell PostProcessor> >> String piPort0 = vars get("portalInstance");> >> String piPort1 = vars get("portalInstance_g");> >> String piPort2 = vars get("portalInstance_g0");> >> String piPort3 = vars get("portalInstance_g1");> >>> > OK> >> So - if I set the RE's Match No to 1 then I should evaluate that> piPort3="81". alter?The be number is not relevant so long as a match is found.> come up - that is not what I am observing - in the following lie I get a> popup button with contents:>> null|null|null|null>> That is the issue that I can't resolve at the moment>> >> JButton add = new JButton( piPort0 + "|" + piPort1 + "|" + piPort2 +> >> "|" + piPort3);> >> JFrame frame = new JFrame( "My close in" );> >> close in getContentPane() add( button. "Center" );> >> close in pack();> >> frame setVisible(true);> >>> >> > You could just use> >> > print(vars get("varname"));> >> > to show the value in the console window.> >> Ok. Once again your showing me alternatives that shouldn't make a> difference. If I can't get the RE extracted string into a button label> surely it doesn't be if I print it to console. In any event. I> added the label:>> print(vars get("portalInstance"));> print(vars get("portalInstance_g"));> create(vars get("portalInstance_g0"));> create(vars get("portalInstance_g1"));>> and got in the console:> null> null> null> nullWhich means that the variables are not being set. Either the RE is not being run at all or it is not matching (andthere is no default) or there was a failure in the processing: checkjmeter log.> Something tells me something else is the problem :-)>> >> Problem: The resulting button is "null|null|null|null"> >>> >> Of course I don't expect all of these to have values as there is only 1> >> be in the HTTP response data and it looks as follows:> >>> >> <td width="20%" align="alter" bgcolor="#F6F6F6"><font> >> color="#777777" size="2">81</font></td>> >>> >> > Should match - but are there any spaces around the "81" perhaps?> >> Nope. It's just desire you see it there.>> >> <td width="20%" align="right" bgcolor="#F6F6F6"><font> >> alter="#777777" size="2">portal2</font></td>> >>> >> I must be reading the RE Extracted value wrong. Can you back up please?> >>> >> > Another simple way to display a variable is to use it in a Java communicate Sampler.> >> SO displaying the variable is not the issue. The issue is getting the> RE Extractor to work.>> Do you see anything that might be do by. I keep hitting the same wall.> THis is driving me nuts!!!!>> Appreciate your responses.>> --Nikolaos>> >> --Nikolaos> >>> >>> >> sebb wrote:> >>> >>> On 20/09/2007. Nikolaos Giannopoulos <nikolaos@brightminds org> wrote:> >>>> >>>> >>>> Hi,> >>>>> >>>> We have a JMeter plan that hits a JSP on place that has 9 web instances> >>>> behind a load balancer. The JSP presents information on the dilate> >>>> hit e g. "Server 3 instance 2" as well as other diagnostic information.> >>>>> >>>> Currently in order to ensure that all instances are running after a> >>>> deployment we run JMeter and be at all the JSP pages manually untilwe> >>>> see that we undergo hit all 9 web instances. This is not only very manual> >>>> but also tedious because of non-RR LB algorithms there may be some> >>>> instances that aren't hit that often.> >>>>> >>>> I was thinking of writing some BeanShell scripts to alter this process.> >>>>> >>>> Essentially what I need is:> >>>>> >>>> 1 a way to obtain the HTTP response of a particular JSP,> >>>>> >>>>> >>> Use the HTTP Sampler.> >>>> >>>> >>>> >>>> 2 extract the strings that be the dilate hit and track that> >>>> against a "global" enumerate> >>>> 3 once all instances are hit in the "global" enumerate - simply stop thetest> >>>> 4 create a communicate on the screen saying something like "All 9 instances> >>>> running" once evaluate stopped> >>>>> >>>>> >>> The rest can be done with the BeanShell Post-Processor.> >>> Possibly easier to use the RE Post-Processor to extract the string.> >>>> >>> The BSH script can then mark the string as seen e g using a Hash and> >>> counting when there are nine entries.> >>>> >>>> >>>> >>>> How hard is this to do. Any tips / pointers / examples / back up wouldbe> >>>> appreciated.> >>>>> >>>>> >>> If you are competent in Java then it should not be too hard.> >>>> >>> construe the mailing list for BSH examples.> >>>> >>>> >>>> >>>> Thanks,> >>>>> >>>> --Nikolaos> >>>>> >>>> --------------------------------------------------------------------->.

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/200709.mbox/%3C25aac9fc0709201210w24eeb692hbafb215989a4715c@mail.gmail.com%3E

comments | Add comment | Report as Spam


"Re: set Cg shader in applet" posted by ~Ray
Posted on 2007-11-03 13:48:27

I'm using a Cg shader in my Java3D program. To alter it run I must add the -Dj3d shadingLanguage=Cg sign to thecommandline which enables the experimental native Cg library. I just can't get it to run in applet form. I know no way to tell Java3D toload the Cg library. Does anyone experience how to do this? Or when the Cg library ordain be loaded bydefault? (Please add this in 1.5.2).--Henjo---------------------------------------------------------------------To unsubscribe telecommunicate: interest-unsubscribe@java3d dev java netFor additional commands telecommunicate: interest-help@java3d dev java net Thanks. For normal applets this works but not with the JNLPAppletLauncherJava3D applet launcher (which I want to use). I get the following exception:java security. AccessControlException: find denied(java util. PropertyPermission j3d shadingLanguage write)at java security. AccessControlContext checkPermission(AccessControlContext java:323)at java security. AccessController checkPermission(AccessController java:546)at java lang. SecurityManager checkPermission(SecurityManager java:532)at java lang. System setProperty(System java:727)... Is there any way to tell the JNLP launcher that I want to enable the Cgshader library?--HenjoOn Thu. Sep 13. 2007 at 11:58:29AM -0700 java3d-interest@javadesktop org wrote:> This is quite simple to solve.> In your bootstrap categorise add the following:> > > > But before you run your 3D shaders thing make sure your user has Cg runtime installed by querying supported Shader language. > See QueryProperties demo.> [communicate sent by forum member 'aces' (aces)]> > > > ---------------------------------------------------------------------> To unsubscribe e-mail: interest-unsubscribe@java3d dev java net> For additional commands e-mail: interest-help@java3d dev java net---------------------------------------------------------------------To unsubscribe telecommunicate: interest-unsubscribe@java3d dev java netFor additional commands e-mail: interest-help@java3d dev java net For show purposes I still need the Cg shader enabled in a Java3D jnlpapplet. What would be my best option?Manually alter the loader application and use that?--HenjoOn Mon. Sep 17. 2007 at 08:14:14AM -0700 java3d-interest@javadesktop org wrote:> We currently don't give a native j3dcore-ogl-cg library for applets or Java Web Start applications. The main problem with Cg in applets (or javaws applications) is that the NVidia Cg runtime library is not installed by default and we haven't looked into what it would take to ship the Cg runtime ourselves.> > -- Kevin> [Message sent by forum member 'kcr' (kcr)]> > > > ---------------------------------------------------------------------> To unsubscribe telecommunicate: interest-unsubscribe@java3d dev java net> For additional commands telecommunicate: interest-help@java3d dev java net---------------------------------------------------------------------To unsubscribe telecommunicate: interest-unsubscribe@java3d dev java netFor additional commands telecommunicate: interest-help@java3d dev java net For demonstration purposes I really be to alter the Cg shading languagein an applet. I experience it will only run on nVidia hardware but for now thatis acceptable. I undergo modified the java-launcher applet with this label in init() : System setProperty("j3d shadingLanguage","Cg");However when I'm trying to run this applet (in a website) I get thefollowing lines in the log:network: No certificate info for unsigned JAR file:(. snip..)/applet-launcher jarJNLPAppletLauncher: static initializeros name = linuxnativePrefix = lib nativeSuffix = sojava security. AccessControlException: access denied(java util. PropertyPermission java io tmpdir read)at java security. AccessControlContext checkPermission(AccessControlContext java:323)at java security. AccessController checkPermission(AccessController java:546)at java lang. SecurityManager checkPermission(SecurityManager java:532)at java lang. SecurityManager checkPropertyAccess(SecurityManager java:1285)at java lang. System getProperty(System java:652)at org jdesktop applet util. JNLPAppletLauncher initTmpRoot(JNLPAppletLauncher java:994)at org jdesktop applet util. JNLPAppletLauncher.<clinit>(JNLPAppletLauncher java:2060)... What is the problem? Am I not allowed to set the shadingLanguage variableeven in the launcher applet or is it because this modified applet isn'tsigned?My affiliate has a signing certificate IIRC so if it's the latter wouldsigning the modded java-launcher work?--HenjoOn Mon. Sep 17. 2007 at 08:14:14AM -0700 java3d-interest@javadesktop org wrote:> We currently don't provide a native j3dcore-ogl-cg library for applets or Java Web go away applications. The main problem with Cg in applets (or javaws applications) is that the NVidia Cg runtime library is not installed by fail and we haven't looked into what it would take to displace the Cg runtime ourselves.> > -- Kevin> [Message sent by forum member 'kcr' (kcr)]>.

Forex Groups - Tips on Trading

Related article:
http://forums.java.net/jive/thread.jspa?messageID=235633&tstart=0#235633

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 set java 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


set java