httpurlconnection

search for more blogs here

 

"Re: [m2] help getting jboss to start..." posted by ~Ray
Posted on 2008-11-13 12:21:39

Ok. I added a <type>remote</type> tag and I started trying to deploy but itkeeps trying to deploy my ejb jar instead of my ear. <deployables> <deployable> <groupId>com baselogic yoursos</groupId> <artifactId>ear</artifactId> <type>ear</type> <location>ear/target/ear-1.0-SNAPSHOT ear</location> <pingURL>http://localhost:8080/yoursos/index html</pingURL> </deployable> </deployables>[INFO] [cargo:deploy][INFO]------------------------------------------------------------------------[ERROR] FATAL ERROR[INFO]------------------------------------------------------------------------[INFO] Failed to deploy to [http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar]Server returned HTTP response code: 500 for URL:http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar[INFO]------------------------------------------------------------------------[INFO] Traceorg codehaus cargo container. ContainerException: Failed to deploy to [http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar] atorg codehaus cargo container jboss internal. JdkHttpURLConnection connect(JdkHttpURLConnection java:58) at org codehaus cargo container jboss. JBossRemoteDeployer invokeURL(JBossRemoteDeployer java:179) at org codehaus cargo container jboss. JBossRemoteDeployer deploy(JBossRemoteDeployer java:136) atorg codehaus cargo maven2. DeployerDeployMojo performDeployerActionOnSingleDeployable(DeployerDeployMojo java:79) atorg codehaus cargo maven2. AbstractDeployerMojo performDeployerActionOnAllDeployables(AbstractDeployerMojo java:118) at org codehaus cargo maven2. AbstractDeployerMojo doExecute(AbstractDeployerMojo java:47) at org codehaus cargo maven2. AbstractCargoMojo execute(AbstractCargoMojo java:243) at org apache maven plugin. DefaultPluginManager executeMojo(DefaultPluginManager java:443) at org apache maven lifecycle. DefaultLifecycleExecutor executeGoals(DefaultLifecycleExecutor java:539) atorg apache maven lifecycle. DefaultLifecycleExecutor executeStandaloneGoal(DefaultLifecycleExecutor java:493) at org apache maven lifecycle. DefaultLifecycleExecutor executeGoal(DefaultLifecycleExecutor java:463) atorg apache maven lifecycle. DefaultLifecycleExecutor executeGoalAndHandleFailures(DefaultLifecycleExecutor java:311) atorg apache maven lifecycle. DefaultLifecycleExecutor executeTaskSegments(DefaultLifecycleExecutor java:278) at org apache maven lifecycle. DefaultLifecycleExecutor execute(DefaultLifecycleExecutor java:143) at org apache maven. DefaultMaven doExecute(DefaultMaven java:334) at org apache maven. DefaultMaven execute(DefaultMaven java:125) at org apache maven cli. MavenCli main(MavenCli java:280) at sun reflect. NativeMethodAccessorImpl invoke0(Native Method) at sun reflect. NativeMethodAccessorImpl invoke(NativeMethodAccessorImpl java:39) at sun reflect. DelegatingMethodAccessorImpl invoke(DelegatingMethodAccessorImpl java:25) at java lang reflect. Method invoke(Method java:585) at org codehaus classworlds. Launcher launchEnhanced(Launcher java:315) at org codehaus classworlds. Launcher launch(Launcher java:255) at org codehaus classworlds. Launcher mainWithExitCode(Launcher java:430) at org codehaus classworlds. Launcher main(Launcher java:375)Caused by: java io. IOException: Server returned HTTP response code: 500 forURL:http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar at sun net www protocol http. HttpURLConnection getInputStream(HttpURLConnection java:1153) atorg codehaus cargo container jboss internal. JdkHttpURLConnection connect(JdkHttpURLConnection java:51) ... 24 morejava io. IOException: Server returned HTTP response code: 500 for URL:http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C%3A%5Ctemp%5Cbaselogic%5Cyoursos%5Cyoursos-ejb%5Ctarget%5Cyoursos-ejb-1.0-SNAPSHOT jar at sun net www protocol http. HttpURLConnection getInputStream(HttpURLConnection java:1153) atorg codehaus cargo container jboss internal. JdkHttpURLConnection connect(JdkHttpURLConnection java:51) at org codehaus cargo container jboss. JBossRemoteDeployer invokeURL(JBossRemoteDeployer java:179) at org codehaus cargo container jboss. JBossRemoteDeployer deploy(JBossRemoteDeployer java:136) atorg codehaus cargo maven2. DeployerDeployMojo performDeployerActionOnSingleDeployable(DeployerDeployMojo java:79) atorg codehaus cargo maven2. AbstractDeployerMojo performDeployerActionOnAllDeployables(AbstractDeployerMojo java:118) at org codehaus cargo maven2. AbstractDeployerMojo doExecute(AbstractDeployerMojo java:47) at org codehaus cargo maven2. AbstractCargoMojo execute(AbstractCargoMojo java:243) at org apache maven plugin. DefaultPluginManager executeMojo(DefaultPluginManager java:443) at org apache maven lifecycle. DefaultLifecycleExecutor executeGoals(DefaultLifecycleExecutor java:539) atorg apache maven lifecycle. DefaultLifecycleExecutor executeStandaloneGoal(DefaultLifecycleExecutor java:493) at org apache maven lifecycle. DefaultLifecycleExecutor executeGoal(DefaultLifecycleExecutor java:463) atorg apache maven lifecycle. DefaultLifecycleExecutor executeGoalAndHandleFailures(DefaultLifecycleExecutor java:311) atorg apache maven lifecycle. DefaultLifecycleExecutor executeTaskSegments(DefaultLifecycleExecutor java:278) at org apache maven lifecycle. DefaultLifecycleExecutor execute(DefaultLifecycleExecutor java:143) at org apache maven. DefaultMaven doExecute(DefaultMaven java:334) at org apache maven. DefaultMaven execute(DefaultMaven java:125) at org apache maven cli. MavenCli main(MavenCli java:280) at sun reflect. NativeMethodAccessorImpl invoke0(Native Method) at sun reflect. NativeMethodAccessorImpl invoke(NativeMethodAccessorImpl java:39) at sun reflect. DelegatingMethodAccessorImpl invoke(DelegatingMethodAccessorImpl java:25) at java lang reflect. Method invoke(Method java:585) at org codehaus classworlds. Launcher launchEnhanced(Launcher java:315) at org codehaus classworlds. Launcher launch(Launcher java:255) at org codehaus classworlds. Launcher mainWithExitCode(Launcher java:430) at org codehaus classworlds. Launcher main(Launcher java:375)On 10/31/07. Mick Knutson <mickknutson@gmail com> wrote:>> OK here is my plugin now:>> <plugin>> <groupId>org codehaus cargo</groupId>> <artifactId>cargo-maven2-plugin</artifactId>> <version> 0.3-SNAPSHOT</version>>> <configuration>>> <!-- Container configuration -->> <container>> <containerId>jboss4x</containerId>> <home>C:/jboss-4.2.1. GA</home>> </container>>> <deployables>> <deployable>>> <!--<location>${yoursosRoot}ear/target/ear-1.0-SNAPSHOT ear</location>-->> <location>$\{project build directory\}/$\{> project build finalName\ }.$\{project packaging\}</location>> <pingURL>> http://localhost:8080/yoursos/index html</pingURL>> </deployable>> </deployables>> </configuration>> </plugin>>>>> THen when I run mvn cargo:deploy -e>> I get this but nothing actually deployed:>> [INFO] Searching repository for plugin with prefix: 'cargo'.> [INFO]> ----------------------------------------------------------------------------> [INFO] Building yoursos> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [4.2.1]> [INFO]> ---------------------------------------------------------------------------->> [INFO] Building Utilities Common (Module Group)> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [ 4.2.1]> [INFO]> ----------------------------------------------------------------------------> [INFO] Building Common-Exception> [INFO] task-segment: [cargo:deploy]> [INFO]> ---------------------------------------------------------------------------->> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [4.2.1]> [INFO]> ----------------------------------------------------------------------------> [INFO] Building Common-Jar> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [4.2.1]> [INFO]> ---------------------------------------------------------------------------->> [INFO] Building YourSOS EJB3> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [ 4.2.1]> [INFO] [stalledLocalDeployer] Deploying> [C:\temp\baselogic\yoursos\yoursos-ejb\target\yoursos-ejb-1.0-SNAPSHOT jar]> to [C:\temp\baselogic\yoursos\yoursos-e> jb\target\jboss4x/deploy]...> [INFO]> ---------------------------------------------------------------------------->> [INFO] Building YourSOS - war> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [ 4.2.1]> [INFO] [stalledLocalDeployer] Deploying> [C:\temp\baselogic\yoursos\yoursos-war\target\yoursos-war war] to> [C:\temp\baselogic\yoursos\yoursos-war\target\jbo> ss4x/deploy]...> [INFO]> ---------------------------------------------------------------------------->> [INFO] Building YourSOS EAR> [INFO] task-segment: [cargo:deploy]> [INFO]> ----------------------------------------------------------------------------> [INFO] [cargo:deploy]> [INFO] [talledLocalContainer] Parsed JBoss version = [ 4.2.1]> [INFO] [stalledLocalDeployer] Deploying> [C:\temp\baselogic\yoursos\ear\target\ear-1.0-SNAPSHOT ear] to> [C:\temp\baselogic\yoursos\ear\target\jboss4x/deploy> ]...> [INFO]> [INFO]>>>> On 10/29/07. Daniele De Francesco <ddefrancesco@gmail com> wrote:> >> > Hi,> >> > all seems ok...> >> > 1) please give the console error...> >> > 2) did u try to uncomment> >> > <location>$\{project build directory\> > }/$\{project build finalName\}.$\{project packaging\}</location>> >> > specifying the parameters needed?> >> > Regards> > Daniele> >> > On 10/25/07. Mick Knutson <mickknutson@gmail com> wrote:> > >> > > Well this seems harder than I thought.> > > I have a dev machine with JBoss 4.2.1. GA installed and configured> > already> > > at> > > c:/jboss-4.2.1. GA/ and I use this plugin:> > >> > > <plugin>> > > <groupId>org codehaus cargo</groupId>> > > <artifactId>cargo-maven2-plugin</artifactId>> > > <version>0.3-SNAPSHOT</version>> > >> > > <configuration>> > >> > > <!-- Container configuration -->> > > <container>> > > <containerId>jboss4x</containerId>> > > <home>C:/jboss-4.2.1. GA</home>> > > <output>${project build directory> > > }/cargo/output log</output>> > > <append>false</append>> > > <log>${project build directory> > > }/cargo/server log</log>> > > </container>> > >> > > <deployables>> > > <deployable>> > > <groupId>com baselogic yoursos> > </groupId>> > > <artifactId>ear</artifactId>> > > <!--<location>$\{> > project build directory\> > > }/$\{project build finalName\}.$\{project packaging\}</location>-->> > > <pingURL>> > > http://localhost:8080/yoursos/index html</pingURL>> > > </deployable>> > > </deployables>> > >> > > </configuration>> > >> > >> > >> > > But cargo can't start up the container is the error I get and it> > keeps> > > trying to create "C:\temp\baselogic\yoursos\target\jboss4x\**" in what> >> > > looks> > > like the exact DIR structure that my installed server has.> > >> > > Can you shed some light as to how to hook into an existing local> > > installation of JBoss 4x just to deploy my ear? I think I have gone> > > through> > > all the docs on the cargo site with no luck so far.> > >> > >> > > On 10/25/07. Daniele De Francesco <ddefrancesco@gmail com> wrote:> > > >> > > > Hi,> > > >> > > > I'm sorry for replying so shortly but you could see i e.> > > >> > > >> > > >> > >> > http://www nabble com/JBoss-Remote-Deployment-workaround-for-HTTP-500-error-t3607694 html> > > >> > > > just for the pom....> > > >> > > > Besides of course you could refer to> > > >> > > > http://cargo codehaus org/JBoss+4 x> > > >> > > >> > > > Just google a little... ;-)> > > >> > > > Regards> > > >> > > > Daniele> > > >> > > > On 10/25/07. Catalin Croitoru <catalin croitoru@gmail com> wrote:> > > > >> > > > > Hi,> > > > >> > > > > do you have a pom example for starting an existing jboss 4.2.0with> > > > cargo?> > > > >> > > > > Thanks,> > > > >> > > > > Catalin> > > > >> > > > > On 10/25/07. Daniele De Francesco < ddefrancesco@gmail com>wrote:> > > > > >> > > > > > Hi,> > > > > > try using maven cargo plugin instead of the> > maven-jboss-plugin....> > > > > >> > > > > > * http://cargo* codehaus org/*Maven*2+*plugin*> > > > > >> > > > > > and for a necessary download and overview about what cargo is...> > > > > surprise> > > > > > surprise :)> > > > > >> > > > > > *http://cargo* codehaus org> > > > > >> > > > > > let me know...> > > > > >> > > > > > Daniele> > > > > >> > > > > > On 10/23/07. Mick Knutson <mickknutson@gmail com> wrote:> > > > > > >> > > > > > > btw if I start jboss manually then run the build the> > > application> > > > > gets> > > > > > > deployed fine.> > > > > > >> > > > > > > On 10/23/07. Mick Knutson <mickknutson@gmail com >wrote:> > > > > > > >> > > > > > > > I have the following declaration for jboss:> > > > > > > >> > > > > > > > <plugin>> > > > > > > > <groupId>org codehaus mojo</groupId>> > > > > > > > <artifactId>jboss-maven-plugin</artifactId>> > > > > > > > <configuration>> > > > > > > > <jbossHome>${env. JBOSS_HOME}</jbossHome>> > > > > > > > <port>8080</port>> > > > > > > > </configuration>> > > > > > > > <executions>> > > > > > > > <execution>> > > > > > > > <id>start-server</id>> > > > > > > > <phase>compile</phase>> > > > > > > > <goals>> > > > > > > > <goal>start</goal>> > > > > > > > </goals>> > > > > > > > </execution>> > > > > > > > <execution>> > > > > > > > <id>deploy-to-server</id>> > > > > > > > <phase>package</phase>> > > > > > > > <goals>> > > > > > > > <goal>deploy</goal>> > > > > > > > </goals>> > > > > > > > </execution>> > > > > > > > </executions>> > > > > > > > </plugin>> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > I seem to get a note saying it is starting:> > > > > > > >> > > > > > > > [INFO] [jboss:start {execution: start-server}]> > > > > > > > [INFO] Starting JBoss...> > > > > > > > [INFO] [ear:ear]> > > > > > > >> > > > > > > >> > > > > > > > but when I go to deploy after packaging. I still geta> > > connection> > > > > > > refused:> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > [INFO] Building jar:> > C:\opt\baselogic\yoursos\ear\target\ear-> > > > > > > > 1.0-SNAPSHOT ear> > > > > > > > [INFO] [jboss:deploy {execution: deploy-to-server}]> > > > > > > > [INFO] Deploying C:\opt\baselogic\yoursos\ear\target/ear-> > > > > > > 1.0-SNAPSHOT earto JBoss.> > > > > > > > [INFO] No server specified for authentication - using> > defaults> > > > > > > > [INFO]> > > > > > > >> > > > > >> > > >> > ------------------------------------------------------------------------> > > > > > > > [ERROR] BUILD ERROR> > > > > > > > [INFO]> > > > > > > >> > > > > >> > > >> > ------------------------------------------------------------------------> > > > > > > > [INFO] Mojo error occurred: Server returned HTTP response> > code:> > > > 500> > > > > > for> > > > > > > > URL:> > > > > > >> > > > > >> > > > >> > > >> > >> > http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C:\opt\baselogic\yoursos\ear\target/ear-1.0-SNAPSHOT ear> > > > > > > >> > > > > > > > [INFO]> > > > > > > >> > > > > >> > > >> > ------------------------------------------------------------------------> > > > > > > > [INFO] Trace> > > > > > > > org apache maven lifecycle. LifecycleExecutionException:Mojo> > > error> > > > > > > > occurred: Server returned HTTP response code: 500for URL:> > > > > > > > http://localhost:8080/jm> > > > > > > > x-console/HtmlAdaptor?action=invokeOpByName&name=> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > jboss system:service%3DMainDeployer&methodName=deploy&argType=java net. URL&arg0=file:C:\opt\baselogic> > > > > > > > \yoursos\ear\target/ear-1.0-SNAPSHOT ear> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > is there something I am missing?> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > --> > > > > > > >> > > > > > > > Thanks,> > > > > > > > Mick Knutson> > > > > > > >> > > > > > > > http://www baselogic com> > > > > > > > http://www blincmagazine com> > > > > > > > http://www djmick com> > > > > > > > http://www myspace com/mickknutson> > > > > > > > http://www myspace com/djmick_dot_com> > > > > > > > http://www myspace com/sexybeotches> > > > > > > > http://www thumpradio com> > > > > > > > ---> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > > --> > > > > > >> > > > > > > Thanks,> > > > > > > Mick Knutson> > > > > > >> > > > > > > http://www baselogic com> > > > > > > http://www blincmagazine com> > > > > > > http://www djmick com> > > > > > > http://www myspace com/mickknutson> > > > > > > http://www myspace com/djmick_dot_com> > > > > > > http://www myspace com/sexybeotches> > > > > > > http://www thumpradio com> > > > > > > ---> > > > > > >> > > > > >> > > > >> > > >> > >> > >> > >> > > --> > >> > > Thanks,> > > Mick Knutson> > >> > > http://www baselogic com> > > http://www blincmagazine com> > > http://www djmick com> > > http://www myspace com/mickknutson> > > http://www myspace com/djmick_dot_com> > > http://www myspace com/sexybeotches> > > http://www thumpradio com> > > ---> > >> >>>>> -->> Thanks,> Mick Knutson>> http://www baselogic com> http://www blincmagazine com> http://www djmick com> http://www myspace com/mickknutson> http://www myspace com/djmick_dot_com> http://www myspace com/sexybeotches> http://www thumpradio com> --->-- Thanks,Mick Knutsonhttp://www baselogic comhttp://www blincmagazine comhttp://www djmick comhttp://www myspace com/mickknutsonhttp://www myspace com/djmick_dot_comhttp://www myspace com/sexybeotcheshttp://www thumpradio com---

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/maven-users/200710.mbox/%3C4c30ee7d0710311549wf7a7961h6d38c8fe8f4f587f@mail.gmail.com%3E

