Java to start FMS Record

I,m a newbie and one of my requirements is to Start the Record of the Stream as soon as the Game Starts. The Game gets the ID from JAVA and our client wants the stream record from JAVA.
Is it possible to Call Stream.record() from JAVA?Similarly JAVA chould be Able to Stop the Record after the game Finishes.
Any help on this is appreciated.
Srini

There must be java based RTMP SDK.. You should contact Adobe sales team directly..

Similar Messages

  • Is it possible to start a recording from source code?

    Hi everybody!
    I'm currently using JProfiler in combination with JUnit tests to collect resource consumption metrics of features in our product.
    A homemade JUnit runner starts and stops the JProfiler recording and parses the recorded data. It then compares the recorded values to predefined limits and fails the test if they are exceeded.
    Now I want to change this to use the flight recorder instead. I found a nice article explaining how to parse .jfr files here: Using the Flight Recorder Parsers | Marcus Hirt
    Unfortunately I can't figure out how to start and stop a flight recording from a JUnit runner besides using the jcmd tool.
    Can anybody help me out?
    Thanks a lot
    Tobias

    Answering myself once more since other people might stumble upon the same problem.
    In the end I created a TestRule which I can add to the JUnit Test Class.
    The interesting parts of the code are:
    public class ProfilerTest implements TestRule {
        @Override
        public Statement apply(Statement base, Description description) {
            return new PerformanceLimitsStatement(base, description);
        class PerformanceLimitsStatement extends Statement {
            private PublicFlightRecorderRunner runner;
            private final Description description;
            private final Statement base;
            public PerformanceLimitsStatement(Statement baseParam, Description descriptionParam) {
                description = descriptionParam;
                base = baseParam;
            @Override
            public void evaluate() throws Throwable {
                runner = new FlightRecorderRunner(description.getTestClass());
              // start profiling
                runner.startupProfiling("jfr/"+description.getTestClass().getSimpleName()+"."+description.getMethodName()+".jfr", annotation.cpuRecording(), annotation.allocRecording(), annotation.methodStatsRecording(), annotation.monitorRecording(),
                        annotation.threadProfiling());
                // run a test method including its before and after methods inside a simple time measurement
                base.evaluate();
                // shutdown profiling
                final File performanceSnapshot = runner.shutdownProfiling(description);
    This uses a PublicFlightRecorderRunner - code:
    import java.io.File;
    import java.io.IOException;
    import java.lang.management.ManagementFactory;
    import java.nio.file.Files;
    import java.util.List;
    import javax.management.Attribute;
    import javax.management.MBeanServer;
    import javax.management.MalformedObjectNameException;
    import javax.management.NotCompliantMBeanException;
    import javax.management.ObjectName;
    import javax.management.openmbean.CompositeData;
    import javax.management.openmbean.CompositeDataSupport;
    import org.junit.internal.runners.statements.InvokeMethod;
    import org.junit.runner.Description;
    import org.junit.runners.BlockJUnit4ClassRunner;
    import org.junit.runners.model.FrameworkMethod;
    import org.junit.runners.model.InitializationError;
    import org.junit.runners.model.Statement;
    * <p>
    * (c) Copyright Vector Informatik GmbH. All Rights Reserved.
    * </p>
    * @since 1.0
    @SuppressWarnings({ "restriction"})
    public class PublicFlightRecorderRunner extends BlockJUnit4ClassRunner implements
            IProfilerRunner {
          private static MBeanServer ms = null;
          private File file;
          private static final String REGISTER_MBEANS_OPERATION = "registerMBeans"; //$NON-NLS-1$
          private static final String JFR_CREATE_RECORDING_OPERATION = "createRecording"; //$NON-NLS-1$
          private static final String START_RECORDING_OPERATION = "start"; //$NON-NLS-1$
          private static final String STOP_RECORDING_OPERATION = "stop"; //$NON-NLS-1$
          private static final String CLOSE_RECORDING_OPERATION = "close"; //$NON-NLS-1$
          private static final String SET_EVENT_ENABLED_OPERATION = "setEventEnabled"; //$NON-NLS-1$
          private static final String SET_STACKTRACE_ENABLED_OPERATION = "setStackTraceEnabled"; //$NON-NLS-1$
          private static final String SET_THRESHOLD_OPERATION = "setThreshold"; //$NON-NLS-1$
          private static final String SET_PERIOD_OPERATION = "setPeriod"; //$NON-NLS-1$
          private static final String MC_CLASS_NAME = "com.sun.management.MissionControl"; //$NON-NLS-1$
          private static final String MC_MBEAN_NAME = "com.sun.management:type=MissionControl"; //$NON-NLS-1$
          private static final ObjectName MC_OBJECT_NAME = createObjectName(MC_MBEAN_NAME);
          private static final String FRC_CLASS_NAME = "oracle.jrockit.jfr.FlightRecorder"; //$NON-NLS-1$
          private static final String FRC_MBEAN_NAME = "com.oracle.jrockit:type=FlightRecorder";
          private static final ObjectName FRC_OBJECT_NAME = createObjectName(FRC_MBEAN_NAME);
          private static ObjectName recordingObjectName;
          private static CompositeDataSupport recording;
          private static ObjectName createObjectName(String beanName) {
              try {
                  return new ObjectName(beanName);
              } catch (MalformedObjectNameException e) {
                  throw new Error("Should not be possible: Could not make a new ObjectName " + beanName); //$NON-NLS-1$
         * Constructor for FlightRecorderRunner.
         * @param klass
         * @throws InitializationError
        public PublicFlightRecorderRunner(final Class<?> klass)
                throws InitializationError {
            super(klass);
        @Override
        protected Statement methodInvoker(final FrameworkMethod method,
                final Object test) {
            return new InvokeMethod(method, test) {
                @Override
                public void evaluate() throws Throwable {
                    final String targetFile = "jfr/" + method.getClass().getSimpleName()
                            + "." + method.getMethod().getName() + ".jfr";
                    startupProfiling(targetFile);
                    for (int i = 0; i < 10; i++) {
                        super.evaluate();
                    shutdownProfiling(method, test);
        public void startupProfiling(final String targetFile) {
            file = new File(targetFile);
            try {
                createFlightRecordingClient(file.getName());
                startFlightRecording(file);
            } catch (Exception e) {
                e.printStackTrace();
        public File shutdownProfiling(final FrameworkMethod method,
                final Object test) {
            try {
                stopFlightRecording();
            } catch (Exception e) {
                e.printStackTrace();
            return file;
        public static void createFlightRecordingClient(
                final String recordingName) throws Exception  {
            // register Flight Recorder Bean
            ms = ManagementFactory.getPlatformMBeanServer();
            // Create MissonControl Bean
            if (!ms.isRegistered(MC_OBJECT_NAME)) {
                ms.createMBean(MC_CLASS_NAME, MC_OBJECT_NAME);
                ms.invoke(MC_OBJECT_NAME, REGISTER_MBEANS_OPERATION, new Object[0],    new String[0]);
            // Create FlightRecorder Bean
            try{
                if(!ms.isRegistered(FRC_OBJECT_NAME))
                    ms.createMBean(FRC_CLASS_NAME, FRC_OBJECT_NAME);
                    ms.invoke(FRC_OBJECT_NAME, REGISTER_MBEANS_OPERATION, new Object[0], new String[0]);
            catch (NotCompliantMBeanException e) {
                @SuppressWarnings("unused")
                boolean wedontcare = true;
            // create recording
            ms.invoke(FRC_OBJECT_NAME, JFR_CREATE_RECORDING_OPERATION, new Object[] {recordingName}, new String[] {String.class.getName()});
        public static void startFlightRecording(File file)
                throws Exception {
            // Check that only one recording exists and that it's not already running
            @SuppressWarnings("unchecked")
            List<CompositeDataSupport> recordings = (List<CompositeDataSupport>) ms.getAttribute(FRC_OBJECT_NAME, "Recordings");
            if(recordings.size() > 1) {
                throw new Error("More than one recording available");
            recording = recordings.get(0);
            if( (boolean) recording.get("running")) {
                throw new Error("Recording is already running");
            // store the recording name for later us
            recordingObjectName = (ObjectName) recording.get("objectName");
            // set duration for the recording
            final long duration = 10 * 60 * 1000; // 10 minutes in milliseconds - this number was determined by looking at the slowest test on jenkins
            final Attribute durationAttribute = new Attribute("Duration", duration);
            ms.setAttribute(recordingObjectName, durationAttribute);
            // set destination for the recording
            try {
                Files.createDirectories(file.getParentFile().toPath());
                final Attribute destinationAttribute = new Attribute("Destination", file.getAbsolutePath());
                ms.setAttribute(recordingObjectName, destinationAttribute);
            } catch (IOException e) {
                e.printStackTrace();
            // read event settings
            @SuppressWarnings("unchecked")
            List<CompositeDataSupport> eventSettings = (List<CompositeDataSupport>) ms.getAttribute(recordingObjectName, "EventSettings");
            final long period = 0;
            final long threshold = 100 * 1000 * 1000; // 100 ms - given in ns
            // enable all events, set threshold to 100ms and stacktrace to false (because we only parse this in code)
            for(CompositeData eventSetting: eventSettings) {
                final Integer eventid = (Integer) eventSetting.get("id");
                ms.invoke(recordingObjectName, SET_EVENT_ENABLED_OPERATION, new Object[] {eventid, true}, new String[] {int.class.getName(), boolean.class.getName()});
                ms.invoke(recordingObjectName, SET_STACKTRACE_ENABLED_OPERATION, new Object[] {eventid, false}, new String[] {int.class.getName(), boolean.class.getName()});
                ms.invoke(recordingObjectName, SET_PERIOD_OPERATION, new Object[] {eventid, period}, new String[] {int.class.getName(), long.class.getName()});
                ms.invoke(recordingObjectName, SET_THRESHOLD_OPERATION, new Object[] {eventid, threshold}, new String[] {int.class.getName(), long.class.getName()});
            // start the recording
            ms.invoke(recordingObjectName, START_RECORDING_OPERATION, new Object[0], new String[0]);
        public static void stopFlightRecording() throws Exception {
            // make sure the recording is stopped
            if ((boolean) ms.getAttribute(recordingObjectName, "Stopped")) {
                throw new Error("The FlightRecording has already stopped in current thread. Consider increasing the duration!");
            } else {
                ms.invoke(recordingObjectName, STOP_RECORDING_OPERATION, new Object[0], new String[0]);
            // close the recording to remove it from the flightrecorder
            ms.invoke(recordingObjectName, CLOSE_RECORDING_OPERATION, new Object[0], new String[0]);
    This creates a .jfr file which can be used later.
    I parse it in the TestRule to determine if the test violated memory or time limits, in which case the test is failed. (see the link in my first post for information about parsing .jfr files)
    The code may not be the prettiest but so far it's working well.
    Message was edited by: the_qa_guy
    Changed the code to use the JFR bean

  • Java Web Start and JDK Logger

    The JDK logger uses the logging.properties file in the JRE lib directory. However I would like to use my own logging.properties file as part of the application that uses Java Web Start. This config file will be part of the application jar file.
    The usual way to specify the logging properties file is by using the -D parameter
    -Djava.util.logging.config.file=logging.properties
    How do I specify my own logging.properties file for Java Web Start? TIA.

    I'm trying to track down a solution to that problem too. The reason is because of the strange way webstart is creating its own log. It attaches a class: com.sun.deploy.util.LoggerTraceListener which records console messages. The way it does this is by generating its own log messages at the FINE level. If you look in the javaws.log file which is inside of the webstart cache area, you can see the result of this. On a mac this is located at: ~/Libraries/Caches/java/log
    So if the console handler is configured to printing out FINE level messages then an infinite recursion happens. If you change the console handler's level so it isn't printing FINE messages then it works. But I want to see my own FINE level messages, so that isn't a good solution for me.
    I tried setting com.sun.deploy.level=INFO in the global logging.properties, so webstart's log messages would not show up in the console. However, it appears webstart resets this level on startup.
    If you set that property using the resource loading you figured out above, it might work because that should happen after webstart does its own logging configuration.

  • FMS Recording - Seek Causes Synch Issues Audio/Data Recording

    Hi,
    I have recordings being generated by FMS 4.5.  These recordings are a combination of data (for example, chat text that was typed into a chat window) and audio.  The audio, as currently designed, comes on and off.  Therefore, the record stream plays a audio stream, but that stream turns on and off by calling play(activeAudioStream) and play(false) once the audio has ended, over and over.
    The recordings (as flv) play back fine, when not using the seek feature.  When using the seek feature, I get obvious problems where playback will simply Stop, and not resume for a specified about of time.  For example, if I start a recording at 60 seconds in, then at 120 seconds, playback stops and nothing happens for a long, seemingly random about of time.  The stream is active, as when it does resume, the time value of the stream includes the long period of nothing happening.
    This is very confusing, because the recording works fine from the beginning.  I am fairly certain this has something to do with recording audio/video.  A data only recording is fine.  A recording with audio all the way through, even with data, is fine.  But, having the recorded audio stream turn on and off seems to cause major problems.  Any ideas?  If the audio is not continuous, should I create data only and audio only recordings, and setup my playback to stream the audio based on data events indicating the start/end of an audio section?
    Note this is being played back in an AS2 application.
    Thanks.

    Are you using Stream.flush API - if you are using that it migth cause some syncronisation issues if data and audio/video is mixed.
    I did not get your usecase clearly - let me know if you using above API. I think it would be better to use second option if you can usedata and audio seperately but probably you can explain use case better so that we migth help you.

  • Problem starting JRA recording in Mission Control

    Hi all,
    I have a local weblogic 10.1 installed in my computer, when i tried to get start JRA recording it produces an error, here is the trace of the error:
    Could not open JRA for Create JRA-recording on (1.5) weblogic.Server (2840).
    javax.management.RuntimeMBeanException: RuntimeException thrown in operation start
    javax.management.RuntimeMBeanException: RuntimeException thrown in operation start
         at com.sun.jmx.mbeanserver.StandardMetaDataImpl.wrapRuntimeException(StandardMetaDataImpl.java:994)
         at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:430)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
         at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1341)
         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         at java.lang.Thread.run(Thread.java:595)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
         at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
         at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)
         at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:972)
         at com.jrockit.console.rjmx.RJMXConnection.invokeOperation(RJMXConnection.java:432)
         at com.jrockit.console.rjmx.AbstractServerOperations.invokeMethodWithException(AbstractServerOperations.java:110)
         at com.jrockit.console.rjmx.JMXR27Operations.startJRARecording(JMXR27Operations.java:60)
         at com.jrockit.mc.jra.ui.wizards.RecordingJob.startRecording(RecordingJob.java:195)
         at com.jrockit.mc.jra.ui.actions.StartJRA$1.preConnect(StartJRA.java:50)
         at com.jrockit.mc.browser.utils.PreConnectJob.run(PreConnectJob.java:73)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: Your license does not allow JRA to be started: Error: license signature validation error.
    Please check http://www.jrockit.com/
         at bea.jmapi.DiagnosticCommandImpl.execute(DiagnosticCommandImpl.java:54)
         at com.bea.jvm.DiagnosticCommand.execute(DiagnosticCommand.java:234)
         at com.bea.jvm.DiagnosticCommand.execute(DiagnosticCommand.java:253)
         at com.bea.jvm.DiagnosticCommand$Command.execute(DiagnosticCommand.java:349)
         at com.bea.jvm.DiagnosticCommand$Command.execute(DiagnosticCommand.java:377)
         at bea.jrockit.management.JRARecording.<init>(JRARecording.java:79)
         at bea.jrockit.management.JRA.start(JRA.java:88)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
         at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1341)
         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.IllegalAccessException: Your license does not allow JRA to be started: Error: license signature validation error.
    Please check http://www.jrockit.com/
         at bea.jmapi.DiagnosticCommandImpl.execute(Native Method)
         at bea.jmapi.DiagnosticCommandImpl.execute(DiagnosticCommandImpl.java:50)
         ... 29 more
    Somebody knows what can be the problem ??
    Thanks.
    Edited by: user10798842 on 15-ene-2009 7:48

    "Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: Your license does not allow JRA to be started: Error: license signature validation error."
    For the version of JRockit that you are running, you need to have a license file to run JRockit Mission Control.
    Information about how to find a license file can be found here
    In the normal case, you will get better and faster response to JRockit Mission Control questions if you ask them in the JRMC Forum
    Good luck,
    Tomas

  • Java.io.IOException: Bad record type(60) or version (63.120)

    Hi all
    I'm developing a java me xmpp client and when I try to create a secure socket connection I get the following error: java. io.IOException: Bad record type(60) or version (63.120). I have searched in many places but I don´t find any answer about that problem. Can anybody help me?
    regards

    Hi,
    Thank you for the quick response.
    I tried that, I can connect so wls:/offline> nmConnect('weblogic','password','10.110.90.156','5556','ClassicDomain','/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain');
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    wls:/nm/ClassicDomain>
    but on
    nmStart(serverName="AdminServer",domainDir="/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain")
    Starting server AdminServer ...
    Error Starting server AdminServer: weblogic.nodemanager.NMException: Exception while starting server 'AdminServer'
    wls:/nm/ClassicDomain> nmStart(serverName="AdminServer",domainDir="/u0/app/oracle/product/middleware/user_projects/domains/ClassicDomain")
    Starting server AdminServer ...
    Error Starting server AdminServer: weblogic.nodemanager.NMException: Exception while starting server 'AdminServer'
    wls:/nm/ClassicDomain>
    And the AdminServer log shows security authentication error. Wondering why since I am not entering password when I do nmStart?
    Do you have an idea?
    Thank you
    Anatoliy

  • Java web start running on windows NT4 work station

    I have installed java web start on a windows NT4 work station (service pack 6) with a directx v5. I successfuly launch the sun applications such as swing set 2, but I have some troubles concerning our software which used another look and feel than the default one. A system error is raised saying that the library ddraw.dll could not be loaded.
    I have unistalled and re-installed directx v5 but the error is still raised.
    Does any one can help me to solve this problem ?.
    Thank you.

    Hello Sim085
    thanks for your reply.
    Perhaps it would be easier for us to continue the programming with any kind of VisualStudio Produkt ;-), although we dont't had to think about OOP yet!
    Because of our new Network-Technology (Terminal-Server) we have to discuss serveral possibilities.
    I've read about JSP and ASP.NET, and I want to know if JSP or any kind of JAVA Program will run on a Terminal-Server.
    Are there any special aspects I have to know when running JSP on a terminal server from Microsoft? Is it better to program applications in JAVA or in JSP? ...
    Thanks
    Rasming

  • Java Web Start running JasperReports

    The following is the exception that is thrown when trying to compile an .xml report template to a JasperReport object, from an app that has been deployed via the Java Web Start:
    dori.jasper.engine.JRException: Errors were encountered when compiling report expressions class file:
    C:\Program Files\mozilla.org\Mozilla\DailyReport.java:4: package dori.jasper.engine does not exist
    import dori.jasper.engine.*;
    * I have deployed the application properly via Java Web Start; however, when running the application it is not able to compile the xml file to a JasperReport object.
    * The .java file is created properly; but the app does not seem to be able to find the dori.jasper.engine.*; library.
    * I have signed and included the jasperreports-0.5.0.jar (and it's dependencies) with the app, and have put the path to all of it in the Class-Path of the manifest file.
    * NOTE: Just FYI, I am able to run this without any problems under netbeans.

    Dear Patrick,
    Recently I have used iReports for generating report through java & deploy it through java web start.
    I had taken all the measures you had mentioned in your previous replies. But I am not able to view the report. ( might be it is not compiliing)
    I am using new version of jasperreports-0.5.3.jar
    also through console it is running well.
    Also it is not giving any errors. can u have any idea about this.
    Might be it is silly mistake I have done.
    My code for report generation is :
    public class SReportA
         public SReportA()
         try
         JasperDesign jasperDesign = JasperManager.loadXmlDesign("/home/ora/iReport/RSENIORITYLIST-A.xml");
         dori.jasper.engine.design.JRBshCompiler theCompiler = new dori.jasper.engine.design.JRBshCompiler();
         JasperReport jasperReport = theCompiler.compileReport(jasperDesign);     
         Map parameters = new HashMap();
         parameters.put("uname","admin");               
         Connection con=null;
         try
              Class.forName("oracle.jdbc.driver.OracleDriver");
              con=DriverManager.getConnection("jdbc:oracle:thin:@158.144.71.219:1521:dbadp","acom","admin123");
         catch(Exception e)
              System.out.println("Exception in test.jsp "+ e);
         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,parameters,con);
         JasperManager.printReportToPdfFile(jasperPrint,"ReportA.pdf");
         JasperViewer.viewReport(jasperPrint,false);
         catch(Exception e){ System.out.println("There is exception here"+ e); }

  • Unable to run my application using java web start

    i have created one application and use java web start to download the application. all the files are succesfully downloaded but when i try to run the application an expected error occur. this only happen in my machine but not in other machine i'm currently using
    -jsdk1.4.2
    -windows 2000 professional 5.00.2195 service pack 3
    -pentium III 870 Mhz
    -x86-based PC
    -RAM 256 Mhz
    Anyone knows why, plz help me with this puzzle

    Please post the information from the Web Start "Exception" and "Wrapped Exception" tabs when the error occurs (I assume the error was in fact unexpected ;-)
    A blind stab in the dark would be that you don't have write permission to the cache directory on the second machine. Also worth checking that the proxy settings on the second machine are the same as the first (if they are on the same network).

  • Unable to Launch Integration Builder: Java Web Start problem

    Hi,
    I am unable to launch the integration builder. I am using JDK 1.4.2_05. The java Web Start gives the following error:
    Unsigned application requesting unrestricted access to system
    Unsigned resource: http://<XIHostName>:50000/rep/repository/aii_util_rb.jar
    I have tried deleting the Java web start cache, and even reinstalling the JDK.
    Can someone suggest a workaround this problem ?
    thanks,
    Manish

    The Java Web Start cannot accept unsigned jars. If the jars are signed, it will ask in a dialog box if it should allow unrestricted access to this jar.
    In my case, I upgraded XI SP0 to SP4, which included updating the Adapter Core, Adapter Framework, and the XI TOOLS to SP4.
    On launching the Web start, it seemed that the jars were not getting signed. JWS cannot allow unsigned jars to the client.
    These jars are maintained in:
    \usr\sap\<SID>\SYS\global\xi\directory_server\javaws\directory
    I am having problems with my XI upgrade to SP4, and it is probably not signing the jars.
    Do you know why this may be happening ...
    thanks,
    Manish

  • Unable to launch Integeration Builder - Java Web Start - Unexpected Error

    Hi there,
    I am not able to launch the Integeration builder. The ESR has no problem and is working fine though.
    Here is the exception :- com.sap.aii.ibdir.gui.appl.ApplicationImpl
    I have tried below options already :
    1. Cleared the java cache under - javaws -logviewer
    2. Go into administration and inside Directory --> Java Web Start Administration clicked "Restore archives and generate new sign."
    Strange part is some of my colleagues here doesnt have any issue while opening the Integeration Builder. In fact I dont have any such issue in QA and PROD environment. The issue is only in DEV environment. Please advice.
    Anshul

    Hello,
    Usually restoring the archives will help resolve the issue.
    If the issue is occurring for just yourself maybe you could check that you are using the correct java version. e.g. for for 7. 1 java version 5
    Also please refresh the Java Web Start:
    If it's a Windows terminal, select Start - Run - javaws to launch Java Web Start and then clear the cache. File -> preferences ->
    advanced -> clear folder button
    If you have later versions of Java and doing the
    Start -> Run doesn't give you anything, then select Start - Run and type Control and hit Enter. Double-click Java in the list
    that displays to view the more up-to-date Java Control Panel. In the General tab, select Settings from the Temporary Internet Files section. Click Delete Files to clear the cache and then log into the Integration Builder again (download will be longer as jars will be cached locally again).
    If the problem still remains I would advise to check that the latest patches have been applied for XI_TOOL, and also the other components MESSAGING  SAP-XIAFC SAP_XIAF SAP_XIESR SAP_XIGUI
    Regards,
    Sarah

  • Unable to launch application with java web start (OILOM)

    I'm connecting to a remote Oracle console from a server, using "oracle integrated lights out manager". I go to "Remote Control" and click on "Launch Console". After that, it download a JNLP file, called "jnlpgenerator-16". I open it with Java7 -web starter- update 5.
    After a while hanging I get this error:
    Error: Unable to load resource: https://XXX.XXX.XXX.XX:443/Java/JavaRConsole.jar.
    In Exception:
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: https://XXX.XXX.XXX.XXX:443/Java/JavaRConsole.jar
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    In Wrapped Exception:
    java.net.SocketException: SOCKS server general failure
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
         at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    It happens the same under Windows 7 and Linux -using openJRE and icedtea as substitution of Java Web Start-.
    I'm behind a proxy. In my browser -Chrome, IE and FF- putted the info of the proxy and I can browse. Aldo tried to put the info in the Java "Network Settings". It did not work -the launching of the console-.
    I installed the last Java Web Start in Windows 7 -Java7 Update5-. I disabled my anti-virus and firewall. Always the same result.
    Could you help me please. I don't have idea of what is going on.
    Greetings.
    PD: I tested from other machines of the company and it works. So, I guess is my laptop. I exported the oracle certificates from those machine and imported them into mine.

    AndrewThompson64 wrote:
    I am not used to seeing references to a local server that do not include a port number.
    E.G. http://localhost:8080/LottoMadness/
    I have deployed the following HTML (HelpMe.html) to the web server:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Untitled</title>
    </head>
    <body>
    Help Me!
    </body>
    </html>When I attempt to render the URL in IE, I see the page just fine. The URL is use is:
    http://localhost/LottoMadness/HelpMe.htmlSo, I think my web server setup and usage is ok.
    >
    As an aside, what happens if (your MS IIS is running and) you click a direct link to..
    [http://localhost/LottoMadness/LottoMadness.jnlp|http://localhost/LottoMadness/LottoMadness.jnlp]
    When I click this link I get the error and exception I cited in my previous post.

  • Java Web Start Application surprisedly does not start anymore based on new JRE1.7.0_45

    Hi everyone,
    we have to maintain a self-developed Java Application which is running based on JRE1.5.0_51 (x64). Our recent client machines have JRE1.7.0_40 (x64 too) installed in addition to the mentioned (and needed) JRE1.5.0_51 (x64).
    Everything was fine up to the point where we tried to install the newest JRE1.7.0_45 (x64) as the new version for doing the web start magic. The result is that our application (which is/was unchanged!) does not launch anymore. The strange thing is that we do not get any StackTrace, Exception or something else like this.
    The startup process simply hangs :-(
    Nothing has changed (application itself, firewall, network settings, hardware) apart from the new JRE version. It's reproducible at will. If I install JRE1.7.0_40 (x64) the application starts, if I install JRE1.7.0_45 (x64) the application hangs.
    I can say for sure, that in both cases (*_40 AND *_45) Web Start is able to do the synchronizing job and to launch the application base on the correct JRE1.5.0_51 (x64).
    My guess is that in case of an installed JRE1.7.0_45 (x64), the application hangs when it tries to connect to the database (Oracle 11g) via JDBC.
    I found a little hint in the Web Start Console. Therefore I had to switch the trace level of the console to 3 (which includes security, network and basic)
    In case of an installed JRE1.7.0_40 (x64) - which leads to a running application - I will receive the following output:
    Java Web Start 10.40.2.43
    JRE-Version verwenden 1.5.0_51-b10 Java HotSpot(TM) 64-Bit Server VM
    security: Istrusted: http://PKS-Server/jnlp2/advise_office.jnlp true
    avawsApplicationMain     3798 DEBUG root                : get Service: com.sun.jnlp.BasicServiceImpl@3b8e609b  fileName: connection.properties
    network: Cacheeintrag nicht gefunden [URL: http://PKS-Server/jnlp2//connection.properties, Version: null]
    network: Verbindung von http://PKS-Server/jnlp2//connection.properties mit Proxy=DIRECT wird hergestellt
    avawsApplicationMain     3803 INFO  root                : 'Alex2 connection.properties' wurde vom WebServer gelesen
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    avawsApplicationMain     4488 DEBUG root                : get Service: com.sun.jnlp.BasicServiceImpl@3b8e609b  fileName: connection.properties
    network: Cacheeintrag nicht gefunden [URL: http://PKS-Server/jnlp2//connection.properties, Version: null]
    network: Verbindung von http://PKS-Server/jnlp2//connection.properties mit Proxy=DIRECT wird hergestellt
    avawsApplicationMain     4492 INFO  root                : 'Alex2 connection.properties' wurde vom WebServer gelesen
    Connect OK => application starts.
    In case of an installed JRE1.7.0_45 (x64) - which leads to a hanging application - I will receive the following output:
    Java Web Start 10.45.2.18
    JRE-Version verwenden 1.5.0_51-b10 Java HotSpot(TM) 64-Bit Server VM
    security: Istrusted: http://PKS-Server/jnlp2/advise_office.jnlp true
    avawsApplicationMain     3805 DEBUG root                : get Service: com.sun.jnlp.BasicServiceImpl@25a41cc7  fileName: connection.properties
    network: Cacheeintrag nicht gefunden [URL: http://PKS-Server/jnlp2//connection.properties, Version: null]
    network: Verbindung von http://PKS-Server/jnlp2//connection.properties mit Proxy=DIRECT wird hergestellt
    avawsApplicationMain     3810 INFO  root                : 'Alex2 connection.properties' wurde vom WebServer gelesen
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    network: Verbindung von socket://PKS-Server:1521 mit Proxy=DIRECT wird hergestellt
    These last "network:" log entries will never stop. This will lead to an infinite loop which results in a great memory leak. I have to kill the process via windows task manager in order to get rid of it.
    Does someone out there has the same problem? Are there any new additional security issues which prevent my client to establish the database connection on port 1521?
    Any other ideas?
    Thanks in advance for any hint on this issue!
    Regards,
    Alex

    Resolution: We still were not able to solve this issue! The only way to get out of this is to install the JRE1.5 as the x64 variant. In this case no switching from 64-bit to 32-bit is needed and everything is on track again.
    But this is still strange and unexplainable :-(

  • Java web start application runs too slow...

    Hello,
    I am new to Java Web Start. I have created a java web start application and when i enable web start from local Execution, then it works perfectly well. But when i upload it on server and then download the application, then it is too too slow...i mean it takes minutes to get the output on clicking some button....my jnlp file is as under:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jnlp codebase="http://(web server code base)" href="launch.jnlp" spec="1.0+">
    <information>
    <title>ERD</title>
    <vendor>Deepika Gohil</vendor>
    <homepage href="http://appframework.dev.java.net"/>
    <description>A simple java desktop application based on Swing Application Framework</description>
    <description kind="short">ER Deign Tools</description>
    </information>
    <update check="always"/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="ERD_1_2.jar" main="true"/>
    <jar href="lib/appframework-1.0.3.jar"/>
    <jar href="lib/swing-worker-1.1.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/jaxb1-impl.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    <jar href="lib/ant-contrib-1.0b3.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/FastInfoset.jar"/>
    <jar href="lib/gmbal-api-only.jar"/>
    <jar href="lib/http.jar"/>
    <jar href="lib/jaxws-rt.jar"/>
    <jar href="lib/jaxws-tools.jar"/>
    <jar href="lib/management-api.jar"/>
    <jar href="lib/mimepull.jar"/>
    <jar href="lib/policy.jar"/>
    <jar href="lib/saaj-impl.jar"/>
    <jar href="lib/stax-ex.jar"/>
    <jar href="lib/streambuffer.jar"/>
    <jar href="lib/woodstox.jar"/>
    <jar href="lib/jaxws-api.jar"/>
    <jar href="lib/jsr181-api.jar"/>
    <jar href="lib/jsr250-api.jar"/>
    <jar href="lib/saaj-api.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    </resources>
    <application-desc main-class="erd.screen1">
    </application-desc>
    </jnlp>
    I dont understand the reason. Could you please help me out.
    Thank you,
    Deepika Gohil.

    Check your web server's access logs to see how many requests web start is sending for each jar. After you've loaded the application the first time, for each subsequent launch, if you've got everything configured right, you should only see requests for the JNLP file and maybe some gifs because web start should load everything else out of the cache (if you're using the version-based download protocol). Or if you're using the basic download protocol, then you might see requests for each jar file, but even in this case, if your web server is prepared to evaluate the last-updated attribute for each jar request and for jars that have not changed, respond with no actual payload and a header value of Not-Modified, then that should run almost as fast.
    You might also want to consider changing the "check" attribute of the "update" element from "always" to "background" for a couple of reasons. It should allow your app to start sooner (but this means that you might have to launch once or twice after an update is applied to the web server before the update shows up on the workstation). Also, my impression is that "always" is broken and prevents web start from ever checking to see if your jnlp file has been updated if you launch your app from a web start shortcut - launching from a browser is less likely to have this problem, depending on how often your browser is configured to check for updated resources.

  • Java Web Start application doesn't run in Tomcat

    I successfully did a Java Web Start example for me to learn then I tried another one where I encountered an error:
    This is what Tomcat 6.0.18 says. The deploy is successful but when I try to run the web start application
    with this htmlcode
    <A href="http://localhost:8080/ConvertorValutar/app/launch.jnlp">I get this error witch leads me to think that it can't find the jar correct ?
    type Status report
    message /convertorvalutar/
    description The requested resource (/convertorvalutar/) is not available.Appendix:
    This is how I am doing the JAR
    jar cfvm convertorvalutar.jar myManifest2.mf Java*.class IRata*.class The myManifest2.mf is
    Main-class: JavaWebStart_Convertor witch is the main class
    This way I am doing the WAR:
    del *.war /F /Q
    jar cfv convertorvalutar.war app/* WEb-INF/*This is the correct directory structure
    &#9474;   faWar.bat
    &#9474;   convertorvalutar.war
    &#9474;
    &#9500;&#9472;&#9472;&#9472;app
    &#9474;       ConvertorValutar.jar
    &#9474;       launch.jnlp
    &#9474;
    &#9492;&#9472;&#9472;&#9472;WEB-INF
        &#9474;   web.xml
        &#9474;
        &#9492;&#9472;&#9472;&#9472;lib
                jnlp-servlet.jarThis is the web.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <web-app>
         <servlet>
              <servlet-name>JnlpDownloadServlet</servlet-name>
              <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>JnlpDownloadServlet</servlet-name>
              <url-pattern>*.jnlp</url-pattern>
         </servlet-mapping>
    </web-app>
    </web-app>This is the jnlp:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="http://localhost:8080/convertorvalutar/app">
    <information>
         <title>Convertor Valutar</title>
         <vendor>remus.dragos</vendor>
         <description>Simple Java Web Start Example</description>
    </information>
    <resources>
         <j2se version="1.5+"/>
         <jar href="ConvertorValutar.jar"/>
    </resources>
    <application-desc main-class="JavaWebStart_Convertor"/>
    </jnlp>Where is the problem?
    Edited by: remus.dragos on Dec 9, 2008 7:14 PM

    I did checked the names again and I found that the makeJar.bat had an "issue".
    It missed the del *.jar and I had 2 uppercase letters like ConvertorValutar, instead of convertorvalutar.jar.
    After that I rebuild the war and deployed and it works :)
    Thanks.

Maybe you are looking for