Debugging a sourcecode that uses Antenna's "preprocessing" feature.

I wonder if there's a way to use Eclipse(or any other IDEs) to debug(stepping through, set breakpoints, etc.) a code that look something like this:
//#ifdef conditionA
public class Screen implements Runnable
//#else
public class Screen implements Runnable, CommandListener
I tried searching Eclipse's documentation for "preprocess" but found nothing.
Thanks in advance!
Message was edited by:
Kakyoin

Several days passed but still 0 reply.
I'll assume that currently it's impossible to do the mentioned debugging then. ^_^;

Similar Messages

  • Debugging pl/sql that uses htp calls

    I'm trying to run debug against a procedure that has htp calls in it but whenever I hit a htp.xxx call I get
    $Oracle.EXCEPTION_ORA_6502:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.HTP", line 1368
    ORA-06512: at "SYS.HTP", line 1443
    ORA-06512: at "LUMWEB.DOHTP", line 3
    ORA-06512: at line 2
    Is there something that needs to be done to make this work? I'm able to debug the same procedure using pl/sql developer.

    Repost --> Can anybody help?

  • I have problem since I download fire fox 4 it does'nt remember my windows live ID only the last one with are 4 different people that use the computer

    Question
    I have problem since I download fire fox 4 it doesn't remember my windows live ID, only the last one with are 4 different people that use the computer

    Such a feature is stored in a cookie. Firefox only keeps one set of cookies for all open tabs. So only the last user is remembered.
    You can look this extension if you want to sign on with different identities at the same time:
    * Multifox: http://br.mozdev.org/multifox/ (for Firefox 4 use this link: Firefox 4? Try Multifox 2 Beta 1!)

  • I have a Mac Book and purchased a Bose system that uses an antenna to play music from the the laptop - it works great, but the computer times out and shuts down - Help

    have a Mac Book and purchased a Bose system that uses an antenna to play music from the the laptop - it works great, but the computer times out and shuts down - Help

    Check in "System Preferences">"Energy Saver" to see if you have the "Computer Sleep" bar set too low.

  • How can I make an ant file that launches an AS project app in a debug flash player that traces to the flex console?

    How can I make an ant file that launches an AS project app in a debug flash player that traces to the flex console?
    Basically I like the control over the compiling process that I get by using Ant - but I really want traces to come up immediately without having to switch contexts.
    I have an ant file that successfully launches a swf in the flashplayer - but I don't know how to make the flex console start displaying the trace output. I assume that I will have to point it to the appropriate trace output file - but I am not sure how to have ant even address the console.  Is this possible?
    Here is the the target node from my ANT file:
        <target name="launch">
            <exec executable="${FLASHPLAYER_EXE}" errorproperty="trace.output">
                <arg line="'${DEPLOY_DIR}\test.swf'" />
            </exec>
        </target>
    Thanks for any thoughts, or alternatives!

    For the record, I ended up using Logwatcher - it worked perfectly.
    http://graysky.sourceforge.net/

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • What is the max file limit for FTP adapter that uses FileIoInteractionSpec

    Hi,
    I know that Oracle provided some new features in 10.1.3.4 using which we can use the file and ftp adapter to move files in a more efficient way
    http://download.oracle.com/docs/cd/E12524_01/relnotes.1013/e12523/adapters.htm#CHDGFAAB
    Essentially it involves modifying the WSDL to use the new InteractionSpec="oracle.tip.adapter.file.outbound.FileIoInteractionSpec"
    Now my question is, what is the file size limit which can be transferred using this.
    I have tried with 20 mb file, it works. But I want to know the upper limit.
    Thanks,
    Amit

    Tried with 31 mb file.
    It successfully delivers the file but....
    The instance never completes successfully in the BPEL Console. If I open the audit tab, it shows the following message
    There is a system exception while performing the BPEL instance, the reason is "JTA transaction is not present or the transaction is not in active state. The current JTA transaction is not present or it is not in active state when processing activity or instance "7,200,001". The reason is The execution of this instance "7200001" for process "TestFTPLimit" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information.. Please consult your administrator regarding this error. ". Please check the error log file for more infromation. Please try to use bpel fault handlers to catch the faults in your bpel process. If this is a system exception, please report this to your system administrator. Administrator could perform manual recovery of the instance from last non-idempotent activity or dehydration point.less
    ORABPEL-02182
    JTA transaction is not present or the transaction is not in active state.
    The current JTA transaction is not present or it is not in active state when processing activity or instance "7,200,001". The reason is The execution of this instance "7200001" for process "TestFTPLimit" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
    Please consult your administrator regarding this error.
         at com.collaxa.cube.engine.CubeEngine.store(CubeEngine.java:5514)
    So does anybody know how to get over this.
    I understand that sync read is a sync operation, so obviously it was going to timeout, as this transfer took around 4 minutes for me. But then, isnt this a bug from Oracle's side

  • Using Antenna Booster on AEBS

    I have the AEBS model just before this new one just released. So, it's not the "N" one. It is relatively new (within a year). I was looking at getting a QuickerTek Antenna power booster for the AEBS which boosts the wattage up to ten times the amount of the AEBS. The product explanation says "This product is designed especially for Apple's Airport Extreme wireless systems and allows the maximum power output allowed by the FCC. Apple wireless products have an RF output of 30mW; while our Transceiver pumps out 500mW."
    Supposedly that's supposed to go 1/2 miles - line of sight. So, I was figuring that for my house and yard, I wouldn't have to use any other extenders to boost the signal around my place -- but simply use this one device for boosting the signal all over the place.
    The question is -- has anyone used them and how does it work with the AEBS (i.e., work nicely with it, or perhaps stress it and shorten the life, or whatever?). And does it really extend the range that far?
    And any other considerations?
    Anyway, anyone have any answers? Thanks...
    iBook G4 1.42 GHz & iMac G4 Flat Panel 800 MHz   Mac OS X (10.4.8)  

    Over the years the posts from people using an
    external antenna have provided mixed results. Some
    report improvement but just as many report
    disappointment. I think it depends highly on your
    exact scenario and you won't know the results until
    you try.
    Okay, thanks for recounting the previous experiences here, since I haven't kept up on that topic. However, if anyone else wants to comment from their experience, please do so.
    And also (to anyone else), please note that this antenna boosts the power to 500 mW. I might be somewhat doubtful of good results with simply an antenna and no power boost but with a power boost of over ten times the original power of the AEBS, I would hope that would have some very significant effect. I was hoping that someone has experience with the "power boosting" part of this equation. Anyone...?
    iBook G4 1.42 GHz & iMac G4 Flat Panel 800 MHz   Mac OS X (10.4.8)  

  • Hidden Report Viewer Confiugration Error on aspx pages that use report viewer web control

    I try to fix the problem. The error below is embedded on aspx pages that use report viewer web control. Please note that the div element is hidden, and the reportviewer is displaying correct contents.
    Div element hidden on aspx page
    <div id="ReportViewer1_HttpHandlerMissingErrorMessage" style="border-color:Red;border-width:2px;border-style:Solid;padding:10px;display:none;font-size:.85em;">
    <h2>
    Report Viewer Configuration Error
    </h2><p>The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add &lt;add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt; to the system.web/httpHandlers section of the web.config file, or add &lt;add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt; to the system.webServer/handlers section for Internet Information Services 7 or later.</p>
    </div>
    I tried adding the two elements to web.config, but to no avail.
    Add below to system.web/httpHandlers
    <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    or add below to system.webServer/handlers for Internet Information Services 7 or later.
    <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    The required assemblies below are installed under C:\Windows\assembly folder. I have installed both Microsoft ReportViewer 2010 Redistributable, and 2008 SP1.
    Microsoft.ReportViewer.WebForms, version 10
    Microsoft.ReportViewer.Common, version 10
    Below is the whole web.config:
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    -->
    <configuration>
    <connectionStrings>
    <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
    </connectionStrings>
    <appSettings>
    <add key="car" value="myCar" />
    <!--<add key="ReportViewerServerConnection" value="WebForm.Lab.ReportConnection, WebForm" />-->
    </appSettings>
    <system.web>
    <httpHandlers>
    <add verb = "*" path = "Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <!--<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />-->
    </httpHandlers>
    <compilation debug="true" targetFramework="4.0">
    <assemblies>
    <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    </assemblies>
    <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </buildProviders>
    </compilation>
    <authentication mode="Forms">
    <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>
    <membership>
    <providers>
    <clear />
    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
    </providers>
    </membership>
    <profile>
    <providers>
    <clear />
    <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
    </providers>
    </profile>
    <roleManager enabled="false">
    <providers>
    <clear />
    <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
    <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
    </providers>
    </roleManager>
    <pages>
    <controls>
    <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
    </controls>
    </pages>
    </system.web>
    <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
    <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </handlers>
    <httpProtocol>
    <customHeaders>
    <remove name="X-Powered-By" />
    </customHeaders>
    </httpProtocol>
    </system.webServer>
    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <binding name="WebService1Soap" />
    </basicHttpBinding>
    </bindings>
    <client>
    <endpoint address="http://localhost:58269/WebService1.asmx" binding="basicHttpBinding"
    bindingConfiguration="WebService1Soap" contract="ServiceReference1.WebService1Soap"
    name="WebService1Soap" />
    </client>
    </system.serviceModel>
    </configuration>
    Any idea?
    Update:
    IIS is7.5, AppPool is Integrated.
    I have tried below, none of them works:
    1) Add it only to system.web\httpHanders. Changed AppPool to classic, still got hidden error.
    2) Add it only to system.webServer\handlers. Integrated mode,still got hidden error.
    3) Add both to both element. Integrated mode, still got hidden error.

    Hi Kingofwebguru,
    According to your description, when you use reportviewer control, you got the error message: The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file.
    To troubleshoot the problem, please refer to the following steps:
    Click Start, click Run, then type InetMgr.exe and click OK.
    Click plus sign next to server name to expand it.
    Click Application Pools in left pane.
    In Application Pools list, click DefaultAppPool.
    In the Actions pane, in Edit Application Pool section, click Edit Settings to check the Pipeline mode.
    Configuration settings for the HTTP handlers are specified in the system.web/httpHandlers element and the system.webServer/handlers element. of your application Web.config file. The handler specified in system.web/httpHandler is used by Internet Information
    Services (IIS) 6.0 or IIS 7.0 in Classic mode, whereas the handler specified in system.webServer/handlers is used by IIS 7.0 in Integrated mode. To use IIS 7.0 in Integrated mode, you must remove the HTTP handler in system.web/httpHandlers. Otherwise, IIS
    will not run the application, but will display an error message instead.
    For more information about Web.config Settings for ReportViewer, please refer to the following document:
    http://msdn.microsoft.com/en-us/library/ms251661.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • How can I enable remote debug in weblogic to use with Rational RSA IDE?

    How can I enable the remote debugging technique so that I can work with my IDE.
    I use RSA by IBM as the IDE
    What should be the changes in the setdomainenv or startweblogic?
    I use 10.3
    Please help.. ur help is appreciable...

    Hi,
    I did not make any console adjustments for debugging on my WebLogic 10.3.2.0 - however I am running in development mode on an "adminServer" (an option during the install)
    In the console there is a debug setup page - that seems to have no effect for me (I can always debug) - so either it is a combination of development mode and/or the startWeblogic script from the Eclipse plugin.
    However, these debug settings are likely for debugging into the server - you only want to debug your own app code right?
    On the console page goto
    http://localhost:7001/console/console.portal?_nfpb=true&_pageLabel=ServerDebugPage
    servers | AdminServer | configuration-debug | expand weblogic
    I see...
    "Use this page to define debug settings for this server.
    Debug settings for this Server
    EnableDisableClear Showing 1 to 2 of 2 Previous Next
    Debug Scopes and Attributes State
    default Disabled
    weblogic Disabled
    EnableDisableClear Showing 1 to 2 of 2 Previous Next
    Try expanding the whole tree and selecting the root to enable everything.
    You will see the following
    10-Dec-2009 11:53:46 o'clock AM EST> <Warning> <Management> <BEA-141239> <The non-dynamic attribute DebugAbbreviation on weblogic.management.configuration.ServerDebugMBeanImpl@47a32e1b([base_domain]/Servers[AdminServer]/ServerDebug[AdminServer]) has been changed. This may require redeploying or rebooting configured entities>
    <10-Dec-2009 11:53:46 o'clock AM EST> <Warning> <Management> <BEA-141238> <A non-dynamic change has been made which affects the server AdminServer. This server must be rebooted in order to consume this change.>
    <10-Dec-2009 11:53:46 o'clock AM EST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=ServerDebugPage.>
    When I debug WebLogic 10.3.2.0 from Eclipse 3.5 EE - I see the following in my server startup log which includes the "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453" you mentioned.
    Starting WLS with line:
    c:\opt\wls10320\JROCKI~1.5-3\bin\java -jrockit -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\opt\wls10320\WLSERV~1.3\server\lib\weblogic.policy -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\opt\wls10320\WLSERV~1.3 -Dwls.home=C:\opt\wls10320\WLSERV~1.3\server -Dweblogic.home=C:\opt\wls10320\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=c:\opt\wls10320\patch_wls1032\profiles\default\sysext_manifest_classpath weblogic.Server
    Listening for transport dt_socket at address: 8453
    The server process listening on debug portl 8453 ooks like this
    Oracle WebLogic Server 11gR1 PatchSet 1 at localhost [Oracle WebLogic Launch Configuration]     
         BEA JRockit(R)[localhost:8453]     
              Thread [Main Thread] (Running)     
              Daemon Thread [Timer-0] (Running)     
              Daemon Thread [Timer-1] (Running)     
              Daemon Thread [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)     
              Daemon Thread [weblogic.time.TimeEventGenerator] (Running)     
              Daemon Thread [JMAPI event thread] (Running)     
              Daemon Thread [weblogic.timers.TimerThread] (Running)     
              Daemon Thread [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)     
              Daemon Thread [Thread-7] (Running)     
              Daemon Thread [ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'] (Running)     
              Daemon Thread [ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'] (Running)     
    I hit a breakpoint and see
    Daemon Thread [[ACTIVE] ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'] (Suspended (breakpoint at line 56 in ApplicationService))     
         ApplicationService_5ptwty_Impl(ApplicationService).insertObjects(List<Cell>) line: 56     
         NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]     
         NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39     
         DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25     
         Method.invoke(Object, Object...) line: 597     
         AopUtils.invokeJoinpointUsingReflection(Object, Method, Object[]) line: 310     
         ReflectiveMethodInvocation.invokeJoinpoint() line: 182     
         ReflectiveMethodInvocation.proceed() line: 149     
         DelegatingIntroductionInterceptor.doProceed(MethodInvocation) line: 131     
         DelegatingIntroductionInterceptor.invoke(MethodInvocation) line: 119     
         ReflectiveMethodInvocation.proceed() line: 171     
         MethodInvocationVisitorImpl.visit() line: 37     
         EnvironmentInterceptorCallbackImpl.callback(MethodInvocationVisitor) line: 55     
         EnvironmentInterceptor.invoke(MethodInvocation) line: 50     
         ReflectiveMethodInvocation.proceed() line: 171     
         ExposeInvocationInterceptor.invoke(MethodInvocation) line: 89     
         ReflectiveMethodInvocation.proceed() line: 171     
         DelegatingIntroductionInterceptor.doProceed(MethodInvocation) line: 131     
         DelegatingIntroductionInterceptor.invoke(MethodInvocation) line: 119     
         ReflectiveMethodInvocation.proceed() line: 171     
         JdkDynamicAopProxy.invoke(Object, Method, Object[]) line: 204     
         $Proxy68.insertObjects(List) line: not available     
         ApplicationService_5ptwty_ApplicationServiceLocalImpl.insertObjects(List<Cell>) line: 306     
         FrontController.generateGlider(PrintWriter) line: 240     
    thank you
    /michael
    http://www.eclipselink.org

  • Debug an applet that has a run-time (logic) error how?

    hi,
    I have an applet that has a non-terminating loop in it...I found it after eye-balling my code.
    How would one debug an applet? I have bought sooooo many books on java, & NONE provide/identify a process for debugging applets. I use JTextPad & would appreciate a method i can use to debug applets....ppppllleezzzz

    TheStijn is correct about stepping thru code - you'd need a development environment. However, the better of these for use in a commercial environment are usually expensive (>$1000). The free ones are not so good (although given that WSAD is based on Eclipse and I think WSAD is pretty good, maybe you could go for Eclipse). They also take some time to get to grips with.
    You could instead litter your code with System.out.println() statements to see what it is doing. These can be viewed from the browser's Java console. On IE, you enable the console by doing Tools > Internet Options > Advanced. Scroll down to "Microsoft VM" and select "Java Console enabled". Then the console is visible (after re-starting IE) from the View menu (at the bottom).
    With Netscape (4.7), you do Communicator > Tools > Java Console. You can also view it on other browsers thru similar mechanisms. Hope this helps in the short-term.

  • Flash videos and things that use flash freeze firefox completely.

    Well, whenever I open a flash player, or something like that, most things that use flash player as a plugin, it freezes my firefox, and then, after awhile it may or may not say a script is causing problems yadda yadda.

    If you are running Flash 11.3, try disabling the new protected mode, since that feature is currently being debugged. See this support article from Adobe under the heading "Last Resort": [http://forums.adobe.com/message/4468493 Adobe Forums: How do I troubleshoot Flash Player's protected mode for Firefox?]

  • Serializing objects that use Loggers

    i am trying to clean-up a lot of java code i have written. so please allow me one more post:
    the issue is objects that use Loggers :
    public class MyClass implements Serializable {
      private static Logger logger = Logger.getLogger("baselib.utilities"); // <-- must be marked transient
    }no serializable objects can use Loggers , right? in my imagination i see that:
    (1) Logger settings are global to a jvm . [read out of a "logging.properies" at start-time].
    (2) so, a MyClass object is created in jvm1 and gets its log settings.
    (3) it is serialized and sent to jvm2.
    (4) it pops-up after de-deserialization, and the jvm2 global log settings are different.
    the Logger in the MyClass object is hopelessly confused.
    so, by hook or crook,
    its fair to say that you cannot use Loggers with serializable objects, right?
    (i don't like Loggers anyway).
    please just answer this one last question, then i can get back to writing code rather
    than cleaning it. thanks to all.

    i am running at least 4 threads (and sometimes as many as 20) leading to chaotic
    asynchronous output. and this Logger output is very hard to look at. in production, then it makes sense.
    CONFIG: Main::_loadConfigSettings()__checking config file :: remoteRunnPort = #7002
    Jun 8, 2008 11:31:48 AM kuai.Main loadConfigSettings
    CONFIG: Main::_loadConfigSettings()__checking config file :: fileSharePort = #7001
    Jun 8, 2008 11:31:48 AM maui.engine.FileShareService run
    FINER: ----FileShareService::_run()___running....
    Jun 8, 2008 11:31:48 AM maui.engine.DataService openNewConnections
    FINER: ____----DataService::_openConnections()___opening 3 new connections___pool size = 0__idle = 0
    Jun 8, 2008 11:31:48 AM maui.engine.FileShareService run
    FINEST: ----FileShareService::_run()___LISTENING on port #7001....
    Jun 8, 2008 11:31:48 AM maui.engine.DataService openNewConnections
    FINEST: ____----DataService::_openConnections()___new connection___pool size = 1__idle = 1
    Jun 8, 2008 11:31:48 AM maui.engine.DataService openNewConnections
    FINEST: ____----DataService::_openConnections()___new connection___pool size = 2__idle = 2
    what i want to see:
    Main::_loadConfigSettings()__checking config file :: resultsHandlerPort = #7002
    Main::_loadConfigSettings()__checking config file :: fileSharePort = #7001
    ----FileShareService::_run()___running....
    ____----DataService::_openConnections()___opening 3 new connections___pool size = 0__idle = 0
    ----FileShareService::_run()___LISTENING on port #7001....
    ____----DataService::_openConnections()___new connection___pool size = 1__idle = 1
    ____====____====________ResultsHandler::_run()__starting....
    _______________________________UserThread-01::_run()__starting....
    ____----DataService::_openConnections()___new connection___pool size = 2__idle = 2
    ____----DataService::_openConnections()___new connection___pool size = 3__idle = 3
    ____====____====________ResultsHandler::_run()__LISTENING on port #7002
    i don't know how to use the NetBeans debugger with so much threading (or really at all).
    so, i use the good-old: " +System.out.println():+ "
    and, once i get a thread working ok, i comment out all the print lines:
    // ____----DataService::_openConnections()___new connection___pool size = 2__idle = 2
    // ____----DataService::_openConnections()___new connection___pool size = 3__idle = 3
    the Logger gives way too much output, and i need to do like:
    "thread #1 = nothing ; thread #2 = *FINEST* ; thread #3 = *INFO* ; ...."
    if some can tell me a better way to debug heavily threaded code, that would be the
    greatest gift of all. i get confused too often and waste so much time.
    JUnit testing threaded code.. its just not possible with so much asynchronousity (right?).
    Edited by: pdFrog on Jun 8, 2008 5:14 PM

  • Debugging online: can't use flash ide

    I have a working website online with mysql database.
    My flash app starts there so I can't debug games locally.
    What debugging tool can I use - monster 3 - just seen it - is that a good option?
    Also it looks like you can use monster locally - what's wrong with the flash debugging tools???

    Isn-t flash builder for flex development / I only use flash professional cs4 and I don-t know anything about flex
    Date: Sun, 24 Apr 2011 11:01:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: debugging online: can't use flash ide
    I run Flash Builder all day debugging on my localhost. Works great.
    >

  • Can host hacker break into guest that uses full disk encryption?

    I know it is unlikely but let us say host has got owned, ie a hacker has managed to break into the host.
    How would they go about breaking into a linux VM that uses full disk encryption?
    They can't mess with the .vmdk without damaging it - it is encrypted by the guest.
    They can't use vmrun because they do not know the guest passwords.
    They can't attach to processes in the guest with debugging tools because they cannot see individual guest processes.
    What can they do?  And crucially, what can I do as a countermeasure?

    What really matters is WHERE you do the encryption. If the encryption is too low, data in the guest appears unencrypted. If it is in the guest, then the keys live in the guest and since SGX is not around at the moment, keys are somewhere in guest memory even for a little bit of time.
    So the real question is what are you trying to achieve?
    If you are trying to meet encryption at rest requirements then it makes no difference where you encrypt as the data on the disk will be encrypted and without the key no one can decrypt it. Now if you have keys generated within a VM without using DRNGD or some other high quatlity randomness source, then your keys could be predictable and you need to guard against making it easy for a brute force attack.
    If you need to encrypt data in motion?
    Then you need to consider how the VM is protected itself, how an application interacts with data to determine during 'motion' if someone should not be accessing the data even though they are already supposedly allowed to do so. Keys are in memory, so therefore you need to guard memory access for those keys to only the application in question. This is the hard part, and requires you to think seriously about logging, key management, etc.
    So really what are you trying to achieve?
    Best regards,
    Edward L. Haletky
    VMware Communities User Moderator, VMware vExpert 2009-2015
    Author of the books 'VMWare ESX and ESXi in the Enterprise: Planning Deployment Virtualization Servers', Copyright 2011 Pearson Education. 'VMware vSphere and Virtual Infrastructure Security: Securing the Virtual Environment', Copyright 2009 Pearson Education.
    Virtualization and Cloud Security Analyst: The Virtualization Practice, LLC -- vSphere Upgrade Saga -- Virtualization Security Round Table Podcast

Maybe you are looking for

  • 2100: Detection error on SSD0 (M.2) -- X1 Carbon 2014

    I keep on getting this error on the X1 Carbon, attaching picture. If it stays on for a long time, 8 hours and more it will show, consistently. Anyone else had this problem ? found a fix ? Its brand new and it started showing since day 1

  • Hi I updated my Pages Application and my saved documents are no longer there. Sandy

    HI I updated my Pages app, and my saved documents have gone.

  • Creating Audit Data with Triggers

    I want to create an audit table like AuditTable( FieldName Varchar2(40), OldValue Varchar2(100), NewValue Varchar2(100), User varchar2(20), UpdtDate Date) Whenever Table X is updated, then the Trigger should capture the changes and create a row for e

  • Production order closure not possible becasue of WIP

    Hi, I have a production order planned for 10 pcs The operations in it are not confirmed and the operation yield is 0 and the status is set to TECO. The order status show GMPS TECO RESA and the documented goods movement shows 261 and 262 for equal qun

  • Command

    Hi all, I am new to oracle. I ma using Oracle 10.2.0. Is it possible to run the commands in sql*plus which we are running from command line . Thanks