comments | Add comment | Report as Spam


"Big java problem error-?" posted by ~Ray
Posted on 2008-03-12 23:13:27

basic: Registered modality listenerliveconnect: Invoking JS method: documentliveconnect: Invoking JS method: URLbasic: Referencing classloader: sun plugin. ClassLoaderInfo@bf7190 refcount=1basic: Added progress listener: sun plugin util. GrayBoxPainter@39ab89basic: Loading applet.. basic: Initializing applet.. basic: Starting applet.. basic: Referencing classloader: sun plugin. ClassLoaderInfo@bf7190 refcount=2basic: Releasing classloader: sun plugin. ClassLoaderInfo@bf7190 refcount=1basic: httpCompression = truenetwork: Connecting with proxy=HTTP @ galaxy magicstar net/209.125.56.133:6667communicate: Connecting with cookie "RSORIGIN=runescape; serverlist_order=WMLPA; jagextimeout676=1192594453347; jagextimeout652=1192597051068;jagextimeout650=1192597979960;jagextimeout677=11926782307 thats the error i get but my brother deleted all my enviroment variables what do ido... 15 morebasic: Exception: java lang. RuntimeException: java lang. NullPointerExceptionjava lang. RuntimeException: java lang. NullPointerExceptionat sun net www protocol http. HttpURLConnection getInputStream(Unknown obtain)at sun net www protocol http. HttpURLConnection getHeaderField(Unknown Source)at java net. HttpURLConnection getResponseCode(Unknown obtain)at sun applet. AppletClassLoader getBytes(Unknown obtain)at sun applet. AppletClassLoader access$100(Unknown Source)at sun applet. AppletClassLoader$1 run(Unknown obtain)at java security. AccessController doPrivileged(Native Method)at sun applet. AppletClassLoader findClass(Unknown obtain)at java lang. ClassLoader loadClass(Unknown Source)at sun applet. AppletClassLoader loadClass(Unknown Source)at java lang. ClassLoader loadClass(Unknown Source)at sun applet. AppletClassLoader loadCode(Unknown obtain)at sun applet. AppletPanel createApplet(Unknown Source)at sun plugin. AppletViewer createApplet(Uat java lang. go run(Unknown Source)Caused by: java lang. NullPointerExceptionat sun plugin lay aside. CachedFileLoader writeHeaders(Unknown Source)at sun plugin lay aside. CachedFileLoader createCacheFiles(Unknown Source)at sun plugin cache. CachedFileLoader access$200(Unknown Source)at sun plugin cache. CachedFileLoader$3 run(Unknown Source)at java security. AccessController doPrivileged(Native Method)at sun plugin cache. CachedFileLoader transfer(Unknown Source)at sun plugin cache. CachedFileLoader fill(Unknown obtain)at sun plugin cache. FileCache get(Unknown Source)at sun plugin cache. PluginCacheHandler get(Unknown Source)at sun net www protocol http. HttpURLConnection plainConnect(Unknown Source)at sun net www protocol http. HttpURLConnection connect(Unknown Source)at sun net www protocol http. HttpURLConnection getInputStream(Unknown Source)... 15 morethere added the be wish u can back up me now ooh iv beat him up still hasnt back up my javadude im cause to be perceived about some things but iv been reading about java 4 2days and iv come to the conculsion im a idot when it comes to java if i was told how to fix it i could easyly do that but i undergo no cule whats rong i cant read thats script where the errors areyes iv delted and redownloaded java prolly 15times and tryed other versions 0 && this options[this selectedIndex] value) window location href = smf_scripturl + this options[this selectedIndex] value substr(smf_scripturl indexOf('?') == -1 || this options[this selectedIndex] value substr(0. 1) != '?' ? 0 : 1);">

