Works correctly on IDE but crashes on web

Hi,
My applet and server app receive and send messages correctly if i run my apps on eclipse or idea. I have created a jar for client applet. But on web client doesnt receive any messages. I dont know where i am wrong.
These are related SERVER codes. I hope they will be enough.
ClientConnection implements Runnable {
private Socket sock;
private BufferedReader in;
//private OutputStream out;
private String host;
private Server server;
private Writer writer;
private static final String CRLF = "\r\n";
private String name = null ;
private String id;
private boolean busy = false;
public ClientConnection(Server srv, Socket s, int i) {
try {
server = srv;
sock = s;
in = new BufferedReader(new InputStreamReader(s.getInputStream()));
//out = s.getOutputStream();
this.writer = new OutputStreamWriter(s.getOutputStream(), "UTF-8");
host = s.getInetAddress().getHostName();
id = "" + i;
write(
"id " + id + CRLF );
new Thread(this).start();
catch (IOException e) {
System.
out.println("failed ClientConnection " + e);
public
void write(String s) {
char buf[];
buf = s.toCharArray();
try {
this.writer.write(buf, 0, buf.length );
writer.flush();
catch (IOException e) {
close();
public
void write(char cbuf[], int off, int len) throws IOException {
try{
for (int i = 0; i < len; i++) {
char c = cbuf[off + i];
if (c != '\r')
buf.append(c);
if (c == '\n') {
synchronized (out) {
out.write(buf.toString());
System.
out.println("send "+ buf.toString());
buf.setLength(0);
buf.append(channel);
catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
//some of related CLIENT Codes
this
.reader = new BufferedReader( new InputStreamReader(this.socket
.getInputStream(), "UTF-8"), 1);
public ChannelReader(int channel, TavServerConnection conn) {
this.channel = channel;
this.connection = conn;
connection.addChannelListener(this);
public ChannelReader(int channel) {
this.channel = channel;
private StringBuffer buf = new StringBuffer();
public synchronized int read(char[] cbuf, int off, int len)
throws IOException {
if (buf == null ) {
return -1;
while (buf.length() == 0) {
try {
wait();
catch (InterruptedException ex) {
IOException iox =
new InterruptedIOException();
iox.initCause(ex);
throw iox;
int cnt = Math.min(len, buf.length());
buf.getChars(0, cnt, cbuf, off);
buf.delete(0, cnt);
return cnt;
}----------------------------------

Applets are "active content" and thus run in a sandbox on the host machine with limited abilities and security permissions.
Change the security settings on your browser to allow I/O, networking for your applet.

Similar Messages

  • Works perfect on IDEs but crashes on WEB

    Hi,
    My applet and server app receive and send messages correctly if i run my apps on eclipse or idea. I have created a jar for client applet. But on web client doesnt receive any messages. I dont know where i am wrong.
    These are related SERVER codes. I hope they will be enough.
    ClientConnection implements Runnable {
    private Socket sock;
    private BufferedReader in;
    //private OutputStream out;
    private String host;
    private Server server;
    private Writer writer;
    private static final String CRLF = "\r\n";
    private String name = null ;
    private String id;
    private boolean busy = false;
    public ClientConnection(Server srv, Socket s, int i) {
    try {
    server = srv;
    sock = s;
    in = new BufferedReader(new InputStreamReader(s.getInputStream()));
    //out = s.getOutputStream();
    this.writer = new OutputStreamWriter(s.getOutputStream(), "UTF-8");
    host = s.getInetAddress().getHostName();
    id = "" + i;
    write(
    "id " + id + CRLF );
    new Thread(this).start();
    catch (IOException e) {
    System.
    out.println("failed ClientConnection " + e);
    public
    void write(String s) {
    char buf[];
    buf = s.toCharArray();
    try {
    this.writer.write(buf, 0, buf.length );
    writer.flush();
    catch (IOException e) {
    close();
    public
    void write(char cbuf[], int off, int len) throws IOException {
    try{
    for (int i = 0; i < len; i++) {
    char c = cbuf[off + i];
    if (c != '\r')
    buf.append(c);
    if (c == '\n') {
    synchronized (out) {
    out.write(buf.toString());
    System.
    out.println("send "+ buf.toString());
    buf.setLength(0);
    buf.append(channel);
    catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    //some of related CLIENT Codes
    this
    .reader = new BufferedReader( new InputStreamReader(this.socket
    .getInputStream(), "UTF-8"), 1);
    public ChannelReader(int channel, TavServerConnection conn) {
    this.channel = channel;
    this.connection = conn;
    connection.addChannelListener(this);
    public ChannelReader(int channel) {
    this.channel = channel;
    private StringBuffer buf = new StringBuffer();
    public synchronized int read(char[] cbuf, int off, int len)
    throws IOException {
    if (buf == null ) {
    return -1;
    while (buf.length() == 0) {
    try {
    wait();
    catch (InterruptedException ex) {
    IOException iox =
    new InterruptedIOException();
    iox.initCause(ex);
    throw iox;
    int cnt = Math.min(len, buf.length());
    buf.getChars(0, cnt, cbuf, off);
    buf.delete(0, cnt);
    return cnt;
    }

    What are you connecting to? Unsigned applets can't connect to other places than the server they came from.

  • HT1937 My iPhone was working correctly with FaceTime but now it's not , say (waiting for activiation) what should I do ??  Kindly if you can help!!

    My iPhone was working correctly with FaceTime but now it's not , say (waiting for activiation) what should I do ??  Kindly if you can help!!

    Thanks for your answer...
    My iPhone was connected to a wifi internet when I tried to activate it and when I tried activation by iTunes I was using my laptop with windows 7 which was connected to internet by cable.
    I updated my iPhone to IOS 7 when I was in Egypt and I had no problems with updating it and I can't remember if finding my iPhone option was on or off before updating to IOS 7 and as i understood from searching internet that to use iCloud Finder on web from computer to find my iPhone it should be set up already on my iPhone and I didn't set up iCloud on my iPhone before and my Apple ID wasn't verified for iCloud till today, I verfied it by logging in iCloud from a friend iPad.
    I was considering already the option that my iPhone has been hacked but if this happened so how I would unlock my iPhone and activate it to back to work? who would help me with that? I'm so tired of being without my phone for almost 4 days and I started to consider not having any Apple product anymore... I think that this way to secure the consumer has a lot of conflicts...

  • View containing custom column works in SharePoint 2010 but crashes webpart in SharePoint 2013

    First off.. I am using SP FOUNDATION.  Secondly, I'm linking a contact library from a parent site to a view on a sub site. This works in SP 2010 but when I tried to duplicate it in our new SP 2013 site, it doesn't.
    Reproduce steps to add Parent Contact Picks to Blog Sub-Site in SP 2010 (Foundation)
    In parent site, create a contact list (add some people)
    In parent site à Site Settings
    à Site Columns … create a new Column of type “Lookup”. 
    Set the Information Source to the Contact List in step 1 with its Column = “Last Name (linked to item)” 
    Create a BLOG sub site
    BlogSite à Site Settings
    à Site Libraries and Lists
    à Posts
    à Add from existing site columns …. Select the Lookup column you created in step 2.
    BlogSite à Site Settings
    à Site Libraries and Lists
    à Posts
    à Create View à Standard View….Create a new view and select ONLY the lookup column from step 4.
    Add a new Blog post and while in the ‘New-Item’ form, make sure to select a person from the Contact list.
    Open up the details page of the new post so that only the single post shows. Edit the Page and Insert a New Web Part
    à Lists and Libraries
    à Posts.
    Edit the newly added web part and change its view to the one created above in step 5.
    Drop the down arrow to the right of the newly added web part’s title and select Connections
    à Get Filtered values From
    à Post [1] (or whatever the default Post Web part is called). Set both the “Provider” and the “Consumer” field names to “ID”.
    You will now see that whenever you open the “Details” page of any blog post, you will see the Main post (aka the original form), the normal “Add Comment” entry web part, AND 
    the new web part that show the Contact selection specific to that single post. Clicking on the Name of the contact will actually pop up the details from the parent site.
    SharePoint 2013 (Foundation)
    Now perform the exact same steps in SharePoint 2013. However you’ll notice that Step 8 above appears to work but as soon as you try and edit that web part again or move on to step 9, the newly added web part states “Unable to display this Web Part. To troubleshoot
    the problem….. Correlation ID: 52d36c9c-e7a2-509e-1d60-3df1ce53ce2d”.
    Followup: In doing some testing I determined the following..
    1 - If I adjust step #5 as to NOT select the new linked column.. it works. Oddly however, the new view works when are you just using the view by itself (/site/lists/Posts/NewViewname.aspx).
    2 - I can fix the crash by enabling the 'Server Render' option on the WebPart. This actually now shows my information however the linked field is no longer a link.
    3 - As long as it's not a Lookup type column, I can follow the same process and do not need the Server Render option. Of course these other types are not live links.
    Seems like a bug to me.

    I set "Breakline" hidden because I don't want to show this in create new item form. 
    I realized that may be the reason. So changed the column to Optional in CT and created a new calendar using that CT. then at list level CT I changed it to Hidden.  That works.   The column is available for use when modifying view.
    Thanks

  • Paypal button not working correctly in Firefox but does with IE

    On the Donate page of www.jnh-goneriding.org are several Paypal buttons with drop down options. When you choose anything other than the first line and click on Buy Now - when it goes to the next screen it only shows the first line - not the line you picked in the drop down.
    This works correctly in Internet Explorer.

    Firefox will show the link if nothing is blocking it...
    In case an ad blocker, script blocker, or another extension is involved, could you test the page in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • Test cases runs correctly on IDE but fails on the test runner

    Hi Guys,
    I have a test case here that works fine on my Mars IDE with RCPTT but fails when I run it via the Maven plugin on the same machine.
    The summary of the test case here is that it auto-generates some java files based on changes done to a DSL type language. You will see that there is a Generator project there that does this. Any changes to the type file will trigger the java file to be regenerated with whatever was defined in the Generator project. On the IDE it all works but when it's run via the test runner, it always fails for some reason.
    One interesting thing to note there is if that test case is run first, it does not fail. I initially suspected that the previous test case might have done something to the AUT workspace/environment but it's difficult to prove. The test case in question does have contexts to clear the workspace and to add projects as well as a context for setting the preferences. I did try removing all the contexts except for the workspace context that contains the project that it needs but the execution result is still the same. If I manually ran the same AUT (extracted somewhere else) with the generated test-runner aut workspace right after and made some changes to the type file, the java files are generated correctly.
    So the problem now is, we're not sure what the test runner is doing differently with the RCPTT IDE in this case. It would seem like the test runner is preventing the AUT from generating the files or there might be an error that prevents the generation from happening.
    I've attached the results folder from the test runner execution and the log file from the from the runner-workspace folder.
    cheers!
    Joseph

    Hi Folks,
    We've found out the cause of the problem and have found out that this is not entirely RCPTT related. Apologies for the disturbance. Marking this as a non-issue.
    cheers!
    Joseph

  • Hyperlinks not working correctly when converting word doc to Web Page, Filtered

    I have created a word document (MS Word 2013) with Table of Contents and their links to particular sections and all the hyperlinks works fine in the word document. But when I convert this document into Web Page, Filtered then after a specific point
    the hyperlinks not pointing to their respective sections instead they are pointed to the end of the page.
    I have checked the page source of the HTML document and found that the table of contents have hyper links but the respective sections doesn't have the hyper link code and hence click on the a section didn't find the that section and go to the end
    of the document.
    I have tried to convert into PDF and hyperlinks worked fine.
    Please advise me how to resolve this issue.
    Thanks in advance
    Deepak

    Hi Deepak,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Approve/Post Journal works in 32-bit, but not the web Client?

    We have HFM 4.01 sp2 and sometimes when a user tries to approve/post a journal in the HFM Web Client they receive a security error (even though they have the post role and ALL access to the Entity), then they login to the 32-bit client and they can approve/post the same journal? Why?
    Thanks,
    Tom

    The user in question has all the security he needs. . . post journal role, ALL access to the scenario, entity, etc. or it wouldn't work in the 32-bit (windows) client either. I want to know why he received an error in the Web Client, but NOT the windows client?

  • IP - Issues with Input Query: Works on Bex analyzer but not on Web

    I am doing the following:
    Created a Aggregation level for a multi provider which has only real time infoproviders associated with it
    Created the query using Bex Query Designer availing all the options for planning
    When I execute this query it executes using a web template and does not open up the Key Figure cells for input, I had tried using the Web Application designer with Save button but still the same issue
    I tried the same on Bex analyzer and it works fine
    Please help to resolve the above issue.
    Thanks in advance.

    Hi Ram,
    Cells should be input enabled on the web just running the query. No need to create a Webtemplate, altough you need to have the webtemplate to be able to use the "save data" function.
    Maybe your query is not input ready at all, and you're misinterpreting analyzer layout.
    To test this, please enter some plan data in analyzer, right click and choose "save".
    Please check if data is written to the real time infoprovider.
    Hope this helps you.
    Regards,
    Miguel P.

  • Hyperlinks works fine in iweb, but not on web after upload to ftp

    I have set up hyperlinks in iweb, but they don't work in RockMelt, Firefox or Safari.  I'm using an ftp under the domain name of the website.  Any ideas on why this won't work?

    This covers the whole page...
    http://www.innerflamefilms.com/bio_files/shapeimage_3.png

  • Reading message from MQ- works in WSAD (IDE) but does not work outside WSAD

    Read from MQ:
    Same code works within WASD but does not work outside WSAD.

    PDL - thanks for the suggestions - here are the results:
    A button on the form that executes "this.print();" works fine.
    Changing "this" to "event.target" results in the same error.
    document.getElementById("PDFObj").Print(); works fine.
    However, the reason that I'm using ".postMessage([message])" instead of ".Print()" is because I actually have a toolbar that has save, print, zoom in, zoom out, page up, page down, etc.... I simplified the switch statement in the post above to only include print, but in reality has a case for each of the functions above. The postMessage call is triggering the error, since the catch statement is printing out the error message above. Any idea why this would work with Professional but not Reader.

  • Fillable PDF form works fine on computer but crashes on iPhone and iPad

    I created a fillable form in Acrobat 9 Pro. It works fine on PCs or Macs but the file crashes on iPad or iPhone in the mobile version of reader when someone tries to input something in one of the form fields.

    I find the same issue using both Acrobat Pro X and Acrobat Pro XI.
    What I found to be contributing factors are:
         1. programs running in the back ground
         See what is running in the background and stop what is not required.
         2. the overall size of the form (MB)
         under “File”, “Save As” there is an option to Reduce Size of PDF.
         I found this to help on some mobile devices.

  • FLV Will Work on Local Host But Not on Web

    Hello,
    I'm having trouble embedding a progressive download FLV into
    my html page using Dreamweaver 8. The code appears correct but
    there is nothing where the video should appear.
    This tested fine locally. Everything loaded fine. But when I
    published everything via FTP there the space where the FLV should
    be is blank.
    The page I am working with is :
    http://drewbuchanan.com/start.html
    The FLV file is located here:
    http://drewbuchanan.com/Promo.flv
    The FLV Progressive SWF is located here:
    http://drewbuchanan.com/FLVPlayer_Progressive.swf
    And the skin files are located here:
    http://drewbuchanan.com/Corona_Skin_2.swf
    Here is the .FLA file also:
    http://drewbuchanan.com/VisualsPromo.fla
    I have posted the code of just the Flash Video as it is in my
    site below.
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','widt h','700','height','420','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_Co mponentVersion=1&skinName=Corona_Skin_2&streamName=Promo&autoPlay=true&autoRewind=false',' quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://w ww.macromedia.com/go/getflashplayer','movie','FLVPlayer_Progressive'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="700" height="420" id="FLVPlayer">
    <param name="movie" value="FLVPlayer_Progressive.swf"
    />
    <param name="salign" value="lt" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="FlashVars"
    value="&MM_ComponentVersion=1&skinName=Corona_Skin_2&streamName=Promo&autoPlay=true&autoR ewind=false"
    />
    <embed src="FLVPlayer_Progressive.swf"
    flashvars="&MM_ComponentVersion=1&skinName=Corona_Skin_2&streamName=Promo&autoPlay=true&a utoRewind=false"
    quality="high" scale="noscale" width="700" height="420"
    name="FLVPlayer" salign="LT" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object></noscript>
    Can anyone help me out and tell me why this isn't working
    properly? Is it a server problem, user error?
    Thanks!

    Especially me!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "TC2112" <[email protected]> wrote in message
    news:[email protected]...
    >> You might want to set the video to Paused at start.
    Some people may
    >> not appreciate your music blaring out of their
    speakers during
    >> office hours :)
    >
    > ..or if their 2 year old is sleeping in the next room.
    >
    > For what it's worth, some people will click away from a
    site within a few
    > seconds of music automatically playing.
    >
    > Take care,
    > Tim
    >
    >
    > "Mark A. Boyd" <[email protected]>
    wrote in message
    >
    news:[email protected]...
    >> gatrfan posted in macromedia.dreamweaver
    >>
    >>> Hello,
    >>>
    >>> I'm having trouble embedding a progressive
    download FLV into my
    >>> html page
    >>> using Dreamweaver 8. The code appears correct
    but there is nothing
    >>> where the video should appear.
    >>> This tested fine locally. Everything loaded
    fine. But when I
    >>> published
    >>> everything via FTP there the space where the FLV
    should be is
    >>> blank.
    >>>
    >>>
    >>> The page I am working with is :
    >>>
    http://drewbuchanan.com/start.html
    >>
    >> The page works fine with JavaScript disabled. With
    JS enabled, no
    >> video. With LiveHTTP headers, I see that you
    apparently forgot to
    >> upload the Scripts folder and its contents,
    AC_RunActiveContent.js
    >> which contains the AC_FL_RunContent() function.
    >>
    >>
    >>
    http://drewbuchanan.com/Scripts/AC_RunActiveContent.js
    >> GET /Scripts/AC_RunActiveContent.js HTTP/1.1
    >> HTTP/1.x 404 Not Found
    >>
    >>
    >> Once you upload that folder and
    AC_RunActiveContent.js, JavaScript
    >> enabled browsers should show the video.
    >>
    >> [Side note]
    >> You might want to set the video to Paused at start.
    Some people may
    >> not appreciate your music blaring out of their
    speakers during
    >> office hours :)
    >>
    >>
    >> --
    >> Mark "404" Boyd
    >> Keep-On-Learnin' :)
    >
    >

  • MySQL : works in the IDE, but not when i launch the webapp

    Hello,
    when i setup a mysql connection, everything seems to be ok in the IDE, i can see my datasource, i can open my tables, see the content, etc. But when i click on the green arrow to deploying and testing my webapp, the server returns me a very long error page : javax.faces.FacesException: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: com.mysql.jdbc.Driver
    What should i do ?
    thanks.
    PS : the entire error page is here, http://gpglinux.free.fr/error.html

    Hello,
    Can you give me the full path to where you placed the mysql jar?
    I just installed 6.1 and it is confusing in its directory structure.
    Thanks
    Frank

  • Function module works correctly in debugger, but hangs otherwise.

    I am having an issue with a standard function module that 'hangs' when ran.  If i look in sm37, the calling job will just continuously run.  If i look in SM50, there aren't any sql statements which are bringing back large results, it seems to be running a large number of sequential reads against a certain table.  The odd thing is, if i break in this function module, then press F8 to continue, the function module successfully executes and the job finishes. 
    The function module in question is ISU_DUNNING_DEACT_INSTPL_0350, which i have attached to a dunning activity.  This function module SHOULD deactivate any active installment plans for the dunned account.  The FM is odd, as it calls another FM and does a hard EXIT, even though there is code below this line that it can never access. 
    If I set a breakpoint in the function module, and run FPVB (dunning transaction), it will break into the function module.  I can then press F8, the FM completes successfully, then the job completes.  If i do NOT break it (just run in background as normal), the job just continuously runs.  SM50 reveals reads to the BUT000 table (even though i cannot find any calls to this table in the fm).
    Any ideas?

    Nishikant,
    Thanks very much for the help. 
    I did this, and I can see where its getting stuck.  The following entries are repeated indefinitely (until i stop it )
          374 BUT000     FETCH       1      0
            3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
          420 BUT000     FETCH       1      0
            3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
          365 BUT000     FETCH       1      0
            3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
    If i double click the SQL statement, i see these details
    SQL Statement
      SELECT
        "CLIENT"
      FROM
        "BUT000"
      WHERE
    "CLIENT" = :A0 AND "PARTNER" = :A1
    Variable
    A0(CH,3)  = 120
    A1(CH,10) = 0007024125
    I caught it in SM50 where the read was, and it says the select exists in Function Pool SAPLBPT1.  I have done a search in this for anything containing BUT000, but have found nothing.  Any suggestions on how to find where this is occurring, or what might be going on?

Maybe you are looking for