Problem In using Webservice Tester

Hi All,
I am not able to test my webservice using webservice tester. I have created a simple webservice which takes a string as a parameter and return it as response.
When i am using webservice tester the url field is coming blank an it request side too i am not getting any option of putting my input. Also the send request button is coming disable.
I am using jdev 11g drop 306. and for creating webservice i am using annoted methods like @webservice and @webmethod
Rajeev

If your requirement is to bind two nodes to the same table, than it is not possible. You can bind the nodes to two different tables and change the visiblity of the tables whenever required.
Hope I have understood your requirement.
Regards,
Noufal

Similar Messages

  • The problem of using webservice to transfer binary data

    I want to use webservice to realize downloading file , and then I think we can to transform the whole file to binary data ,and then use webservice to deliver these datas to client. but there is a promble. When the file size is a bit large , such as exceeding 1.5M , then client will receive error report. How to solve this promble. Another I think when server transforming the whole file to binary data , It should apply for much memory , as large as the file. I think this is not a good solution . Any one can give me some ideas ? How to realize download file using webservice(the server is oc4j)

    839507 wrote:
    the picture does not synchronize with sound. Why? Where is the problem??Dear Automotive Mechanic,
    My car won't start, where is the problem?
    Sincerly,
    Captain Foss

  • Problem in using webservice in My ADF App

    hi ,OTN
    I used this tutorial http://www.oracle.com/technetwork/testcontent/wsdc-085537.html to have a webservice in my ADF Application that returns Weather Application.I used Jdeveloper 11g 11.1.1.3.0. by follwing this tutorial I could get the weather Info.but the first time I run my page or the first time I press the button getWeatherBy Name after writing the place there is an error Mesage as follows
    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Error occured when get webservices record ---> System.Data.SqlClient.SqlException: Procedure or function 'GetLatByPlace' expects parameter '@ZipcodeName', which was not supplied. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at WeatherService.WeatherForecast.GetLatLonDataByPlaceName(String PlaceName) --- End of inner exception stack trace --- at WeatherService.WeatherForecast.GetLatLonDataByPlaceName(String PlaceName) at WeatherService.WeatherForecast.GetWeatherByPlaceName(String PlaceName) --- End of inner exception stack trac
    when I press ok to this error Message.I could write the name of place and got Weather Info,so How can I prevent this error Message that appear every first Time the user call the page of Weather Forecast?
    note : in the tutorial I noticed that it explained that there is an error Message will appear ( On the error window click OK. )
    Edited by: Miar on Oct 13, 2010 6:03 AM

    hi,frank
    yes,the problem is that he asks about his parameter when the page is rendered for the first time,in the tutorial it prevents calling the web service before having
    provided the place Name by making the refresh condition of the iterator #{adfFacesContext.initialRender} , although I did this the web Service is called,How I prevent calling it when i run my page ?
    thanks shay,I will try it and tell the result
    Edited by: Miar on Oct 13, 2010 8:37 AM

  • Problem with using webservice

    Hi all !
    I aim at using a webservice through my SAP server.
    The result of the test of the webservice contains the following :
    Die Anmeldung wurde f[0xc3][0xbc]r den Mandanten 999 und den Benutzer loginXXX      und die Sprache    durchgef[0xc3][0xbc]hrt
    My question is : where is specify these 999 ? because my wsdl is like :
    http://xxxxxx..fr/sap/bc/soap/wsdl11?sap-client=320&services=ZADD
    I need 320 and not 999.
    Thanks for helping !

    I may have find the solution....
    With SICF transaction, I could specify the "mandant" in the description of the soap service.

  • Problem with using webservice wich generated by ALBPM

    I have business process. All Activities in this process are automatic. I generated Web service and wsdl by this process. But now, when I want to use it, I see that there are not only my operation myOperation(java.lang.String sessionId_arg,ArgType1 arg1,ArgType2 arg2), but
    discardSession(java.lang.String sessionId_arg);
    getInstanceStatus(java.lang.String sessionId_arg,java.lang.String instanceId_arg)
    startSession(java.lang.String password_arg,java.lang.String user_arg)
    How should I use my service? Should I invoke only myOperation or I should use other methods too? Can set "1" to sessionId_arg in myOperation , or I should take it from some place?
    Now, when I execute myOperation("1",someArg1,someArg2), I have NullPointerException.
    Edited by: KamilBek on 16.10.2008 23:02

    If you don't want to make two calls (one to get a session id and the second to start/interact with the process) you can enable username/token authentication for the process web services. This way you can just make one call that includes appropriate credentials required for authenication.
    Hope that helps,
    Mike.

  • Alert: WebServices connectivity (Internal) transaction failure - The credentials can't be used to test Web Services.

    Hi.
    Could you please help me to resolve this issue.
    I have SCOM 2012 installed to monitor environment with Exchnage 2010 SP3. There are 2 sites with Exchnage servers within the organization. There are 2 mailboxes being created to test both sites.
    I am getting following alert:
    Alert: WebServices connectivity (Internal) transaction failure - The credentials can't be used to test Web Services.
    description: The test mailbox was not initialized. Run new-TestCasConnectivityUser.ps1 to ensure that the test mailbox is created.
    Detailed information: 
    [Microsoft.Exchange.Monitoring.CasHealthUserNotFoundException]: The user wasn't found in Active Directory. UserPrincipalName: extest*****@****.local. Additional error information: [System.Security.SecurityException]:
    Logon failure: unknown user name or bad password.
    Diagnostic command: "Test-WebServicesConnectivity -MonitoringContext:$true -TrustAnySSLCertificate:$true -LightMode:$true"
    EventSourceName: MSExchange Monitoring WebServicesConnectivity Internal
    I have tried the next steps:
    1. Verified that mailbox is exist and it's not locked (same for the second mailbox)
    2. Deleted those mailboxes and created  a new  using new-TestCasConnectivityUser.ps1  verified that this mailbox is visible on all DC's accross the forest (both mailboxes)
    and that temporary password was accepted;
    3. Cleared the cache on the SCOM 2012;
    4. Still getting the same alert
    I will really appriciate any help.
    Thanks.

    Hi,
    Hope these posts help you:
    http://thoughtsonopsmgr.blogspot.ca/2013/11/exchange-server-2010-mp-no-synthetic.html
    https://social.technet.microsoft.com/Forums/systemcenter/en-US/437f2bbb-cd96-40c3-8c56-6d4d176a9520/exchange-2010-mp-constantly-throws-webservices-connectivity-internal-transaction-failure?forum=operationsmanagermgmtpacks
    Natalya
    ### If my post helped you, please take a moment to Vote as Helpful and\or Mark as an Answer

  • Major problem using Nokia Test Message Editor

    Using Nokia Test Message Editor on PC Suite 6.83 to create a new message (via USB cable), when I click on create new message (works fine) and then when I click on the "To" button, it says error. It asks me to close program as it has performed an illegal operation. Whys that? The only way I can currently get it to work is by manually entering the phone number but just cant use teh To button.
    whats wrong?

    No that's not helping, "oh boy".
    I tried to Repair PC Suite from the Unistaller, same error.
    Then I uninstalled PC Suite, restarted, ran PC Suite Cleaner 3.5 to get rid of registry settings and files. Then I noticed some old data in Application Data\PC Suite (old IMEIs) which I all deleted, then I restarted again and installed the newest PC Suite back. It asked me to install MMSync onto my phone, which I did. (see separate bug report on that
    Then it gave me a message that some "Old Contact Browser data was found and has been moved to a separate folder", which I think is somehow related to the Contacts bug which I had described for a previuos PCS version, under my old nick "zak1974". Feeling good and all hopeful at last, I launched the Contact browser and it got all contacts with no problem, I went to Messages - Inbox. Clicked on Create New Message button, then "To" - only to find the same bug, which I am perfectly able to reproduce and describe on any level reaqired, as I have saved all screenshots and messages on the way to the Text Message Editor crash. All the above gives me some right to declare a software/firmware bug with the versions of products I had described in my first post.
    Any other ideas?
    N95 - King of Photos

  • Image not displayed in html output used webservice to store in a location

    hi
    we have used webservices to store the pdf and html outputs but the problem is when we are seeing the preview in the bi publisher we can see the image in pdf and html but when we run through webservices and see the output files that are stored in some location image in the html output is not displayed but in the pdf we can see the image.
    i have used the direct insertion image option in the header section. is the problem because i have used the direct insertion.
    can you give the idea how to import logo from an external location so that we can check the if it is problem with direct insertion or problem with the webservice as we are storing the output files outside the catlog but it may not be wrong because in pdf we can see the image.
    I am not having any idea how to solve thsi issue..
    Sorry to bother you with these many questions
    Thanks in Advance
    Have a Nice day.

    Please state which BI Publisher version you are using.
    In case it is 10g then please always test the application with the latest patch first!.
    BTW today there is been a new patch 11846804 released for 10.1.3.4.1 (March 2011).
    regards
    Jorge

  • Cannot Test this Web Service using the Test Page

    Hello,
    I'm using
    - JDeveloper 11.1.1.3.0
    - SOA Suite 11.1.1.3.0
    - Weblogic Server 10.3.3
    - Windows XP SP3 (german version)
    Now I'm having a BPEL-Process (SOA) Project created in JDeveloper and deployment to the server works fine, i.e. the service can be seen in enterprise manager.
    But if I want to test the service using the webservice tester it get the following error if I copy the URL for getting the WSDL file to another browser tab:
    Cannot Test this Web Service using the Test Page
    Endpoint Name : FabricProvider (Service Description)
    You can test the Web Service using a Java client.
    Failed to Load a composite for composite identified by default/ReisebuchungService!1.0*soa_6aebb5fb-7830-497b-b853-839518d112f0
    Please verify that the composite has been deployed.
    Can you help me with this issue? I have no idea where to start debugging or resolving the problem.
    Thanks in advance

    Heya
    others and I face the same issue, reported here:
    TP4: Cannot Test this Web Service ...
    Oracle is not too responsive on the issue though.... :(
    Cheers Christian.

  • WebService Test page generation

    Hello,
    I have a question regarding WebService test page generator. I have OC4J standalone (10.1.3.3.0) configured on internal IP address like 10.x.x.x and for test reasons this server is accessible via internet.
    Test page for WebService generated by application server is always generated using this internal address as host (see page source fragment below):
    <p>Download the JavaScript Stub (<i>BETA</i>) for ServiceSoapHttpPort and see its documentation.</p>
    <script type="text/javascript" src="http://10.201.205.63:8888/testws/ServiceSoapHttpPort?ServiceSoapHttpPorttest.js"></script>
    <script type="text/javascript">
    Because of this, it is impossible to run test page using external server address.
    Is there any parameter or configuration file which control the way that webservice test page is generated ?
    Regards
    Tom

    Hello,
    The test page does the best it can to reflect and provide test values,
    however there are limitations. Note, this does not mean there is a
    problem with your service, it is simply a limitation of the dynamically
    generated test page.
    You might consider your own custom home page [1]
    Hope this helps,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/webxml.html#1008158
    Sachin wrote:
    >
    Hi,
    I have a WSDL which refers to a xsd schema for types information.
    To create a webservice from this WSDL, I used following ant tasks.
    autotype : To generate type information from WSDL
    wsdl2service : To generate partial implementation of web service
    autotype : To generate type information for the session bean which implements
    webservice
    source2wsdd : To generate webservice from stateless session bean
    wspackage : To generate ear and client.
    My session bean uses the userdefined complex datatypes, which are defined in
    XSD, as parameters for a method.(The java classes for the complex datatypes are
    genrated by autotype ant task)
    I could successfully generate the webservice and deploy it to BEA 8.1, but when
    I open the BEA web console test-page to test the service, I get following error
    message.
    <!-- Do not know how to create a sample instance for this part due to the following
    exception:java.lang.IllegalArgumentException: argument type mismatch. Pls replace
    this with the correct XML before invoking the service. --->
    Test page is not able to generate the XML equivalent of the method parameter (complex
    datatype) .
    Can anyone help me solve the problem ?
    Regards,
    Sachin

  • Problem in using MySQL in JSF Pages

    Hi,
    I am facing a problem regarding use of MySQL in JSF.
    I am using IBM RAD 6.0 for application developement.
    Previously creating a normal java application which is used of retrieval of the data from the database was working fine. by including j/connector jar file in java build path.
    But when same program is converted to web service and accessed through a JSF page using a managed bean it is not working. It throws classNotFoundException
    Please reply at your earliest.
    Thanks in advance.
    Regards,
    Amit
    code :-
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class BeanClass
         public String display()
              Connection conn = null;
              Statement stmt = null;
              ResultSet rs = null;
              String returnDate = "";
              try
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
                   System.out.println("Sucess");
                   conn=DriverManager.getConnection("jdbc:mysql://localhost/switching","root","pspl");
                   System.out.println("Sucess******");
                   stmt = conn.createStatement();
                   System.out.println("Sucess^^^^^^^^^");
                   rs = stmt.executeQuery("SELECT * FROM log1 where senderId = '008' ");
                   System.out.println("Sucess#########");
                   while(rs.next())
                        System.out.println("Date : " + rs.getString("expDate"));
                        returnDate = rs.getString("expDate");
                   System.out.println("Final success");     
                   System.out.println("Sucess@@@@@@@@@@@@@@@@");
              }catch(ClassNotFoundException cnfe)
                   System.err.println("Drivers not found " + cnfe.toString());
                   cnfe.printStackTrace();
              catch(IllegalAccessException iae)
                   System.err.println("Access Exception");
              catch(InstantiationException ie)
                   System.err.println("Instatiation Exception");
              catch(SQLException se)
                   System.err.println("SQL EXCEPTION");
                   se.printStackTrace();
              System.out.println("Date is = " + returnDate);
              return returnDate;
    Errors are :-
    [5/3/06 10:47:33:358 IST] 00000061 SystemErr R java.lang.ClassNotFoundException: com.mysql.jdbc.Driver     at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at java.lang.Class.forName1(Native Method)
         at java.lang.Class.forName(Class.java(Compiled Code))
         at packBean.BeanClass.display(BeanClass.java:29)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
         at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
         at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:423)
         at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:388)
         at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
         at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:203)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:225)
         at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:151)
         at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:225)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:225)
         at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:279)
         at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:717)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1802)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

    You have to put myfaces jar on the web-inf/lib

  • ADOBE FORMS using Webservice

    Hi Experts,
    I have a problem with Adobe Forms Using webservice.  I created  RFC where it saves data from Adobe Forms to a customized table and exposed it as webservice.  From the SOA manager, I copied the generated link pasted in the dataconnection in Adobe Lifecycle designer, but whenever I generate the form I keep receiving this error:
    "http:// erpwrk1.corp.com:8000/sap/bc/srt/wsdl/bndg_DFA46DE60CFOD33F19F21005056C00008/wsdl11/allinone/ws_policy/document?sap-client=001".  Check that the path is correct and that the file is a valid wsdl file.
    I already activated services from SICF in relation SOAP runtime.   What could be the cause of the problem and how to fix the problem?
    Thanks A Lot!
    Mae

    Hi Ma. Angelica A. Estacio,
    From the SOA manager, I copied the generated link pasted in the dataconnection in Adobe Lifecycle designer, but whenever I generate the form I keep receiving this error:  Check that the path is correct and that the file is a valid wsdl file and hence i cannot finish the data connection wizard.
    From the above posts, it looks like you have resolved the issue. But can you please let me know how did you resolve it ?
    Did you check any SAP transaction to find the above mentioned checkbox?
    Please revert as this has become critical now.
    You can mail me your response on [email protected]
    Regards,
    Rohit Gugale

  • Problem in using objbase.h ,help!!!

    Hi
    I have some problems in using the header file <objbase.h>
    when I want to use the functions defined in objbase.h,such as " WINOLEAPI  CoInitialize(IN LPVOID pvReserved)",
    labwindows cvi will give error information:
      Undefined symbol '_CoInitialize@4' referenced in "test.c".
    who can tell me why??
    thanks a lot ~~~~~~~~~

    Hi phoenixmy,
    You need to include the ole32.lib import library in your project. You can find this library in the <CVI>\sdk\lib directory if you have the Windows SDK installed for CVI. 
    I would like to add that you should really be calling CA_InitActiveXThreadStyleForCurrentThread instead
    of CoInitialize. CVI provides routines for using ActiveX, and this
    function initializes COM (by calling CoInitialize) and takes care of
    any other initialization CVI might need (ActiveX callbacks in multiple
    threads etc.)
    Best Regards,
    Jonathan N.
    National Instruments

  • Problem in using java print API

    I am facing a problem in using printAll and printComponents API.
    The application was developed in java1.1
    Now the same application is migrated to java 1.4
    But the reports are not being printed in desired format.
    The application make use of printAll() API of Component.
    Using java1.1 the print output is without the borders for components like textField or TextArea,
    whereas for java 1.4 we get border and scrollbar on print which is not the desired output.
    Can anybody suggest a solution for the same?
    here is the sample code, you can see the difference by executing this code in java1.1 and java 1.4.
    import java.awt.*;
    import java.util.*;
    public class TestPrint extends Frame implements java.awt.event.ActionListener {
    PrintJob job = null;
    //Frame aFrame = new Frame("Test Frame");
    private TextArea txaChangeNotes = null;
    private Label lb = null;
    private Panel ivjContentsPane = null;
    private Button ivjButton1 = null;
    TestPrint () {
         super("Test Frame");
         init();
    private void init() {
         ivjContentsPane = new java.awt.Panel();
         ivjContentsPane.setName("ContentsPane");
         txaChangeNotes = new java.awt.TextArea("",0,0,java.awt.TextArea.SCROLLBARS_BOTH);
         txaChangeNotes.setText("****\n&&&");
         ivjButton1 = new java.awt.Button();
         ivjButton1.setName("Button1");
         ivjButton1.addActionListener(this);
         ivjContentsPane.add(txaChangeNotes);
         ivjContentsPane.add(lb);
         ivjContentsPane.add(ivjButton1);
         this.add(ivjContentsPane);
         setSize(595, 735);
         show();
    public void actionPerformed(java.awt.event.ActionEvent e) {
         Object obj = e.getSource() ;
         if( obj instanceof java.awt.Button ){
              //Button but = e.getSource();
              print();
    private void print() {
         System.out.println("In Print");
         job = getPrintJob(this , "Print All Parts");
         //job.setPrintable(this);
         if(job!=null){
              System.out.println("Job not null");     
              /*if (job.printDialog()) {
         try {
                   System.out.println("printing");     
         job.print();
         } catch (Exception ex) {
         ex.printStackTrace();
              Graphics pg=job.getGraphics();
              if(pg!=null){
              System.out.println("graphics not null");     
                   this.requestFocus();
                   //this.printComponents(pg);
                   this.printAll(pg);
              }else{
              System.out.println("graphics null");     
                   //this.dispose();
                   return;
              pg.dispose();
         }else{
              System.out.println("job null");
              //this.dispose();
              return;
         job.end();     
    private PrintJob getPrintJob (Frame aFrame,String aString) {
         Properties printprefs = null;
         Toolkit toolkit = java.awt.Toolkit.getDefaultToolkit();
         PrintJob job = toolkit.getPrintJob(aFrame, aString, printprefs);
         /*JobAttributes jab = null;
         jab = new JobAttributes();
         PageAttributes pab = null;
         pab = new PageAttributes();
         pab.setPrinterResolution(70);
         jab.setDialog(JobAttributes.DialogType.COMMON);
    PrintJob job = Toolkit.getDefaultToolkit().getPrintJob(aFrame, aString, jab, pab);*/
         return job;
    public static void main(String arg[]){
         TestPrint objTestPrintFrame = new TestPrint();
    }

    You must not have the complete IFS_BASE_CLASSPATH defined in your CLASSPATH environment variable. The easiest way to do this is to type ". ifsenv.sh" on Solaris (or run ifsenv.bat on NT). Then you can invoke java like this:
    java -classpath $CLASSPATH:$IFS_BASE_CLASSPATH ...
    (your standard JDK classes should already be in the CLASSPATH; append our classpath to it)

  • Problem in using String in Implicit Cursor

    Hi,
    I am facing problem in using String in Implicit Cursor:
    I have initialise
    DECLARE
    v_grant varchar2(4000);
    begin
    v_grant:='SELECT TABLE_NAME FROM DUMP_USER_TABLES WHERE TABLE_NAME LIKE ';
    FOR obj IN (SELECT v_grant||'''BS%''' FROM dual) LOOP
    V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
    DBMS_OUTPUT.PUT_LINE('THE REVOKE STATEMENT IS'||V_REVOKE);
    num := num + 1;
    END LOOP;
    END;
    I am not getting the value from obj.TABLE_NAME its coming as 'obj.TABLE_NAME'
    Kindly anyhelp will be needful for me

    Besides from what Sybrand already pointed out clearly:
    Your example doesn't run at all:
    MHO%xe> DECLARE
      2  v_grant varchar2(4000);
      3  begin
      4  v_grant:='SELECT TABLE_NAME FROM DUMP_USER_TABLES WHERE TABLE_NAME LIKE ';
      5  FOR obj IN (SELECT v_grant||'''BS%''' FROM dual) LOOP
      6  V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
      7  DBMS_OUTPUT.PUT_LINE('THE REVOKE STATEMENT IS'||V_REVOKE);
      8  num := num + 1;
      9  END LOOP;
    10  END;
    11  /
    V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
    FOUT in regel 6:
    .ORA-06550: line 6, column 1:
    PLS-00201: identifier 'V_REVOKE' must be declared
    ORA-06550: line 6, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 7, column 49:
    PLS-00201: identifier 'V_REVOKE' must be declared
    ORA-06550: line 7, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 8, column 1:
    PLS-00201: identifier 'NUM' must be declared
    ORA-06550: line 8, column 1:
    PL/SQL: Statement ignoredI guess you need to read up on quoting strings properly and probably also dynamic SQL.
    But:
    WHAT are you trying to do anyway?
    I cannot parse your code at all...so what is your requirement in human language?

Maybe you are looking for

  • Screen goes to sleep when watching full screen video in browser

    Hey, On my MacBook Pro, with Mavericks, I often watch MLB.tv, WWE Network or even Youtube videos on full screen. Since upgrading to Mavericks, my screen goes to sleep after the normal amount of time based on my power settings in the system preference

  • Is it safe/okay to use RSNAST00 program in a user-exit?

    Hi Experts, I got a business requirement and its: After SAVEing the sales order......by using the user-exit USEREXIT_SAVE_DOCUMENT I have to trigger custom IDOC (currently its in the system and using for some other application) outbound direction to

  • Other DB than MS SQL Server?

    Hi guys, is there any implementation experience available about installing SAP Biz-1 on a free RDBMS like mySQL or Firebird? Is this possible at all, pitfalls, workarounds? Any feedback is warmly appreciated! THX, Harald

  • Can I play 3D movies on a 3D TV using Quicktime 7 and the FBX QuickTime Viewer Plug-in from Autodesk?

    Can I play 3D movies on a 3D TV using Quicktime 7 and the FBX QuickTime Viewer Plug-in from Autodesk?  I would like to play 3D movies which are in Side by Side or Top/Bottom format where the image for each eye is 1080 x 720p.  I would like to output

  • Laserwriter 16/600 PS print quality problem

    This printer has given us years of faithful service but has recently started producing smudges at regular intervals down both margins. I installed a new HP toner cartridge which seemed to help for a while but the problem has returned. I'm hoping that