Forex Groups - Tips on Trading

Related article:
http://www.friendsterforum.com/forum/empty-t39783.0.html;msg212548#msg212548

comments | Add comment | Report as Spam


"Big java problem error-?" posted by ~Ray
Posted on 2008-03-12 23:13:25

basic: Registered modality listenerliveconnect: Invoking JS method: documentliveconnect: Invoking JS method: URLbasic: Referencing classloader: sun plugin. ClassLoaderInfo@bf7190 refcount=1basic: Added progress listener: sun plugin util. GrayBoxPainter@39ab89basic: Loading applet.. basic: Initializing applet.. basic: Starting applet.. basic: Referencing classloader: sun plugin. ClassLoaderInfo@bf7190 refcount=2basic: Releasing classloader: sun plugin. ClassLoaderInfo@bf7190 refcount=1basic: httpCompression = truenetwork: Connecting with proxy=HTTP @ galaxy magicstar net/209.125.56.133:6667communicate: Connecting with cookie "RSORIGIN=runescape; serverlist_order=WMLPA; jagextimeout676=1192594453347; jagextimeout652=1192597051068;jagextimeout650=1192597979960;jagextimeout677=11926782307 thats the error i get but my brother deleted all my enviroment variables what do ido... 15 morebasic: Exception: java lang. RuntimeException: java lang. NullPointerExceptionjava lang. RuntimeException: java lang. NullPointerExceptionat sun net www protocol http. HttpURLConnection getInputStream(Unknown Source)at sun net www protocol http. HttpURLConnection getHeaderField(Unknown Source)at java net. HttpURLConnection getResponseCode(Unknown Source)at sun applet. AppletClassLoader getBytes(Unknown obtain)at sun applet. AppletClassLoader access$100(Unknown Source)at sun applet. AppletClassLoader$1 run(Unknown obtain)at java security. AccessController doPrivileged(Native Method)at sun applet. AppletClassLoader findClass(Unknown Source)at java lang. ClassLoader loadClass(Unknown Source)at sun applet. AppletClassLoader loadClass(Unknown Source)at java lang. ClassLoader loadClass(Unknown Source)at sun applet. AppletClassLoader loadCode(Unknown Source)at sun applet. AppletPanel createApplet(Unknown Source)at sun plugin. AppletViewer createApplet(Uat java lang. Thread run(Unknown obtain)Caused by: java lang. NullPointerExceptionat sun plugin cache. CachedFileLoader writeHeaders(Unknown Source)at sun plugin lay aside. CachedFileLoader createCacheFiles(Unknown Source)at sun plugin cache. CachedFileLoader find$200(Unknown Source)at sun plugin cache. CachedFileLoader$3 run(Unknown Source)at java security. AccessController doPrivileged(Native Method)at sun plugin lay aside. CachedFileLoader download(Unknown Source)at sun plugin cache. CachedFileLoader load(Unknown Source)at sun plugin cache. FileCache get(Unknown obtain)at sun plugin cache. PluginCacheHandler get(Unknown obtain)at sun net www protocol http. HttpURLConnection plainConnect(Unknown Source)at sun net www protocol http. HttpURLConnection connect(Unknown Source)at sun net www protocol http. HttpURLConnection getInputStream(Unknown Source)... 15 morethere added the rest hope u can help me now ooh iv defeat him up still hasnt back up my javadude im cause to be perceived about some things but iv been reading about java 4 2days and iv come to the conculsion im a idot when it comes to java if i was told how to fix it i could easyly do that but i have no cule whats rong i cant read thats compose where the errors areyes iv delted and redownloaded java prolly 15times and tryed other versions 0 && this options[this selectedIndex] determine) window location href = smf_scripturl + this options[this selectedIndex] value substr(smf_scripturl indexOf('?') == -1 || this options[this selectedIndex] determine substr(0. 1) != '?' ? 0 : 1);">

