WHat I'm sure is a simple problem but not for me...

Greetings all,
I am putting together a simple applet that accesses a MYSQL database, reads all the records out and writes them to the "graphic" screen via the paint method.
Everything works fine when I run the applet in a player (Eclipse) but when I move everything over to the web server, the html page (static part) displays but the applet fails with an error. The Java Console tells me the following:
java.lang.NoClassDefFoundError: jdbctest01$Database
     at jdbctest01.init(jdbctest01.java:41)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
The applet code it is referencing is:
40 ...
41 db = new Database(url, user, pass);
42 ...
and the "Database" method being invoked is:
public class Database {
public Database(String url, String user, String pass){
     try{
connection = DriverManager.getConnection(url, user, pass);
     catch(SQLException e) {
As I said, nothing to it...but I can't figure out why its not working (but I am sure its obvious). I have tried it on IE & Firefox; same result. Both have java enabled, the class file and the html files all have open permissions (machine is not on the net) so I doubt anything as simple as security is at work. I have been staring at this for a while and I am losing feeling to my lower extremities. I hope someone out there can offer some ideas as to what I should be checking for or what else to do diagnostic wise.
Many thanks,
Pete

Axel,
Many thanks for the lead (Incidentally, it's not my code; they use it for "education" (of who I'm not sure) and they just discovered there are no compiled copies anywhere so, no examples, screen shots etc.). I "volunteered" to try and get it working and...
Anyway, I added the jdbctest01$Database.class and I got "different" results. Now, it gets into the database class and when it executes the connection = DriverManager.getConnection(url, user, pass); it returns a SQLException error. I have confirmed that the url, user and pass values ARE correct so I am not sure where this error is coming from. The "connection" value is typed Connection. There really isn't anything else that I can see could be wrong. One other thing; the exception is caught in the Database instance but it still manages to return to the statement following the invocation of the Database class. The connection value it returns looks like it might be right (the returned value is: jdbctest01$Database@adb1d4 which I think is "like" it should be but no luck). The first statement on return is: stmt = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); and stmt is typed Statement) And at this point,it dies with a null pointer error.
Any other ideas will be greatly appreciated.
Thanks,
Pete

Similar Messages

  • A simple problem  but complicated for me........

    import java.awt.*;
    import java.applet.*;
    /*<applet code="First" width=100 height=100>
    </applet>*/
    public class First extends Applet {
    /*public void init()
         public void paint(Graphics g)
              setBackground(Color.black);
    setForeground(Color.green);
    g.drawString("annn",1,10);
    g.setColor(Color.red);
    g.drawString("annn",10,20);
    setForeground(Color.orange);
    g.drawString("annn",1,30);
    The problem is that when i run the above applet the output keeps fluctuating as if the paint method is being called again and again..
    why is the same text being painted again and again.......

    It's an issue of double buffering, it sounds like... (flickering?)
    See:
    [http://javaboutique.internet.com/tutorials/Step/Chapter4/DoubleBuffering.html]
    You can probably most easily solve this by using swing instead of awt. Use JApplet, JPanels, etc. from javax.swing
    import javax.swing.*;
    /*<applet code="First" width=100 height=100>
    </applet>*/
    public class First extends JApplet {
    /*public void init()
    public void paint(Graphics g)
    setBackground(Color.black);
    setForeground(Color.green);
    g.drawString("annn",1,10);
    g.setColor(Color.red);
    g.drawString("annn",10,20);
    setForeground(Color.orange);
    g.drawString("annn",1,30);
    }Edited by: MichaelDGagnon on Dec 16, 2008 12:55 PM

  • Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Well then maybe you could take a screenshot because the appearance of such a window is news to me.
    Also post your OS X version and what model Mac you have. The more detail, the better. Thanks.
    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse or trackpad. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • My phone is not showing up in itunes.  I want to sync it.  I have a MAC and I have restarted the phone, it's charged, I have the most current version of itunes.  What do I do now?  It says to reinstall itunes if you have windows but not for mac.  Help!

    My phone is not showing up in itunes.  I want to sync it.  I have a MAC and I have restarted the phone, it's charged, I have the most current version of itunes.  What do I do now?  It says to reinstall itunes if you have windows but not for mac.  Help!

    With your phone plugged in, open Image Capture and see if the iPhone shows up.  If not, you are having a sync problem.  If it shows up in Image Capture, but not iTunes, I'd delete iTunes and reinstall it.

  • What is difference between Shared ,Exclusive and Exclusive but not commulat

    what is difference between Shared ,Exclusive and Exclusive but not commulative lock modes plese tell me

    Lock objects are used to synchronize access to the same data by more than one program.
    The lock mode controls whether several users can access data records at the same time. The lock mode can be assigned separately for each table in the lock object. When the lock is set, the corresponding lock entry is stored in the lock table of the system for each table.
    There are three types of lock modes
    1.Exclusive
    2.Shared
    3.Exclusive not cummulative
    Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected.
    Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected.
    Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.
    please go through these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/3547360f2ea61fe10000009b38f839/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eeb2446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eed9446011d189700000e8322d00/frameset.htm
    briefly :
    You can lock the table or record by using following types of locking:
    1) Exclusive (E) the locked data can only be displayed or modified by single user i.e the owner of the object. Access to other users is denied.
    2) Shared (S) several users can access the same record simultaneously, but only in display mode and except the first one, who has asked for the data in update mode.
    3) Exclusive not cumulating (X) it is similar to exclusive lock. It allows only a single user access. E can be called several times from the same transaction. In contrast, a lock type X can be called only once during the transaction. Any other call for this lock is rejected.
    Activation of Lock Object
    1) When you activate the lock object, the functions are automatically generated. And these are ENQUEUE-EZN and DEQUEUE-EZN. EZN is name of the lock object.
    2) While ENQUEUE is used in program to set the code over the selected data depending upon the lock object arguments. DEQUEUE is used to release the lock.
    Thanks
    Seshu

  • The message cannot be seen on incoming emails.  I can only view the message if I click on reply.  Also any links attached to email will not open.  I have tried everything to solve the problem but not able to.

    A message cannot be seen on my incoming emails.  I can only view the message if I click on reply.  Also any links attached to email will not open.  I have tried everything to solve the problem but not able to.

    Try closing the Mail app completely and see if it works properly when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I can't download videos to Real Player. The settings are correct and i can download in Internet Explorer 7 with no problem but not FireFox 5...any ideas??

    I can't download videos to Real Player. The settings are correct and i can download in Internet Explorer 7 with no problem but not FireFox 5...any ideas??

    I'm still experiencing this problem.  I went to settings, general, software and it says Install now.  But when I try, I get an error message. 

  • What do you do when ipod is detected but not identified?

    What do you do when ipod is detected but not identified?

    Hi there schnee2,
    You may find the troubleshooting steps in the article below helpful.
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    -Griff W. 

  • Home sharing is working fine for musics and videos but not for apps. What is wrong?

    Home sharing is working fine for musics and videos but not for apps. What is wrong?

    i had the same issue as everyone here after upgrading to itunes 10.x.  vista could see xp home share.  ipod touch could see xp home share.
    neither could see vista home share.
    after several hours of authorizing de-authorizing, rebooting router etc, i knew it had to be a firewall thingy with vista as xp was working fine
    i went to this article http://support.apple.com/kb/ht2553 and followed the instructions.  itunes was already in my vista exception list.  on a hunch i deleted the itunes exception and followed the steps to add it again and boom it worked!! i could now see my vista machine from my ipod touch immediately.
    something must have screwed up the firewall exception on the upgrade to itunes 10.x
    it worked for me, i hope this helps others

  • Issues with duplicate IDs - maybe a MyFaces problem but not sure

    I've been having a heap of trouble getting the DataScroller object working. It simply refuses to allow me to have facets. It works perfectly fine in the examples but not in my page. I'd really appreciate it if anyone can help me out. This thing has been bothering me for days.
    I'm new to JSF so any other hints about how I should write it would be nice for future reference. You know, things like "you should make sure these tags are before these ones" and that.
    The code that causes the error (messages.jsp):
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <f:view>
    <HTML>
    <HEAD><TITLE>Some thing</TITLE>
    <BODY>
    <CENTER>
        <h:panelGroup id="group">
            <h:panelGrid columns="1" id="grid">
            <t:dataTable id="messagedata"
                    var="message"
                    value="#{listMessage.messages}"
                    rows="10">
               <t:column>
                   <f:facet name="header">
                <h:outputText value="Time Transferred" />
                   </f:facet>
                   <h:outputText value="#{message.timeTransferred}" />
               </t:column>
               <t:column>
                   <f:facet name="header">
                <h:outputText value="Purpose" />
                   </f:facet>
                   <h:outputText value="#{message.actionPerformed}" />
               </t:column>
            </t:dataTable>
                <t:dataScroller id="scrollnice"
                        for="messagedata"
                        fastStep="10"
                        pageCountVar="pageCount"
                        pageIndexVar="pageIndex"
                        paginator="true"
                        paginatorMaxPages="9"
                        paginatorActiveColumnStyle="font-weight:bold;">
                    <f:facet name="first" >
                        <t:graphicImage id="theproblem" url="images/arrow-first.gif" border="1" />
                    </f:facet>
                </t:dataScroller>
            </h:panelGrid>
        </h:panelGroup>
    </CENTER>
    </BODY>
    </HTML>
    </f:view>and the error page:
    exception
    javax.servlet.ServletException: Client-id : theproblem is duplicated in the faces tree.
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
         org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
    root cause
    java.lang.IllegalStateException: Client-id : theproblem is duplicated in the faces tree.
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:241)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:204)
         org.apache.myfaces.taglib.core.ViewTag.doEndTag(ViewTag.java:122)
         org.apache.jsp.messages_jsp._jspx_meth_f_view_0(org.apache.jsp.messages_jsp:132)
         org.apache.jsp.messages_jsp._jspService(org.apache.jsp.messages_jsp:81)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
         org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
         org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
         org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)Thanks in advance for any help.

    Emilio Corsetti wrote:
    Ben,
    That was the problem. The link is live now and you can see the poorly positioned spry menu in all its glory.
    Thanks,
    Emilio
    http://www.emiliocorsetti.com/publish/two_column.html
    You don't say what you want to change.
    If I were styling your menu I would have it vertically centered in the grey background. By adding the red coloured rule found in layout.css
    #menu (line  61)
    background-image:  url("../Images/Layout/nav_bg.jpg");
    background-repeat: repeat-x;
    background-position:  left top;
    width: 960px;
    height: 40px;
    padding-top: 10px; // or whatever suits
    I would also like to have the menu items spread evenly across the page by applying the style rule found in SpryMenuBarHorizontal.css
    ul.MenuBarHorizontal li
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         position: relative;
         cursor: pointer;
         width: 20%; // 5 items X 20% = 100%
         float: left;
    You may have to fiddle a bit more after this to get it exactly the way you want. Just start a new topic because this one has already been answered.
    Happy Sprying.
    Ben

  • Problem:  I have to run repair permissions to access the internet using safari, firefox or chrome on my mac pro.  What can I do to fix the problem once and for all?

    This is what I get when I run repair permissions in disk utility. Thanks for any assistance you can give.
    Repairing permissions for “Macintosh HD”
    Repairing permissions for “Macintosh HD”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pl.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pl.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pl.lproj/MainMenu.nib”
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pl.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pt_PT.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pt_PT.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pt_PT.lproj/MainMenu.nib”
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pt_PT.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pt.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pt.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pt.lproj/MainMenu.nib”
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/pt.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/sv.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/sv.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/sv.lproj/MainMenu.nib”
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/sv.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/ru.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/ru.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/ru.lproj/MainMenu.nib”
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/ru.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/no.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/no.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/no.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/no.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/fi.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/fi.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/fi.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/fi.lproj/MainMenu.nib”
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/da.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Permissions differ on “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/da.lproj/MainMenu.nib”; should be -rw-r--r-- ; they are drw-r--r-- .
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/da.lproj/MainMenu.nib”
    Repaired “System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Su pport/LockScreenLeopard386.app/Contents/Resources/da.lproj/MainMenu.nib”
    Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.
    Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.
    ACL found but not expected on “private/var/db/launchd.db/com.apple.launchd”
    ACL found but not expected on “private/var/db/launchd.db/com.apple.launchd”
    Repaired “private/var/db/launchd.db/com.apple.launchd”
    Repaired “private/var/db/launchd.db/com.apple.launchd”
    Permissions repair complete
    Permissions repair complete

    Would you care to tell us which version of Mac Pro, and which version of OS X, you are running?  (It's not always safe to assume that a User is running Lion just because he posted in the Lion Forum.)

  • Firefox Hanging Problem, but not actually hanging [Security Issue?]

    Reposting from a reply I made on another thread so that this might get more attention for people:
    So I've been having this problem for the past couple days, after I installed the 4.0 Beta 12, but not immediately. I resorted to using IE8 until I could troubleshoot. Today I uninstalled and reinstalled, initially keeping my customizations, then again without. Upon installing the new RC I imemdiately had the same problem.
    For me what goes wrong is Firefox will open correctly and begin to load a page or pages, and about 15 seconds in, usually after all loading is done, it will seemingly freeze, or hang rather. Seemingly completely unresponsive.
    Here is the aha moment: I became fed up with this and was just trying to get to the troubleshooter's containing file or whatever, [so that I could delete the session restore javascripts, like the support page says to try for hangs]. It hang right before I was able to open the containing folder. Instead of trying to fix it or wait I immediately alt-f4ed it. But firefox remained, and to my surprise, it worked completely fine. Normally, when its hanging, any click on the window will just make a windows BING sound and be compeltely unresponsive. After attempted to close firefox, it actually worked fine.
    This leads me to believe there is some masking window that makes firefox appear to be hanging, but in reality its working totally fine.
    I've attempted to unmask this by dregding through process explorer, but so far to no avail. I'm no expert, but I figured if this board hasn't realized this yet someone can figure it out from here far better than I can.
    Let me know when you figure it out to so I stop using IE. Even though Firefox functions after I alt-f4 the "mask", I don't know if the 'mask' is harming my system or giving me malware or what so I'd rather not fuck with it.

    Run the Firefox program once as Administrator (right-click: Run as Administrator).<br />
    If that doesn't help then do a clean reinstall.
    Do a clean (re)install:
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data if you uninstall the current version.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.

  • My computer keeps restarting from a problem but not listed

    My computer keeps stalling and automatically restarting. It says there a problem and it will restart. I don't know what the problem is, but it's happening often. I'm running Norton on it again. Has anyone had similar issues?

    Mac users often ask whether they should install "anti-virus" (AV) software. The usual answer is "no." That answer is right, but it may give the wrong impression that there is no threat from what are loosely called "viruses." There is a threat, and you need to educate yourself about it.
    1. This is a comment on what you should—and should not—do to protect yourself from malicious software ("malware") that circulates on the Internet and gets onto a computer as an unintended consequence of the user's actions.
    It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the computer, or who has been able to take control of it remotely. That threat is in a different category, and there's no easy way to defend against it. AV software is not intended to, and does not, defend against such attacks.
    The comment is long because the issue is complex. The key points are in sections 5, 6, and 10.
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user. Internally Apple calls it "XProtect."
    The malware recognition database used by XProtect is automatically updated; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    ☞ It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    ☞ It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    As new versions of OS X are released, it's not clear whether Apple will indefinitely continue to maintain the XProtect database of older versions such as 10.6. The security of obsolete system versions may eventually be degraded. Security updates to the code of obsolete systems will stop being released at some point, and that may leave them open to other kinds of attack besides malware.
    3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't been checked for security by Apple unless it comes from the App Store, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    ☞ It can easily be disabled or overridden by the user.
    ☞ A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.
    ☞ An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.
    Apple has taken far too long to revoke the codesigning certificates of some known abusers, thereby diluting the value of Gatekeeper and the Developer ID program. Those lapses don't involve App Store products, however.
    For the reasons given, App Store products, and—to a lesser extent—other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. Sandbox security is based on user input. Never click through any request for authorization without thinking.
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is effective against known threats, but not against unknown ones. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
    5. The built-in security features of OS X reduce the risk of malware attack, but they are not, and never will be, complete protection. Malware is a problem of human behavior, not machine behavior, and no technological fix alone is going to solve it. Trusting software to protect you will only make you more vulnerable.
    The best defense is always going to be your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "Trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and Internet criminals. If you're better informed than they think you are, you'll win. That means, in practice, that you always stay within a safe harbor of computing practices. How do you know when you're leaving the safe harbor? Below are some warning signs of danger.
    Software from an untrustworthy source
    ☞ Software with a corporate brand, such as Adobe Flash Player, doesn't come directly from the developer’s website. Do not trust an alert from any website to update Flash, or your browser, or any other software. A genuine alert that Flash is outdated and blocked is shown on this support page. Follow the instructions on the support page in that case. Otherwise, assume that the alert is fake and someone is trying to scam you into installing malware. If you see such alerts on more than one website, ask for instructions.
    ☞ Software of any kind is distributed via BitTorrent, or Usenet, or on a website that also distributes pirated music or movies.
    ☞ Rogue websites such as Softonic, Soft32, and CNET Download distribute free applications that have been packaged in a superfluous "installer."
    ☞ The software is advertised by means of spam or intrusive web ads. Any ad, on any site, that includes a direct link to a download should be ignored.
    Software that is plainly illegal or does something illegal
    ☞ High-priced commercial software such as Photoshop is "cracked" or "free."
    ☞ An application helps you to infringe copyright, for instance by circumventing the copy protection on commercial software, or saving streamed media for reuse without permission. All "YouTube downloaders" are in this category, though not all are necessarily malicious.
    Conditional or unsolicited offers from strangers
    ☞ A telephone caller or a web page tells you that you have a “virus” and offers to help you remove it. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    ☞ A web site offers free content such as video or music, but to use it you must install a “codec,” “plug-in,” "player," "downloader," "extractor," or “certificate” that comes from that same site, or an unknown one.
    ☞ You win a prize in a contest you never entered.
    ☞ Someone on a message board such as this one is eager to help you, but only if you download an application of his choosing.
    ☞ A "FREE WI-FI !!!" network advertises itself in a public place such as an airport, but is not provided by the management.
    ☞ Anything online that you would expect to pay for is "free."
    Unexpected events
    ☞ A file is downloaded automatically when you visit a web page, with no other action on your part. Delete any such file without opening it.
    ☞ You open what you think is a document and get an alert that it's "an application downloaded from the Internet." Click Cancel and delete the file. Even if you don't get the alert, you should still delete any file that isn't what you expected it to be.
    ☞ An application does something you don't expect, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.
    ☞ Software is attached to email that you didn't request, even if it comes (or seems to come) from someone you trust.
    I don't say that leaving the safe harbor just once will necessarily result in disaster, but making a habit of it will weaken your defenses against malware attack. Any of the above scenarios should, at the very least, make you uncomfortable.
    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it—not JavaScript—in your browsers.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a padlock icon in the address bar when visiting a secure site.
    Stay within the safe harbor, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself.
    7. Never install any commercial AV or "Internet security" products for the Mac, as they are all worse than useless. If you need to be able to detect Windows malware in your files, use one of the free security apps in the Mac App Store—nothing else.
    Why shouldn't you use commercial AV products?
    ☞ To recognize malware, the software depends on a database of known threats, which is always at least a day out of date. This technique is a proven failure, as a major AV software vendor has admitted. Most attacks are "zero-day"—that is, previously unknown. Recognition-based AV does not defend against such attacks, and the enterprise IT industry is coming to the realization that traditional AV software is worthless.
    ☞ Its design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere. In order to meet that nonexistent threat, commercial AV software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    ☞ By modifying the operating system, the software may also create weaknesses that could be exploited by malware attackers.
    ☞ Most importantly, a false sense of security is dangerous.
    8. An AV product from the App Store, such as "ClamXav," has the same drawback as the commercial suites of being always out of date, but it does not inject low-level code into the operating system. That doesn't mean it's entirely harmless. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
    An AV app is not needed, and cannot be relied upon, for protection against OS X malware. It's useful, if at all, only for detecting Windows malware, and even for that use it's not really effective, because new Windows malware is emerging much faster than OS X malware.
    Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else. A malicious attachment in email is usually easy to recognize by the name alone. An actual example:
    London Terror Moovie.avi [124 spaces] Checked By Norton Antivirus.exe
    You don't need software to tell you that's a Windows trojan. Software may be able to tell you which trojan it is, but who cares? In practice, there's no reason to use recognition software unless an organizational policy requires it. Windows malware is so widespread that you should assume it's in every email attachment until proven otherwise. Nevertheless, ClamXav or a similar product from the App Store may serve a purpose if it satisfies an ill-informed network administrator who says you must run some kind of AV application. It's free and it won't handicap the system.
    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have all the disadvantages mentioned in section 7.
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.
    10. As a Mac user, you don't have to live in fear that your computer may be infected every time you install software, read email, or visit a web page. But neither can you assume that you will always be safe from exploitation, no matter what you do. Navigating the Internet is like walking the streets of a big city. It can be as safe or as dangerous as you choose to make it. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. Nothing can lessen the need for safe computing practices.

  • SFTP/FTP Proxy Problems - Works for DMZ but not for Internet Hosts?!

    Hi together,
    we have a strange problem with our TMG Proxy, some infrastructure informations first
    So we have the Client LAN with the IP range 192.168.11.x which is routeable to Server LAN 192.168.3.x but not to DMZ LAN 192.168.200.x.. The TMG is a 2 Node Array, 192.168.200.5 is the DMZ VIP. TMG DMZ IP Adress (192.168.200.5) and physical Adresses have
    an NAT relation to one Public IP. HTTPS Inspection is active. We dont use (and dont want to) the TMG Client component.
    When i use WinSCP, Putty or Filezilla and connect to a DMZ LAN Host (192.168.200.x) with "HTTP Proxy" (192.168.3.108:8080) everything is fine, it works like expected...
    When i connect to an Internet Host it fails regardless which protocol i use - ftp, sftp or ssh. The error i get is
    "The token supplied to the function is invalid."
    An example for a failed SFTP Connection
    Filezilla
    Status: Connecting to system.internet.de...
    Trace: Going to execute "C:\Program Files (x86)\FileZilla FTP Client\fzsftp.exe"
    Response: fzSftp started
    Trace: CSftpControlSocket::ConnectParseResponse(fzSftp started)
    Trace: CSftpControlSocket::SendNextCommand()
    Trace: CSftpControlSocket::ConnectSend()
    Command: proxy 1 "tmg.local" 8080 "domain\user" "***********"
    Trace: CSftpControlSocket::ConnectParseResponse()
    Trace: CSftpControlSocket::SendNextCommand()
    Trace: CSftpControlSocket::ConnectSend()
    Command: open "[email protected]" 22
    Trace: Looking up host "system.internet.de"
    Trace: Connecting to 192.168.3.108 port 8080
    Trace: Proxy error: 502 Proxy Error ( Das Token, das der Funktion übergeben wurde, ist ungültig.  )
    Error: Proxy error: 502 Proxy Error ( Das Token, das der Funktion übergeben wurde, ist ungültig.  )
    Trace: CControlSocket::DoClose(64)
    Trace: CSftpControlSocket::ResetOperation(66)
    Trace: CControlSocket::ResetOperation(66)
    Error: Could not connect to server
    Trace: CFileZillaEnginePrivate::ResetOperation(66)
    TMG protocol throws this
    Protokolltyp: Webproxy (Forward)
    Status: 0x80090308 
    Regel: Webzugriff FTP Test
    Quelle: Intern (192.168.11.31:44673)
    Ziel: Extern (78.46.182.171:22)
    Anforderung: system.internet.de:22
    Filterinformationen: Req ID: 106f1cb7; Compression: client=No, server=No, compress rate=0% decompress rate=0%
    Protokoll: https-inspect
    Benutzer: domain\user
    Hope you can explain me what we doin wrong or how to find out whats the problem. I didn`t find many informations about "0x80090308" or "The token supplied to the function is invalid.". Disabling HTTPS Inspection for the Source 192.168.11.31
    doesnt change anything...
    Connection to an DMZ Host looks like this:
    Filezilla
    Status: Connecting to system.dmz...
    Trace: Going to execute "C:\Program Files (x86)\FileZilla FTP Client\fzsftp.exe"
    Response: fzSftp started
    Trace: CSftpControlSocket::ConnectParseResponse(fzSftp started)
    Trace: CSftpControlSocket::SendNextCommand()
    Trace: CSftpControlSocket::ConnectSend()
    Command: proxy 1 "tmg.local" 8080 "domain\user" "***********"
    Trace: CSftpControlSocket::ConnectParseResponse()
    Trace: CSftpControlSocket::SendNextCommand()
    Trace: CSftpControlSocket::ConnectSend()
    Command: open "[email protected]" 22
    Trace: Looking up host "system.dmz"
    Trace: Connecting to 192.168.3.108 port 8080
    Trace: Server version: SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
    Trace: Using SSH protocol version 2
    Trace: We claim version: SSH-2.0-PuTTY_Local:_Mar_28_2014_10:34:48
    Trace: Doing Diffie-Hellman group exchange
    Trace: Doing Diffie-Hellman key exchange with hash SHA-256
    Trace: Host key fingerprint is:
    TMG Protocol
    Protokolltyp: Webproxy (Forward)
    Status: 0 Der Vorgang wurde erfolgreich beendet. 
    Regel: Webzugriff FTP Test
    Quelle: Intern (192.168.11.31:48818)
    Ziel: Umkreis 2 (192.168.200.205:22)
    Anforderung: system.dmz:22
    Filterinformationen: Req ID: 10727dce; Compression: client=No, server=No, compress rate=0% decompress rate=0%
    Protokoll: SSL-tunnel
    Benutzer: domain\user
    Thanks in advance.
    Regards
    Matthias

    Hi Keith,
    ok i found out the problem is https inspection is enabled....
    - when i disable https inspection for source, same problem
    - when i disable https inspection for destination, problem solved
    the root cause why this worked is we had https inspection disabled for dmz destinations.
    there is no direct route relation between the lan and dmz.
    why is source exception not working in this?

  • What's the best way to erase content but not the applications?

    I'm giving away my iMac to my niece. I want to erase all my  content files, libraries ,etc., but not the applications. What's the best way to do this, and to do it securely?

    If you have Downloaded and Upgraded to Lion See...
    Here is an excerpt of the SLA; the Lion license (purchased from MAS) is NOT transferable. The SLA is quite clear:
    B. If you obtained your license to the Apple Software from the Mac App Store or on Apple-branded physical media, it is not transferable. If you sell your Apple-branded hardware to athird party, you must remove the Apple Software from the Apple-branded hardware beforedoing so, and you may restore your system to the version of the Apple operating systemsoftware that originally came with your Apple hardware (the “Original Apple OS”) andpermanently transfer the Original Apple OS together with your Apple hardware, provided that:(i) the transfer must include all of the Original Apple OS, including all its component parts,printed materials and its license; (ii) you do not retain any copies of the Original Apple OS, fullor partial, including copies stored on a computer or other storage device; and (iii) the partyreceiving the Original Apple OS reads and agrees to accept the terms and conditions of theOriginal Apple OS license.
    Now Proceed...
    Boot from the original OS installer disk and do an Erase & Install.
    When the Mac reboots into Mac Setup Assistant Quit and shut it down.
    When the New Owner Boots it up it's a brand new Mac... just like when you got it.
    ( The Original Install Disc(s) should also be included with the sale )
    http://www.ehow.com/how_5852122_restore-imac-factory-settings.html

Maybe you are looking for

  • I entered someone in my contacts but they do not show up in my list.

    They do show up when they call and text me. I cannot access the contact from my list even when I search for them and have turned on the function to show contacts from all sources. When I type in the number manually their name shows up. Since I cannot

  • How can i print specific pages against searched word or name (in one print command) from 1000 pages

    how can i print specific pages against searched word or name (in one print command) from 1000 pages

  • Old email dissapeared in Inbox

    This morning all my past emails in my Inbox had disappeared. I can view all these messages on my computer but all I had this morning was a blank screen with no emails in the Inbox. I'm receiving messages fine today but the feature of the 50 past emai

  • Dynamic Tabs Layout

    Hello, I'm using the latest version of JHeadstart (11.1.1.3.35). I have selected Dynamic Tabs layout and everything works fine except that the home page still shows all the groups as a tab in home page. If I click on any of them it will go to the tre

  • Where does a site get saved?

    Hi. When we save a site on iWeb where does it exactly save them? this is one feature I wished iWeb would include in its Preferences settings so that we could at least find it easily or choose where we would prefer to save the site. Thanks for your co