JPS java service print

Hello everyone, I try to know how api Java Print Service work thus .I try to compile their example on
http://access1.sun.com/tools/JPSDemo/jpsdemo.html
and to compile their application on
http://access1.sun.com/tools/JPSDemo/jpsdemoapp.zip
Here is my problem when I carry out the print application, on
the Method
public PrintService[] getPrintServices() {
//Before sending the request for lookup, list the Attribute set here
Attribute[] nattr = aset.toArray();
int loop = nattr.length;
System.out.println("New Attributes set:");
for (int i = 0; i < nattr.length; i++) {
System.out.println("test " + nattr);
System.out.println(newl);
for(int i = 0; i <= loop; i++ ) {
nattr = aset.toArray();
for (int k = 0; k < nattr.length; k++) {
System.out.println("attribute " + nattr[k]);
services = PrintServiceLookup.lookupPrintServices(myFlavor, aset);
service = PrintServiceLookup.lookupDefaultPrintService();
if (services.length > 0) {
break;
else {
System.out.println(
" No Print Services found, will compromise attribute");
compromiseAttribute(i); //remove one attribute
for (int ck = 0; ck < compromised.length; ck++ ) {
if (compromised[ck] != null ) {
System.out.println(compromised[ck]);
// Get the supported PrintServiceatribute categories that we can specify
for (int j = 0; j < services.length; j++) {
Class[] psattribute = services[j].getSupportedAttributeCategories();
System.out.println("Printer name is: " + services[j].getName());
System.out.println(" ");
//System.out.println("No. of Print Service attribute categories are " + psattribute.length);
System.out.println("Supported Print Service attribute categories are: ");
for (int i = 0; i < psattribute.length; i++) {
System.out.println(psattribute[i]);
System.out.print(" ");
Object value = services[j].getSupportedAttributeValues(psattribute[i], null, null);
if (value == null) {
break;
if (value.getClass().isArray()) {
Object[] v = (Object[]) value;
for (int k = 0; k < v.length; k++) {
if (k > 0) {
System.out.print(", ");
System.out.print(v[k]);
else {
System.out.print(value);
System.out.println();
return services;
It return me that there is no service available without tell mewhich attribute doesn t work . Then why, there is not no service
available or what is not available to circumvent the problem
thank you has all.

I think that if someone has ever found an interesting way to print pdf files from java, especially if this uses the 1.4 JPS API, It would be nice to put it on this forum and not share it via e-mail with some happy-fews (just my 2 cents).
I have been looking at this for a while and could not find any decent solution (spawning an Acrobat Reader with the /t option does not allow to control enough printer options like 2-sided, n-up, paper trays, ...).
I think of a solution that would convert the pdf to a plain ps document and stream it with JPS to the printer. I am trying to integrate Ghostscript with my app using JNI to do so. Has anyone used this or another solution to get a PS file out of a pdf document within java?
Did anybody find or write a java pdf renderer that could be used to implement the Pageable and Printable interfaces?
Please let me (and us all) know...
Daniel

Similar Messages

  • JNI  --  Windows Service (Java Service Wrapper)  --  Winamp

    Hi!
    I'm developing an application to control Winamp player and this application is supposed to run as a Windows Service (via Java Service Wrapper). Winamp is
    handled via JNI (c library dll).
    The thing is:
    When I start the application as a service, my application tries to control Winamp (eg play, pause) but it doesn't work. I can see (prints) that my application is working but all the calls of the dll that interacts with Winamp don't answer. Instead, when I stop the service, I can see finaly all the prints (I introduced in the dll play, pause functions).
    Can anybody give a hand? It seems that the JNI is not working properly (in my humble opinion).
    Thanks for your attention.
    Best Regards
    Nuno

    In my java application:
    System.out.println("Before play!");
    play( ); //Native method...
    System.out.println("After play!");
    sleep(10*1000);
    System.out.println("Before pause!");
    pause ( ); //Native method...
    System.out.println("After pause!");
    In c file (dll lib):
    JNIEXPORT void JNICALL Java_WinampController_play
    (JNIEnv *env, jobject obj) {
              printf("-> cpp - Play \n");
    initWinampHandle();
    if (hwnd_winamp != NULL) {
    SendMessageA(hwnd_winamp, WM_COMMAND, WA_PLAY,
    WA_NOTHING);
              printf("<- cpp - Play \n");
    JNIEXPORT void JNICALL Java_WinampController_pause
    (JNIEnv *env, jobject obj) {
              printf("-> cpp - Pause \n");
    initWinampHandle();
    if (hwnd_winamp != NULL) {
    SendMessageA(hwnd_winamp, WM_COMMAND, WA_PAUSE,
    WA_NOTHING);
              printf("<- cpp - Pause \n");
    Result... (log file)
    Before play!
    After play!
    Before pause!
    After pause!
    And only after I stop the service, the cpp printf appear... :(
    -> cpp - Play
    <- cpp - Play
    -> cpp - Pause
    <- cpp - Pause
    Thanks

  • Need database JTA service connected to java service

    Hi,
       In my trial the database service was already connected up to my java service and showed in the data sources window.
       In my paid service the connection is not made - therefore my JPA datasource is not resolving  - as expected until this is fixed.
       Could you join the 2 services or direct myself to a way to manually join them.
       thank you
       /michael
       obrienlabs.org
    Exception: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException Exception Description: Cannot acquire data source [database]. Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database' javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException Exception Description: Cannot acquire data source [database]. Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database'
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:517)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:272)
    at com.vision.cloud.jpa.VisitorServlet.readData(VisitorServlet.java:238)
    at com.vision.cloud.jpa.VisitorServlet.processRequest(VisitorServlet.java:141)
    at com.vision.cloud.jpa.VisitorServlet.doGet(VisitorServlet.java:355)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:165)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.security.internal.WebGateRedirectFilter.doFilter(WebGateRedirectFilter.java:178)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused by: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException Exception Description: Cannot acquire data source [database]. Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database'
    at org.eclipse.persistence.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:497)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:109)
    at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:330)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:293)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:418)
    at org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:216)
    at org.eclipse.persistence.sessions.server.ExternalConnectionPool.startUp(ExternalConnectionPool.java:146)
    at org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:484)
    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:633)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:208)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488)
    ... 38 more Caused by: javax.naming.NameNotFoundException: Unable to resolve 'database'. Resolved ''; remaining name 'database'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:402)
    at javax.naming.InitialContext.lookup(InitialContext.java:396)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:103)
    ... 48 more

    going through association documentation
    http://docs.oracle.com/cloud/CSGSG/manageservices.htm#CSGSG378
    Found the tab in administration
    Associated ServicesAdd Database Association
    No associated services found.

  • Java Services In Business Connector supported by XI ?

    I am working with the java services of BC and want to convert it into XI.
    My question is -the webMethods defined in the java services of BC are accepted by XI or not?
    eg. the code in java services of BC is
    IDataCursor pipelineCursor = pipeline.getCursor();
    This line will be accepted by the XI  when imported or will show error?
    As (IDataCursor) is BC propriety  thing.
    From where the meaning of the code written in java services of BC can be obtained.
    eg.
    String value = configProp.getProperty(configKey, defaultConfigValue);
    Here what does getProperty method do?
    Thanx.

    Hi,
    my apologies, don't fully understand your question. Are you asking what is the XML structure that a BC Java service can consume?
    If that is the question then the answer is: A BC Java service can not consume XML, it consumes IData / IValues objects.
    So your question should probably be: How do we build IValues / IData objects from an InputStream?
    Answer: Use a Dom or SAX parser and build the corresponding IValues / IData object maps out of that. This is accurately what we have done (+ implemented our own IValues / IData libraries so that we don't use any built-in BC classes in PI to avoid any licensing issues).
    The key is to understand how IValues / IData are implemented and how to deal with XML in input / output streams.
    We only use this solution internally with our BC2XI product (when requested by the customer) and unfortunately don't provide the libraries separately.
    Good luck.
    Cheers
    Kalle

  • Problem in java.awt.print

    Hi here is my code .
    I am generating page dynamically and passing to printer.
    Printing Functionalities working file. But I am taking some data from database (Access). And in this code for example i have 4 records in Database and i am generating 4 pages (each page for resord).
    I am getting only 2 records. And for other two records i am getting blank page.
    Reason is My ResultSet object is moving to next record twice.
    I mean if i have 6 records i get only 3 pages.
    If i have 10 records i get only 5 pages and If i have 1 record i dont get any page.
    How shall i solve this problem.
    Thanx in advance.
    import java.awt.*;
    import java.awt.print.*;
    import java.sql.*;
    public class SubbuBook extends Thread implements Printable {
    Connection con;
         Statement stmt;
         static ResultSet rsValue;
         public void run() {
              dataConnection();
              PrinterJob job = PrinterJob.getPrinterJob();
              Book bk = new Book();
              job.setPageable(bk);
              if (job.printDialog()) {
         try {
              bk.append(new SubbuBook(),job.defaultPage(), 4);
              job.print();
              }catch (Exception e) {
              System.out.println("Exception "+e);
         System.exit(0);
    public int print(Graphics g, PageFormat pf, int pageIndex) throws PrinterException {
         Font fntHeading = new Font("Helvetica",Font.BOLD,24);
    Font fntRow = new Font("Helvetica",Font.PLAIN,14);
         try{
         if(rsValue.next()) {
              g.setFont(fntHeading);
              g.setColor(Color.red);
              g.drawString("Main Report",200,100);
              g.setColor(Color.blue);
              g.drawLine(100,150,500,150);
              g.drawLine(100,150,100,500);
              g.drawLine(100,500,500,500);
              g.drawLine(500,100,500,500);
              g.drawLine(200,150,200,500);
              g.setFont(fntRow);
              g.setColor(Color.black);
              g.drawString("Program Id",120,200);
              g.drawString(rsValue.getString("prog_id"),250,200);
              g.drawString("Program Name",120,250);
              g.drawString(rsValue.getString("prog_name"),250,250);
              g.drawString("Artist Name",120,300);
              g.drawString(rsValue.getString("Artist"),250,300);
         }catch(Exception ae) {
         System.out.println("Exception inside Paint"+ae);
         return Printable.PAGE_EXISTS;
    private void dataConnection() {
         try{
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con=DriverManager.getConnection("jdbc:odbc:artist");
         stmt=con.createStatement();
         rsValue=stmt.executeQuery("select * from artist order by Prog_name");
         System.out.println("Connection is Proper");
         }catch(Exception e){
              System.out.println("Exception at Connection"+e);

    I am not sure this..
    Instead of if pls give while and check:
    try{
    while(rsValue.next()) {
    g.setFont(fntHeading);
    g.setColor(Color.red);
    g.drawString("Main Report",200,100);

  • Configure client printer in java.awt.print

    I have number of records in database.
    If User clicks on PRINT button (ON A JSP PAGE)each record should be printed(ON CLIENT PRINTER) on a separate sheet.
    I can only able to access printer connected to server not to client.
    I am using javax.print and java.awt.print packages

    I am not sure this..
    Instead of if pls give while and check:
    try{
    while(rsValue.next()) {
    g.setFont(fntHeading);
    g.setColor(Color.red);
    g.drawString("Main Report",200,100);

  • How to monitor a java service in windows environment

    Hi all,
    I have a 5 java services running on a windows box.
    I want to monitor one of those. This service is called "appnew " and appnew interacts with the oracle database.
    If it is running normally the application name as seen in the task manager is "appnew running" whenever there is some runtime exception the name changes to "appnew error".
    now I want to develop some external tool which can send me alert emails when we get runtime exceptions and the service name changes to
    "appnew error".
    I appreciate your help.
    Thanks in advance.

    The code you are using to change the process name to "appnew error" is the place you want to put your call to an e-mail launch.

  • Running a java service on linux (Redhat)

    I can create a basic script to run my java service, I can stop, and restart it from the command line when logged in. I have installed the script as a service. However, when I reboot, the service will not start. I have set it to be the very last thing to start on boot-up. I'm thinking it may have something to do with the fact that when I run a java program, it does not bring me back to the command line, it just 'hangs' until it is completed, and this particular java program will obviously hang indefinitely as it is a service.
    Any help would be GREATLY appreciated.
    Thanks,
    PAUL.

    Why not start it in the background? (a trailing ampersand)
    kind regards,
    Jos

  • Java Service Wrapper service is not being listed in the list of services

    I wrote a sample program which uses Java Service Wrapper. But it's not being listed as a Service in the list of Windows' Services. Any ideas why?
    Thanks.

    Hi Amar,
    need your help. i am facing the same issue.
    how did you resolved it . please let us know.
    Thanks,
    Santosh

  • Received error 1920 service print spooler failed to start verify that you have sufficient privileges to start system services

    In installing Adobe XI Pro this error message was received "error 1920 service print spooler failed to start verify that you have sufficient privileges to start system services". What does this mean and how can I get this installed?

    It very much means what it says - you do not have sufficient administrative privileges and something on your system is blocking the (virtual) PDF printer driver from being installed.
    Mylenium

  • Acrobat 8.1.7 -- Error 1920.Service Print Spooler?

    I have a valid key on an installed version of Adobe Acrobat 8.1.7. (AA8 Standard installed on a XP system) 
    It fails to create a PDF document and the Error 1920 apprears before it shuts down.
    When, per representative suggestion, I attempt to uninstall it and then re-install with the valid key, it then reports:
    Error 1920.Service Print Spooler (Spooler) failed to start.  Verify that you have sufficient priviledges to start system services. 
    I verified that I have a valid key on My Adobe using my email address, etc. 
    But I see no way out of this 'dead end'.  
    After attempting to remove or repair the installation in add/remove programs, I get the support info: 
    Adobe Acrobat 8.1.7 - CPSID_50029
    But when I go there I see nothing that tells me how to fix the problem.
    How do I unstall and re-install this so I can continue to use my AA8 on my XP system? 

    David:
    I found that helpful input, yes.
    The tech I spoke with told me to use a cleaner program to force erasure so
    I could reinstall it.
    He failed to tell me that you better be sure you have your original disk,
    because you can't download AA8 via a web.
    The best solution is to upgrade, which I would be more likely consider if
    some consideration were given for all the headaches of trying to get AA8
    back up and running.
    The principal being "If you can't make what I already have work, why should
    I pay for your update?"
    I will continue to look for the disc and let you know how that goes....
    Dave

  • Intermittent problem in Coldfusion 9, BlazeDS with Java Service class and CFCProxy

    If that title doesn't scare you, you might be able to help.
    I believe there is a bug in Coldfusion 9's version of CFCProxy.
    Tech Stack:
    Flex Application
    BlazeDS (stock with CF9)
    Java Service class (java-amf BlazeDS endpoint)
    Coldfusion business tier, invoked by the Java Service class using CFCProxy
    Tomcat 6 on Java 1.6
    Linux or Windows servers, both exhibit same behavior
    SQL Server database
    Problem:
    When Flex calls a Java service method through BlazeDS that invokes a Coldfusion CFC through CFCProxy, and the method called in the Coldfusion CFC includes a large query (10 fields, 1000+ records returned), we intermittently (1 out of ~5 times) receive the following exception:
    java.lang.NullPointerException
        at coldfusion.runtime.NeoPageContext.popBody(NeoPageContext.java:1925)
        at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:57)
        at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
        at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
        at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
        at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:491)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:437)
        at coldfusion.cfc.CFCProxyFilter.invoke(CFCProxyFilter.java:56)
        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381)
        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
        at coldfusion.cfc.CFCProxy.doInvoke(CFCProxy.java:281)
        at coldfusion.cfc.CFCProxy.invoke(CFCProxy.java:193)
        at com.lampo.mapping.service.MapToolWebService.makeCfcProxyCall(MapToolWebService.java:1326)
        at com.lampo.mapping.service.MapToolWebService.getTerritoryList(MapToolWebService.java:609)
        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:597)
        at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)
        at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1005)
        at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)
        at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
        at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
        at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
        at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)
        at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
        at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:353)
        at coldfusion.flex.ColdfusionMessageBrokerServlet.service(ColdfusionMessageBrokerServlet.jav a:114)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at coldfusion.filter.FlashRequestControlFilter.doFilter(FlashRequestControlFilter.java:71)
        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:662)
    Attempts to diagnose:
    These things remove the problem:
    CF8 works perfectly with the identical code, never fails.
    Calling the same Coldfusion CFC method with the large query (10 fields, 1000+ records returned) from another CFC 100+ times never fails.
    Using a Coldfusion service class (a "my-cfamf" BlazeDS endpoint) never fails. However, we need to use a Java service class because we are using ~40 Java value objects (VOs) that correspond to ~40 auto-generated Actionscript VOs. BlazeDS won't correctly deserialize the Actionscript VOs into the Java VOs with a Coldfusion service class.
    If I replace the large query with a Sleep(5000) instead, it never fails.
    These things don't remove the problem:
    Using the latest Microsoft JDBC driver doesn't help.
    Even if the Coldfusion method returns an empty resultset (i.e., just calls the query and doesn't do any other work or return anything), the call still fails intermittently.
    If the Coldfusion CFC with the method in question is instantiated and stored in SERVER scope as a singleton across multiple requests with CFCProxy, doesn't help.
    Different large (1000+ record queries) all fail in the same way.
    Caching the query doesn't help
    Changes in the datasource configuration doesn't help
    Using the older version of BlazeDS doesn't help
    With all of these tests, I believe it comes down to a problem in the combination between CFCProxy and large queries. There may be more to it, but that is what we've narrowed it down to.
    Any insight would be very welcome.

    Hi Frank
    The page is ADF bound, I've added the page source and the adfc-config source below :
    Page
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:commandButton text="commandButton 1" id="cb1"
                              actionListener="#{test.testws}"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>adfc-config
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="view1">
        <page>/view1.jspx</page>
      </view>
      <managed-bean id="__4">
        <managed-bean-name id="__3">test</managed-bean-name>
        <managed-bean-class id="__2">ch.mit.test.test</managed-bean-class>
        <managed-bean-scope id="__1">request</managed-bean-scope>
      </managed-bean>
    </adfc-config>It seems to be the same sort of problem as in Re: Error in ADF Web Service Connection
    Regards
    Paul

  • Workflow step (Approve Action) calling custom Java Service and "passing params"

    Good Afternoon, Fellow Coders!
    Normally I research and do proof of concepts until I find a solution but given super tight deadlines, I just don't have time - so I need your help.
    I am trying to have an Workflow Approve Action (Workflow Exit Event idocScript call) call a Custom Component (Java Service) AND "pass" some kind of parameters (bare minimum dDocName)
    In a perfect world it would be as simple as:    processContentInfo(String dDocName, String xMyCode1, String xMyCode2);
    But since I am calling the Java Service from idocScript (via executeService) I cannot directly pass params via the API.
    Is there a simple way to do this??
    It seems like if you can't directly pass params you could at least set them in the managed container (m_binder) and just know to pick them up on the Java side via some DataBinder like m_binder.getLocal(
    Am I missing a simple idocScript function that will let you do this?
    Note: I am NOT executing the Service from a URL so the normal ?param1&param2 -> m_binder.getLocal  solution is no good.
    Also, Bex's book warns about Service Classes "not easily being able to call other UCM Services"....  My Custom Service needs to do exactly that (as well as JDBC and other stuff). Is this really an issue??
    Seems like as long as I have dDocName I could use RIDC to hit whatever I want as long as I know how to use a binder, etc - is there some mystic nuance that prevents this?  Or was he just saying it's hard UNLESS you know RIDC well??
    Any and all quality advice is appreciated!  And please, try to give me a detailed answer as opposed to something vague like "try a Service Handler", I need something I can quickly digest.
    Thanks in advance!

    You can set parameters for the service call by setting Idoc Script variables before you call executeService.
    <$dDocName="TEST12345"$>
    <$param1="09876"$>
    <$param2="ABCDEFG"$>
    These variables are then available via the service DataBinder.
    Here is information about how to execute a service from a custom component. There should not be any issues doing this.
    http://www.redstonecontentsolutions.com/5/post/2012/05/executing-a-service-from-aservicehandler.html
    http://jonathanhult.com/blog/2012/06/execute-a-service-from-a-java-filter/
    Jonathan
    http://jonathanhult.com

  • RFC adapter not  started (Error starting AS Java Service XPI Adapter)

    Dear Experts,
    We have recently Upgraded our sustem from XI3.0 to PI 7.1, and have encountered a peculiar error in RFC adapter which could not be started
    error says:   Error starting AS Java Service XPI Adapter: RFC
    corresponding instance when started says
    Error starting AS Java Service XPI Adapter: RFC on DVEBMGS00
    Hence our RFC channels are not functioning
    Please help
    Regards,
    Rana De

    can you try to restart XPI Adapter:RFC in NWA. if still it throws error then try to restart java stack.

  • Java Service Launcher Problems

    I am trying to get a java application running as a windows service. I have been using java service launcher because it is free and am unable to get the program running. It installs the service fine and if I run jsl -debug or jsl -run then the app executes fine, but if I try to start the service its reports that it cannot be started and then the service gets stuck in Starting. The app recieves messages from another server and uses this info to populate a database.
    Thanks,
    D

    I now have the service starting but the app cant seem to connect to the remote computer. It is logging so it must be executing. I have changed the service to run as administartor and restarted the service but it still cant connect.
    Thnks,
    D

Maybe you are looking for

  • 0material_attr

    Hi all, I am facing error while scheduling infopackage for 0MATERIAL_ATTR. I have ECC source system. 0BASIC_MATL  is not a valid. amit

  • Roland GI 20 USB Driver Problem

    I have an iMacG5 and have a Roland GI 20 USB interface for my 13pin guitar.I get this message after succesfully installing the driver: Right when I turn on the unit. "/System/Library/Extension/RDUSB0040Dev.kext" was installed improperly and cannot be

  • Top half much darker !!

    Just opened my new I-Mac, 24", and to my surprise the display has two kind of colours,like is fading away from middle screen to the top. Reading those forums, it seems that the 20" had problems. Am I the only one ? Is that supposed to be normal or is

  • How to log multi channel simultaniously

    I am using signal express v.2.5.0  with a Keitley 2701 and a 7700 20ch multiplex card. I can not figure it out: how to log several channels symultaniously. For example i like to log 10 temperature's in a device at the same time. How to configure sign

  • E-REC  alias

    hi I am new in E-recruitment. during creation requisition under general information tab there is one field alias. What is alias in E-recruitment ? it is mandatory to fill this field ? is this data influence other datas ? for example job posting or pu