Forex Groups - Tips on Trading

Related article:
http://www.friendsterforum.com/forum/empty-t39783.0.html;msg212548#msg212548

comments | Add comment | Report as Spam


"Geocoding with the Quick 'n Dirty Geocoder" posted by ~Ray
Posted on 2008-01-01 21:17:36

The geocoder described in this affix is remove software and can be used and distributed however you like. It installs in a servlet container like Tomcat and accesses the geocoder us web service to translate the names and addresses you give (in a text file) into geographic coordinates which it then writes back to your PC and/or a database. For details on how to install and use this software frequently asked questions configuration etc. refer to the wiki article. The short version is just displace geo war into Tomcat's webapps directory,start it then follow the instructions athttp://localhost:8080/geo/code. This post describes some of the Java code used to implement the communication between the Q&D geocoder and the geocoder us web service. Most lines of code in this application are used in IO on your own PC rather than the web service. The GeoServlet receives requests and uses the GeoImporter to read in and analyse files from the text file on your PC. It then uses the GeoTransport class to communicate with the geocoder us service and finally writes the results back to a register and/or database with the GeoExporter class. try { iter = FileUtils lineIterator(file. "UTF-8"); while(iter hasNext()) { arrange line = iter nextLine(); makePlace(lie); count++; } } surprise(IOException ex) { addMessage("Error reading input file. communicate: " + ex getMessage() + ".<br/>"); ex printStackTrace(System err);} finally { LineIterator closeQuietly(iter);} The importer leverages the excellent ,which makes reading lines from a register a mouth. Once read,makePlace(line) is called to parse the line and alter sure it isformatted properly. Places are gathered in an ArrayList which ispassed back to the servlet. Each Place is then translated with the transporter. The transporteruses two values in the web xml file a username and a password. If theyare set the commercial geocoder is used; otherwise the free geocoderis used. To get a username and password head to and pay the nice folks $50 for 20,000 requests. If you are using it forcommercial purposes you must purchase a commercial authorise. The transporter constructs the web service query and ensures that avalid response is received back. The only tricky part to this class isthe authentication used when accessing the commercial function. Geocoder us's documentation states that you can displace theusername:password combination in the web service URL but I got nothingbut Http 402 errors because the server couldn't.

Forex Groups - Tips on Trading

Related article:
http://www.joefission.com/2007/11/geocoding-with-.html

comments | Add comment | Report as Spam


"??HttpURLConnection??post?get??" posted by ~Ray
Posted on 2007-12-15 15:07:13

http://blog csdn net/pandazxx/archive/2007/06/18/1657109 aspxhttp://communicate csdn net/pandazxx/archive/2007/06/20/1660008 aspx  CSDN数据库频道提供丰富的数据库资讯和互动社区学习内容,三个子频道DB2、Oracle、SQLServer提供各种数据库应用技巧,相关最新资讯,建库实例。帮助你提高和培养数据库学习和应用能力。 CSDN tag是一个Web 2.0应用,您可以把自己的文章更新通知到CSDN tag系统,让更多人访问你的communicate;您还可以利用搜索功能,精确查询和订阅感兴趣的技术性内容(Blog、论坛、新闻……)。

Forex Groups - Tips on Trading

Related article:
http://tag.csdn.net/Article/2205f96a-0231-44c4-9774-284c280d22fe.html

comments | Add comment | Report as Spam


"Client can't receive the message due to read timed out" posted by ~Ray
Posted on 2007-12-09 13:39:53

Hi All,I am new to this mail list. I am developing a web function using CXF 2.0.2. Everything is tested andworks fine on the service side. I used wsdl2java to create a client. When I create the client. I got "Interceptor has thrown exception,unwinding noworg apache cxf interceptor. Fault: Could not displace Message." I believe on the client align the fail measure out for reading communicate is60 seconds and this error is caused by read time out. The following isthe stacktrace. Any back up you can give ordain be greatly appreciated!!Thank you in go! -Minsheng INFO: Interceptor has thrown exception unwinding noworg apache cxf interceptor. accuse: Could not displace Message atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:64)atorg apache cxf arrange. PhaseInterceptorChain doIntercept(PhaseInterceptorChain java:207)at org apache cxf endpoint. ClientImpl invoke(ClientImpl java:254)at org apache cxf endpoint. ClientImpl invoke(ClientImpl java:205)at org apache cxf frontend. ClientProxy invokeSync(ClientProxy java:73)atorg apache cxf jaxws. JaxWsClientProxy invoke(JaxWsClientProxy java:135)at $Proxy28 getEquipmentLocationEntitlements(Unknown Source)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client getEquipmentLocationEntitlements(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:82)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client main(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:37)Caused by: java net. SocketTimeoutException: Read timed outat java net. SocketInputStream socketRead0(Native Method)at java net. SocketInputStream construe(Unknown obtain)at java io. BufferedInputStream fill(Unknown Source)at java io. BufferedInputStream read1(Unknown obtain)at java io. BufferedInputStream read(Unknown Source)at sun net www http. HttpClient parseHTTPHeader(Unknown obtain)at sun net www http. HttpClient parseHTTP(Unknown obtain)at sun net www protocol http. HttpURLConnection getInputStream(UnknownSource)at java net. HttpURLConnection getResponseCode(Unknown Source)atorg apache cxf transport http. HTTPConduit$WrappedOutputStream handleResponse(HTTPConduit java:1860)atorg apache cxf transport http. HTTPConduit$WrappedOutputStream close(HTTPConduit java:1790)atorg apache cxf transport. AbstractConduit change state(AbstractConduit java:66)at org apache cxf displace http. HTTPConduit change state(HTTPConduit java:576)atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:62)... 8 moreException in go "main" javax xml ws soap. SOAPFaultException: Couldnot displace Message atorg apache cxf jaxws. JaxWsClientProxy invoke(JaxWsClientProxy java:175)at $Proxy28 getEquipmentLocationEntitlements(Unknown obtain)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client getEquipmentLocationEntitlements(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:82)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client main(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:37)Caused by: org apache cxf interceptor. Fault: Could not displace Message atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:64)atorg apache cxf arrange. PhaseInterceptorChain doIntercept(PhaseInterceptorChain java:207)at org apache cxf endpoint. ClientImpl invoke(ClientImpl java:254)at org apache cxf endpoint. ClientImpl create(ClientImpl java:205)at org apache cxf frontend. ClientProxy invokeSync(ClientProxy java:73)atorg apache cxf jaxws. JaxWsClientProxy invoke(JaxWsClientProxy java:135)... 3 moreCaused by: java net. SocketTimeoutException: construe timed outat java net. SocketInputStream socketRead0(Native Method)at java net. SocketInputStream read(Unknown Source)at java io. BufferedInputStream alter(Unknown obtain)at java io. BufferedInputStream read1(Unknown Source)at java io. BufferedInputStream read(Unknown Source)at sun net www http. HttpClient parseHTTPHeader(Unknown obtain)at sun net www http. HttpClient parseHTTP(Unknown Source)at sun net www protocol http. HttpURLConnection getInputStream(UnknownSource)at java net. HttpURLConnection getResponseCode(Unknown Source)atorg apache cxf displace http. HTTPConduit$WrappedOutputStream handleResponse(HTTPConduit java:1860)atorg apache cxf transport http. HTTPConduit$WrappedOutputStream change state(HTTPConduit java:1790)atorg apache cxf displace. AbstractConduit change state(AbstractConduit java:66)at org apache cxf transport http. HTTPConduit close(HTTPConduit java:576)atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:62)... 8 more

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200710.mbox/%3CEBB9BE2655816245BBCAE52B97E72D66A556E6@306181ANEX2.global.avaya.com%3E

comments | Add comment | Report as Spam


"Client can't receive the message due to read timed out" posted by ~Ray
Posted on 2007-12-09 13:39:53

Hi All,I am new to this mail enumerate. I am developing a web function using CXF 2.0.2. Everything is tested andworks fine on the function side. I used wsdl2java to create a client. When I create the client. I got "Interceptor has thrown exception,unwinding noworg apache cxf interceptor. Fault: Could not displace communicate." I accept on the client align the default time out for reading message is60 seconds and this error is caused by read time out. The following isthe stacktrace. Any help you can give ordain be greatly appreciated!!Thank you in advance! -Minsheng INFO: Interceptor has thrown exception unwinding noworg apache cxf interceptor. Fault: Could not send Message atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:64)atorg apache cxf arrange. PhaseInterceptorChain doIntercept(PhaseInterceptorChain java:207)at org apache cxf endpoint. ClientImpl invoke(ClientImpl java:254)at org apache cxf endpoint. ClientImpl invoke(ClientImpl java:205)at org apache cxf frontend. ClientProxy invokeSync(ClientProxy java:73)atorg apache cxf jaxws. JaxWsClientProxy create(JaxWsClientProxy java:135)at $Proxy28 getEquipmentLocationEntitlements(Unknown Source)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client getEquipmentLocationEntitlements(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:82)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client main(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:37)Caused by: java net. SocketTimeoutException: Read timed outat java net. SocketInputStream socketRead0(Native Method)at java net. SocketInputStream read(Unknown Source)at java io. BufferedInputStream alter(Unknown obtain)at java io. BufferedInputStream read1(Unknown obtain)at java io. BufferedInputStream read(Unknown Source)at sun net www http. HttpClient parseHTTPHeader(Unknown Source)at sun net www http. HttpClient parseHTTP(Unknown obtain)at sun net www protocol http. HttpURLConnection getInputStream(UnknownSource)at java net. HttpURLConnection getResponseCode(Unknown Source)atorg apache cxf transport http. HTTPConduit$WrappedOutputStream handleResponse(HTTPConduit java:1860)atorg apache cxf displace http. HTTPConduit$WrappedOutputStream close(HTTPConduit java:1790)atorg apache cxf transport. AbstractConduit change state(AbstractConduit java:66)at org apache cxf transport http. HTTPConduit close(HTTPConduit java:576)atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:62)... 8 moreException in go "main" javax xml ws soap. SOAPFaultException: Couldnot send Message atorg apache cxf jaxws. JaxWsClientProxy invoke(JaxWsClientProxy java:175)at $Proxy28 getEquipmentLocationEntitlements(Unknown Source)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client getEquipmentLocationEntitlements(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:82)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client main(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:37)Caused by: org apache cxf interceptor. Fault: Could not send Message atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:64)atorg apache cxf arrange. PhaseInterceptorChain doIntercept(PhaseInterceptorChain java:207)at org apache cxf endpoint. ClientImpl create(ClientImpl java:254)at org apache cxf endpoint. ClientImpl invoke(ClientImpl java:205)at org apache cxf frontend. ClientProxy invokeSync(ClientProxy java:73)atorg apache cxf jaxws. JaxWsClientProxy invoke(JaxWsClientProxy java:135)... 3 moreCaused by: java net. SocketTimeoutException: Read timed outat java net. SocketInputStream socketRead0(Native Method)at java net. SocketInputStream read(Unknown Source)at java io. BufferedInputStream alter(Unknown obtain)at java io. BufferedInputStream read1(Unknown obtain)at java io. BufferedInputStream read(Unknown obtain)at sun net www http. HttpClient parseHTTPHeader(Unknown obtain)at sun net www http. HttpClient parseHTTP(Unknown obtain)at sun net www protocol http. HttpURLConnection getInputStream(UnknownSource)at java net. HttpURLConnection getResponseCode(Unknown obtain)atorg apache cxf displace http. HTTPConduit$WrappedOutputStream handleResponse(HTTPConduit java:1860)atorg apache cxf transport http. HTTPConduit$WrappedOutputStream close(HTTPConduit java:1790)atorg apache cxf transport. AbstractConduit change state(AbstractConduit java:66)at org apache cxf transport http. HTTPConduit change state(HTTPConduit java:576)atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:62)... 8 more

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200710.mbox/%3CEBB9BE2655816245BBCAE52B97E72D66A556E6@306181ANEX2.global.avaya.com%3E

comments | Add comment | Report as Spam


"Client can't receive the message due to read timed out" posted by ~Ray
Posted on 2007-12-09 13:39:47

Hi All,I am new to this send list. I am developing a web function using CXF 2.0.2. Everything is tested andworks fine on the service side. I used wsdl2java to create a client. When I invoke the client. I got "Interceptor has thrown exception,unwinding noworg apache cxf interceptor. accuse: Could not send Message." I believe on the client align the fail time out for reading message is60 seconds and this error is caused by read time out. The following isthe stacktrace. Any back up you can provide will be greatly appreciated!!convey you in advance! -Minsheng INFO: Interceptor has thrown exception unwinding noworg apache cxf interceptor. Fault: Could not send Message atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:64)atorg apache cxf arrange. PhaseInterceptorChain doIntercept(PhaseInterceptorChain java:207)at org apache cxf endpoint. ClientImpl invoke(ClientImpl java:254)at org apache cxf endpoint. ClientImpl create(ClientImpl java:205)at org apache cxf frontend. ClientProxy invokeSync(ClientProxy java:73)atorg apache cxf jaxws. JaxWsClientProxy create(JaxWsClientProxy java:135)at $Proxy28 getEquipmentLocationEntitlements(Unknown Source)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client getEquipmentLocationEntitlements(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:82)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client main(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:37)Caused by: java net. SocketTimeoutException: construe timed outat java net. SocketInputStream socketRead0(Native Method)at java net. SocketInputStream construe(Unknown Source)at java io. BufferedInputStream alter(Unknown obtain)at java io. BufferedInputStream construe1(Unknown obtain)at java io. BufferedInputStream read(Unknown Source)at sun net www http. HttpClient parseHTTPHeader(Unknown Source)at sun net www http. HttpClient parseHTTP(Unknown Source)at sun net www protocol http. HttpURLConnection getInputStream(UnknownSource)at java net. HttpURLConnection getResponseCode(Unknown Source)atorg apache cxf transport http. HTTPConduit$WrappedOutputStream handleResponse(HTTPConduit java:1860)atorg apache cxf transport http. HTTPConduit$WrappedOutputStream close(HTTPConduit java:1790)atorg apache cxf displace. AbstractConduit close(AbstractConduit java:66)at org apache cxf transport http. HTTPConduit change state(HTTPConduit java:576)atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:62)... 8 moreException in go "main" javax xml ws clean. SOAPFaultException: Couldnot send communicate atorg apache cxf jaxws. JaxWsClientProxy create(JaxWsClientProxy java:175)at $Proxy28 getEquipmentLocationEntitlements(Unknown Source)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client getEquipmentLocationEntitlements(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:82)atcom avaya tsd services client. ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client main(ISoldToAdministrationService_SoldToAdministrationServiceImplPort_Client java:37)Caused by: org apache cxf interceptor. Fault: Could not displace Message atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:64)atorg apache cxf phase. PhaseInterceptorChain doIntercept(PhaseInterceptorChain java:207)at org apache cxf endpoint. ClientImpl create(ClientImpl java:254)at org apache cxf endpoint. ClientImpl invoke(ClientImpl java:205)at org apache cxf frontend. ClientProxy invokeSync(ClientProxy java:73)atorg apache cxf jaxws. JaxWsClientProxy invoke(JaxWsClientProxy java:135)... 3 moreCaused by: java net. SocketTimeoutException: construe timed outat java net. SocketInputStream socketRead0(Native Method)at java net. SocketInputStream construe(Unknown Source)at java io. BufferedInputStream alter(Unknown obtain)at java io. BufferedInputStream read1(Unknown Source)at java io. BufferedInputStream construe(Unknown obtain)at sun net www http. HttpClient parseHTTPHeader(Unknown obtain)at sun net www http. HttpClient parseHTTP(Unknown Source)at sun net www protocol http. HttpURLConnection getInputStream(UnknownSource)at java net. HttpURLConnection getResponseCode(Unknown obtain)atorg apache cxf transport http. HTTPConduit$WrappedOutputStream handleResponse(HTTPConduit java:1860)atorg apache cxf displace http. HTTPConduit$WrappedOutputStream close(HTTPConduit java:1790)atorg apache cxf transport. AbstractConduit close(AbstractConduit java:66)at org apache cxf transport http. HTTPConduit close(HTTPConduit java:576)atorg apache cxf interceptor. MessageSenderInterceptor$MessageSenderEndingInterceptor handleMessage(MessageSenderInterceptor java:62)... 8 more

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200710.mbox/%3CEBB9BE2655816245BBCAE52B97E72D66A556E6@306181ANEX2.global.avaya.com%3E

comments | Add comment | Report as Spam


"Using HttpURLConnection over and over fails" posted by ~Ray
Posted on 2007-11-27 20:04:16

I have a problem where repeatedly using a HttpURLConnection appears to disappoint after an uknown number of times. My label currently looks like this and itself is run within another while(true) circle... public void setNewImageTile(Point p byte[] imageData. String sessionKey){System out println("Setting new image cover! With lenght of data... "+imageData length);java net. URL url = null;url = Utility getServerURL();HttpURLConnection m_con;try {m_con = (HttpURLConnection) url openConnection();m_con setRequestMethod("affix");m_con setRequestProperty("method","setNewImageTile");m_con setRequestProperty("pointX",String valueOf((int)p getX()));m_con setRequestProperty("pointY",arrange valueOf((int)p getY()));m_con setRequestProperty("sessionKey",sessionKey);m_con setDoInput(true);m_con setDoOutput(adjust);m_con setAllowUserInteraction(adjust);m_con setFixedLengthStreamingMode(imageData length);OutputStream os = m_con getOutputStream();os write(imageData);os flush();os change state();m_con getContentType();m_con undo();} catch (IOException ex) {ex printStackTrace();}}My servlet is getting the data and using it correctly however on my client application where i use HttpURLConnection after a little while I will go away seeing the following error alternating with successfully connections.. java net. BindException: Address already in use: connect at java net. PlainSocketImpl socketConnect(Native Method) at java net. PlainSocketImpl doConnect(PlainSocketImpl java:333) at java net. PlainSocketImpl connectToAddress(PlainSocketImpl java:195) at java net. PlainSocketImpl cerebrate(PlainSocketImpl java:182) at java net. Socket cerebrate(Socket java:519) at java net. Socket connect(Socket java:469) at sun net. NetworkClient doConnect(NetworkClient java:157) at sun net www http. HttpClient openServer(HttpClient java:382) at sun net www http. HttpClient openServer(HttpClient java:509) at sun net www http. HttpClient.<init>(HttpClient java:231) at sun net www http. HttpClient. New(HttpClient java:304) at sun net www http. HttpClient. New(HttpClient java:316) at sun net www protocol http. HttpURLConnection getNewHttpClient(HttpURLConnection java:813) at sun net www protocol http. HttpURLConnection plainConnect(HttpURLConnection java:765) at sun net www protocol http. HttpURLConnection connect(HttpURLConnection java:690) at sun net www protocol http. HttpURLConnection getOutputStream(HttpURLConnection java:857) at com client utility. ConnectionManager setNewImageTile(ConnectionManager java:133) at com client gui. HostingPanel sendChunkedScreen(HostingPanel java:60) at com client gui. HostingPanel access$000(HostingPanel java:22) at com client gui. HostingPanel$1 run(HostingPanel java:39) at java lang. Thread run(go java:595) Yes I had tried reading the response but that did not help. Perhaps I should explain my intentions. I am creating a proxy server for an HTTP based remote desktop schedule. I must transfer thousands of images per minute per client my servlet(s) appear to be able to handle this book however I am left unable transfer my data properly via the desktop application using a HttpURLConnection I undergo also tried calling disconnect() on my HttpURLConnection it still does not back up. Running netstat on my XP-Pro machine reveals many sockets in the TIME_act status. Any ideas? I need to be able to transfer lots and lots of small image files the server is handling it fine as I said. As was mentioned in one of the replies it would be good to read the response from the server. When you read the response to EOF it allows the connection to be returned to the persistent connection lay aside. If you don't read the response and just create disconnect then it means the connection cannot be re-used and so it must be closed. You didn't say which JDK this is but there was an improvement in JDK6 to help with cases like this. As I recall the protocol handler ordain do a limited be of read-ahead and if it gets to the end of the response then it allows the connection to be re-used rather than closing it. Benju wrote:So does this mean my servlet should always displace some choose of data even if it functionally only needs to receive data? Should I just label something like communicate getWriter println("Hello World") or is there a exceed way to have my HttpURLConnection recieve an EOF on a servlet with a circumscribe length of 0? You use m_con setDoInput(true) so you are saying that you expect some input. If you are not expecting enter then change to m_con setDoInput(false). In this case if you try to get the InputStream you will acquire null. I have setup my HttpURLConnection to recieved the words "hello world" after uploading what actually needs to be sent. It appears that change surface when reading until the end of the data from my servlet I have problems with connection pooling failing when HttpURLConnection is user over and over again very rapidly. I believe that my schedule may be flawed in that it is making at least 10 and up to 20 requests per back up and will be changing it to alter one request every 60 seconds. There my be an issue with HttpURLConnection but I cannot say for sure thank you for the assistance.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5227776

comments | Add comment | Report as Spam


"Checking URLs via HttpURLConnection" posted by ~Ray
Posted on 2007-11-17 15:46:28

Below is the code for a very simple Java application which tries to connect to 3 URL's to check whether the links are broken. The links are:http://www sckk dkhttp://www sckk dk/visSCKKForside asp?artikelID=1261http://www sckk dk/visSCKKArtikel asp?artikelID=2214They can be easily accessed using a browser yet when using the HttpURLConnection a Internal Server Error (500) is returned setFollowRedirects(true) does not change this behaviour. I've been looking for an explanation all over the web and haven't open any so any insight is most appreciated. ); HttpURLConnection connection = (HttpURLConnection) url openConnection(); The way you are connecting to those URLs you are causing their application to crash. That's not your accuse though. It's their accuse. Perhaps they are looking for specific values of the user agent header or something like that and their application doesn't bring home the bacon if yours isn't on the list. But at any rate there isn't anything you can do about their application. Have you contacted them about this problem? Is it the openConnection() the connect() or one of the connection get...() calls that is raising an exception? Or is the response code coming approve as 500?If you haven't evaluate this out. I would recommend you try removing the "connection connect()" statement then move the println with the getResponseCode() to be the first one called. (I'm the OP for some reason I can't recover my password for my sign account at the moment) Just wanted to express you (DrClap) that I managed to solve the "riddle" inspired by your reply! I added the following line to the code. "masking" my application as a browser (IE 6.0 on a Win XP machine if I'm not mistaken): The troublesome websites now respond correctly. I'm relatively new to http-related work so mentioning the user agent header lead me in the alter direction. Thanks! P. S. I'll try to award you the duke stars once I'm able to retrieve my password. You do not need the "sc."//sc checkUrl("http://www sckk dk");checkUrl("http://www sckk dk");secondly your not connecting some write of recieve stream to your calling classand ASP servers are notorious for kicking up a be about buggy little call problemsfor output. Third to instantiate detecting the operation you demand to hear something back soall that is a bit short. You best put setRequestMethod() approve to cause some absolutedefinition of a be adrift data type to be recieved for the test.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5233445

comments | Add comment | Report as Spam


"HttpURLConnection does not send properties on GET (POST)" posted by ~Ray
Posted on 2007-11-09 17:19:52

Hi,recently I undergo installed the JavaEE5 and playing around with some things. There is an example "Hello" as web application included which repeats a arrange someone put into a text handle on a web page. The URL on my computer is http://192.168.0.10:8080/hello and it works book in a browser (IE. FireFox). Next I tried is the following which intends to get the same result as a web browser would get:public static void test8() {String str = "";int num = 0;java io. BufferedReader in;Vector vec = new Vector();URL url;HttpURLConnection con;BufferedWriter out;try {//url = new URL("http://192.168.0.10:8080/hello/?username=java");url = new URL("http://192.168.0.10:8080/hello");con = (HttpURLConnection) url openConnection();con setRequestMethod("GET");con setDoOutput(adjust);con setDoInput(true);con addRequestProperty("username". "java");con cerebrate();// construe the resultin = new BufferedReader(new InputStreamReader(con getInputStream()));while (str != null) {str = in readLine();if ( str != null ) vec add(str);num ++;System out println("#" + str);}System out println("construe " + num + " lines of text as say");in close();con disconnect();} catch (Exception e) {bring in doException(e);}}}But the prove I am getting is as I had never send any property! However if I use the other URL which is in the code ("http://192.168.0.10:8080/hello/?username=java"). I get the change by reversal result the username "java" is returned back. Now I doubt that Java has a bug here usually it's something I did wrong but I just have no more ideas what it could be after playing around for quite a while to fix this... Anyone a helping convey for me? Would be great!Stephan. Woebbeking@gmx deThanks,Stephan First off please put your label in the code brackets next time you fill label. It's very painful on most people's eyes to construe that. GET requests work by the mere fact that the parameters sent are embedded into the URL (that's the '?' thing followed by the parameter in the URL). Since you commented out the URL with the information afterwards it did exactly as it should undergo and tried to send the URL without any information. You can try putting in other things but that just won't work alter since you're still trying to send a GET request. Now are you asking how to displace a POST communicate so you can provide hidden information of sorts? If that is the inspect. I would declare googling for java POST requests as there are a lot of great examples out there. come up this did actually lead me to the answer. The failure simply was that I was believing the Properties actually WERE the information I wanted to send. About the GET and POST topic/differences I was aware off as I tried to explain. I just couldn't imagine that there's no standard way to cerebrate the affix information to the connection. But now I think I really undergo to put it together bit by bit. That's not the problem if there's no other way. I was just sure it would be far off being state-of-the-art.@dketcham: Sorry for the label. I also didn't know that there's kind of a hold for this... Before I affix next measure I ordain try to find out how the look like/how they are used... Thanks,Stephan StephanWoebbeking1973 wrote:About the GET and POST topic/differences I was aware off as I tried to explain. I just couldn't create by mental act that there's no standard way to connect the POST information to the connection. I think you are not tighten with HTTP GET/affix. What you have ask for is a GET communicate just with GET parameters e g http://example com/evaluate cgi?key1=determine1&key2=value2The server gets then something desire:GET /test cgi?key1=determine1&key2=value2 HTTP/1.1This has nothing to do with POST requests. With a affix request the client had to displace the POST request line to get a connection and then he had to a request be(in octets aka bytes) with the parameters to the connection's output stream e g. [http://www exampledepot com/egs/java net/affix html?l=rel] greetingsAxelEdited by: Axel_Richter on Sep 15. 2007 12:30 AM

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5215351

comments | Add comment | Report as Spam


"SSL does not allow to make a HttpURLConnection" posted by ~Ray
Posted on 2007-11-03 13:51:20

Hi all. I be to alter a connection to a known url (forge)before that i have set the following code SSLContext sc = SSL. GetInstance("SSL");sc init(null trustall,null);...........& set the default socket factory of sc with httpsurlconnectionthen i made a connection and transfer some register from there it works perfectly fine if there is no Proxy setting done for "SSL" on browser if it is set then "http 401..... " error occurs. gratify let me know if somebody has an idea. thanksNaveen you can use telnet or ping from your java label and analyse for the forge avalabilitypingProcess p = Runtime getRuntime() exec("collide with -n 1 " + ip);int status = p waitFor();System out println(ip + " is " + (status==0 ? "alive" : "dead"));telnethttp://www jscape com/articles/telnet_using_java html (third party) The response above is irrelevant. You are managing to cerebrate to the target and get a response from it so obvoiusly collide with and telnet would also succeed and obviously this is not a network connectivity problem. HTTP 401 means ' The request requires user authentication': see http://www w3 org/Protocols/rfc2616/rfc2616-sec10 html. What you need here is a java net. Authenticator.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5209314

comments | Add comment | Report as Spam


"SSL does not allow to make a HttpURLConnection" posted by ~Ray
Posted on 2007-11-03 13:51:19

Hi all. I be to make a connection to a known url (forge)before that i undergo set the following label SSLContext sc = SSL. GetInstance("SSL");sc init(null trustall,null);...........& set the fail socket factory of sc with httpsurlconnectionthen i made a connection and download some register from there it works perfectly fine if there is no Proxy setting done for "SSL" on browser if it is set then "http 401..... " error occurs. Please let me experience if somebody has an idea. thanksNaveen you can use telnet or ping from your java code and check for the machine avalabilitypingProcess p = Runtime getRuntime() exec("ping -n 1 " + ip);int status = p waitFor();System out println(ip + " is " + (status==0 ? "alive" : "dead"));telnethttp://www jscape com/articles/telnet_using_java html (third celebrate) The response above is irrelevant. You are managing to connect to the target and get a response from it so obvoiusly collide with and telnet would also succeed and obviously this is not a communicate connectivity problem. HTTP 401 means ' The request requires user authentication': see http://www w3 org/Protocols/rfc2616/rfc2616-sec10 html. What you need here is a java net. Authenticator.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5209314

comments | Add comment | Report as Spam


"How to encode url with URL class and HttpURLConnection" posted by ~Ray
Posted on 2007-10-28 11:49:08

I have below label. Problem is that if I encode URL using URLEncoder i get malformedurlexception. Then How can I encode my URL without chnaging below aproach of downloading a PDF. URL url = new URL(urlStr);HttpURLConnection conn = (HttpURLConnection) url openConnection();conn setDoInput(true);conn setUseCaches(false);conn setRequestProperty("Content-Type". "application/x-www-form-urlencoded"); I believe as per HTTP standards we need to do so. gratify advice. come up first of all I don't see where you are encoding anything. Second what exactly are you encoding? gratify show us the code of where you encode and what you encode. See you in two weeks.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5206873

comments | Add comment | Report as Spam


"How to encode url with URL class and HttpURLConnection" posted by ~Ray
Posted on 2007-10-28 11:49:08

I have below code. Problem is that if I encode URL using URLEncoder i get malformedurlexception. Then How can I encode my URL without chnaging below aproach of downloading a PDF. URL url = new URL(urlStr);HttpURLConnection conn = (HttpURLConnection) url openConnection();conn setDoInput(true);conn setUseCaches(false);conn setRequestProperty("Content-Type". "application/x-www-form-urlencoded"); I believe as per HTTP standards we need to do so. Please advice. Well first of all I don't see where you are encoding anything. Second what exactly are you encoding? Please show us the code of where you convert and what you encode. See you in two weeks.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5206873

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 httpurlconnection 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


httpurlconnection