Add component to PanelBox from java
Hi,
I'm trying to create a RichPanelBox from java that has 3 buttons on the toolbar and has images in the body.
To create the panel:
RichPanelBox pb = new RichPanelBox();
To create the toolbar:
RichToolbar tbr = new RichToolbar();
To insert buttom in the toolbar:
tbr.setParent(cb1);
To insert the toolbar in the panelBox:
pb.setToolbar(tbr);
But i don`t know what i`m doing wrong. Can aniyone help me, please?
I tried this and it was working fine.
RichCommandButton rcb = new RichCommandButton();
rcb.setId("__001");
rcb.setText("DynamicBtn1");
RichCommandButton rcb1 = new RichCommandButton();
rcb1.setId("__001");
rcb1.setText("DynamicBtn2");
RichToolbar tbr = new RichToolbar();
tbr.setId("g2");
tbr.getChildren().add(rcb1);
tbr.getChildren().add(rcb);
RichPanelBox pb = new RichPanelBox();
pb.setToolbar(tbr);
pb.setText("TaskDynamic_" + 1);
this.getPg1().getChildren().add(pb);Here this.getPg1() is the component binding of the existing component to which i am adding the new component as child's. \
May be you are missing the binding of the container component to which you need to add the child`s.
Thanks,
TK
Similar Messages
-
Help:create tree node dynamically from java code...
hi there...can anyone give me solution how to create or add tree node dynamically from java code???
currently i am using tree node to handle my menu...i try to create tree and add treenode dynamically from .java page, but it failed...can anyone give solution how to create tree ui from java code, so i can create a dynamic menu...thanz before...Hi:
Just put the statements you would normally put on a sqlplus command line in jdbc statements and execute them?
http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html#0.1_executeUpdate
MJG -
Calling a VB Com component from Java
Hi,
I wish to call some legacy VB 6 COM dlls from some new Java code I am writing. I was looking (just read quickly haven't tried the examples yet) at the ActiveX Bridge documentation and get the impression that it only goes one way -i.e. make Java into an ActiveX Component to be used from VB, whereas I wish to call VB from Java.
Have I missed something or is this not the way to go to get to the legacy code?
The legacy code also has an MIDL file. Ideally, I would love to just be able to access that from Java, but I can't find any (non-Microsoft VJ++ based) tools to help with either converting MIDL to IDL so I can use Sun's idlj.exe or just converting the MIDL to Java.
Any pointers/tips on any of this would be appreciated.
Thanks,
CherylI looked at Jacob, but didn't get far either.
Right now I'm looking at Jawin -
http://jawinproject.sourceforge.net/jawin.html. Not
making a lot of headway yet.
IDL is OMG's IDL (Interface Definition Language) -
http://www.omg.org/gettingstarted/omg_idl.htm.
MIDL is Microsoft's version of IDL for COM - I believe
it uses IDL., but can't seem to find a conversion
tool.
idlj.exe is in the bin directory of whatever JDK you
have loaded. This tool will convert OMG IDL into Java.
Good luck to you.Hi,
I am facing a similar problem. I need to access a vb dll methods. I took and look at jawin and installed it.
I want to invoke a method in the dll from my servlet.
So do I have to create stubs for it. I opened the Type Browser that comes with jawin. It is a GUI through which I am supposed to create stub java files for that dll. But I am getting this error:
[EXCEPTION] InfoPanel.generateInfo() failed to generated info
org.jawin.browser.xsl.TransformationException: TransformationManager.cacheStyles
heet() failed to compile stylesheet from: stylesheets/info/library.xsl - javax.x
ml.transform.TransformerConfigurationException: javax.xml.transform.TransformerC
onfigurationException: javax.xml.transform.TransformerException: java.net.Malfor
medURLException: no protocol: stylesheets/info/library.xsl
at org.jawin.browser.xsl.TransformationManager.cacheStylesheet(Transform
ationManager.java:130)
at org.jawin.browser.xsl.TransformationManager.checkStylesheet(Transform
ationManager.java:180)
at org.jawin.browser.xsl.TransformationManager.transform(TransformationM
anager.java:147)
at org.jawin.browser.info.InfoPanel.generateInfo(InfoPanel.java:68)
at org.jawin.browser.info.InfoPanel.selectionChanged(InfoPanel.java:61)
at org.jawin.browser.tree.TypeDataTree.fireSelectionChanged(TypeDataTree
.java:61)
Is anyone sucessfully able to generate stub files for the dll in jawin using Type Browser ?
Please let me know
my mailid is tanveerrameez(at) yahoo dot com
thanks
Tanveer -
Able to add component in approved Purchase Req from PM
Hello,
I have scenario where I create Purchase requisition from Plant Maintenance Work order and I have collective functionality turn on, means if I add component in the work order it will be added in the Purchase requisition created against that work order. now my requirement is if my purchase requisition is approved system should not allow me to add the component to same purchase requisition from PM work order.
any help would be highly appreciated.
Regards
ShailendraDear shailendra soni,
Have you tried Changeability of Purchasing Document During/After Release.
Path is :SPRO->MM->Purchasing->PR-Rel.Str.Procedure W/Classification->Setup Procedure with Classification-Release indicator
Here as per your release code - select required option which suits you - (1- cannot be changed)
Refer Image
reg,
Bhg -
Add ip address from Java.
Does anyone know if it is possible to add IP address to my pc from java? i.e i want my pc to have two ip address. (it is possible to add ip address from the control panel)
yeah it is indeed possible......
u can execute netsh command from the java program thru which u can add an ip address....
following is the source code.
the sameu can do for solaris....
i am workingon the same thing but my problem is that i can add and delete virtual ips fromt he java program but i have to set ehir status up and down .....is there any command in windows to do that?
import java.io.*;
class IPConfig
public static void main(String args[])
String ipAddress = args[0];
Runtime rt = Runtime.getRuntime();
Process p;
int index1, index2;
int flag = 0;
try
p = rt.exec("ping " + ipAddress);
/* BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));
String s="";
while((s=br.readLine())!=null)
System.out.println(s);
catch(Exception ex)
System.out.println("error ishere");
//now going to access arp table
try
p = rt.exec("arp -a");
BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));
String s="";
while((s=br.readLine())!=null)
// System.out.println("#" + s + "#");
index1 = s.indexOf(ipAddress);
index2 = s.indexOf("invalid");
if (index1!=-1 && index2 == -1)
flag = 1;
catch(Exception ex)
System.out.println("error ishere");
IPConfig obj = new IPConfig();
if (flag == 1)
System.out.println("\n\nThis IP already exists s");
else
System.out.println("\n\ndoes not exist");
obj.assignIP(ipAddress);
private void assignIP(String ip)
int osType = checkOS();
Process p;
if (osType == 1)
Runtime rt = Runtime.getRuntime();
try
p = rt.exec("netsh interface ip add address \"Local Area Connection\" " ip " 255.255.255.0");
catch(Exception ex)
System.out.println("error ishere");
private int checkOS()
String os = System.getProperties().getProperty("os.name");
System.out.println("\n\n\n\n#" + os + "#\n\n\n\n");
if (os.equals("Windows 2000"))
return 1;
else
return 0; -
When FireFox notifies me to update an add-on I usually do as I am told. Java Console comes up with updates so I update it. With other add-ons the item in the add-on list is changed giving its version number but with Java Console the list simply grows with yet another Java Console listed.
It's not a problem, I suppose, but I wonder why it works this way and if it should.You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension, you do not need them to run Java applets.
See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
Disable the Java Quick Starter extension: Tools -> Add-ons -> Extensions
* Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)
See http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0 -
Unable to connect the server, while open the rpt file in server from java.
Hi,
I have written one java class, that class deployed in solaris server. The BO server is avilable in another solaris server. i want to convert the rpt file to pdf format. for that i try to give the file path to the server for opening the rpt file, that time i got the follwoing error:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
Unable to connect to the server: uinbrdcsap02. --- Connection refused
(errno:239)---- Error code:-2147217387 Error code name:connectServer
at
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwR
eportSDKServerException(Unknown Source)
at
com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.connect
(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source)
at
com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Un
known Source)
at
com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initia
lize(Unknown Source)
*My java code is the following ..*
package com.ramco.report;
//Crystal Java Reporting Component (JRC) imports.
import java.io.File;
import java.io.FileInputStream;
import java.io.ByteArrayInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ByteArrayOutputStream;
import java.sql.Connection;
import java.sql.CallableStatement;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;
import com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions;
import java.util.Calendar;
import java.util.Properties;
import org.apache.log4j.Logger;
import org.apache.log4j.SimpleLayout;
import org.apache.log4j.FileAppender;
import java.net.InetAddress;
import java.net.UnknownHostException;
// Class file starting.
public class StandardReconReport
private Connection objConnection = null;
private DBConnection dbconnection = null;
private ByteArrayInputStream byteArrayInputStream =null;
private FileOutputStream fileOutputStream = null;
private ByteArrayOutputStream byteArrayOutputStream = null;
private CallableStatement callablestatement = null;
private CallableStatement callablestatement1 = null;
private ResultSet resultset1 = null;
private ResultSet resultset = null;
private String Deal_No = null;
private String Job_Date = null;
private String Reportservername = null;
private SimpleLayout layout = null;
private FileAppender appender = null;
private Logger logger = null;
private String DateTimeFormat = null;
private String Report_File_path =null;
private String Pdf_File_Name = null;
private Properties properties = null;
private String LogFilePath = null;
private String FileName = null;
private String FullLogFilePath = null;
private Statement statement = null;
private String Report_upload_path = null;
private String StanReconDir = null;
private String winandsol = null;
private com.crystaldecisions.sdk.occa.report.application.ReportClientDocument reportClientDoc = null;
private int count_tmp=0;
private String DATE_FORMAT = null;
private String dateformat = null;
private Calendar cal = null;
private SimpleDateFormat sdf = null;
private String reconfilename = null;
// Method for Generating Report.....
private void stanReportGeneration()
try
properties = new Properties();
properties.clear();
properties.load(new FileInputStream("GeneralInfo.properties"));
Reportservername = properties.getProperty("reportservername");
reconfilename = properties.getProperty("reconfilename");
layout = new SimpleLayout();
LogFilePath = properties.getProperty("logfilepath");
dateformat = dateTime1(properties.getProperty("dateformat1"));
StanReconDir = properties.getProperty("stanrecondir");
winandsol = properties.getProperty("windowsandsolaris");
if (new File(LogFilePath).exists())
LogFilePath = LogFilePathdateformatwinandsol;
if (new File(LogFilePath).exists())
else
new File(LogFilePath).mkdirs();
FileName = "STANRECONLOGFILE-";
FileName = FileNamedateformat".txt";
FullLogFilePath = LogFilePath+FileName;
appender = new FileAppender(layout,FullLogFilePath,false);
logger = Logger.getLogger("MyLogger");
logger.addAppender(appender);
DateTimeFormat = properties.getProperty("datetimeformat");
logger.info("The Start Recon Report Start Time: " +dateTime(DateTimeFormat));
logger.info("");
try
InetAddress address[] = InetAddress.getAllByName(Reportservername);
for (int i=0; i<address.length;i++)
logger.info("Report Server Name: " + address<i>.getHostName());
logger.info("Report Server Address: " + address<i>.getHostAddress());
logger.info("Report Server Canonical: " + address<i>.getCanonicalHostName());
catch (UnknownHostException e)
logger.error("The host "Reportservername"is not avilable");
Report_File_path = properties.getProperty("StandardReconReportpath");
logger.info("The Report File Name is : "+Report_File_path " - "dateTime(DateTimeFormat));
//Report_File_path="rassdk://"+Report_File_path;
try
//Getting the Database connection....
dbconnection = new DBConnection();
objConnection = dbconnection.getConnections();
statement = objConnection.createStatement();
String sqlQuery = "SELECT TRIM(PARAM_VALUE) FROM SYS_USER_PARAM WHERE COMPONENT = 'REPORT' AND LINE_NO = 1 AND PARAM_NAME = 'REPORT_DOWNLOADPATH' AND STATUS = 'A'";
resultset = statement.executeQuery(sqlQuery);
while(resultset.next())
Report_upload_path = resultset.getString(1);
logger.info("Report_upload_path from the DB: "+Report_upload_path);
catch (SQLException ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
catch(Exception ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
finally
if(statement!=null)
statement.close();
if(resultset!=null)
resultset.close();
if (new File(Report_upload_path).exists())
Report_upload_path = Report_upload_path+StanReconDir;
if (new File(Report_upload_path).exists())
System.out.println("Directory is avilable"+Report_upload_path);
else
new File(Report_upload_path).mkdirs();
Report_upload_path = Report_upload_pathwinandsoldateformat+winandsol;
if (new File(Report_upload_path).exists())
else
new File(Report_upload_path).mkdirs();
logger.info("Report_upload_path : "Report_upload_path" : "+dateTime(DateTimeFormat));
try
logger.info("Calling the REPORT_STAN_RECON_CON SP : "+dateTime(DateTimeFormat));
callablestatement = objConnection.prepareCall("{call REPORT_STAN_RECON_CON(?)}");
callablestatement.registerOutParameter(1, oracle.jdbc.driver.OracleTypes.CURSOR);
callablestatement.execute();
resultset=(ResultSet)callablestatement.getObject(1);
if(resultset!=null)
while(resultset.next())
count_tmp = count_tmp+1;
logger.info("");
Deal_No = resultset.getString(1);
Job_Date = resultset.getString(2);
DATE_FORMAT = resultset.getString(3);
Job_Date = Job_Date.substring(0,10);
logger.info("*********** PDF Convertion Starting for a Deal No: " +Deal_No " :: "dateTime(DateTimeFormat));
Pdf_File_Name = Report_upload_pathreconfilenameDeal_No"-"DATE_FORMAT+".pdf";
Job_Date = Job_Date.replace('-', '/');
logger.info("The Deal_No is : "+Deal_No " - "dateTime(DateTimeFormat));
logger.info("The Job_Date is : "+Job_Date " - "dateTime(DateTimeFormat));
try
reportClientDoc = new com.crystaldecisions.sdk.occa.report.application.ReportClientDocument();
reportClientDoc.setReportAppServer(Reportservername);
logger.info("Report App server Name := "+ reportClientDoc.getReportAppServer());
logger.info("Report_File_path := "+ Report_File_path);
reportClientDoc.preCreateServerAgent(true);
reportClientDoc.open(Report_File_path,0);
logger.info("After opening the RTF file for : "+Deal_No " Deal_No - "dateTime(DateTimeFormat));
callablestatement1 = objConnection.prepareCall("{call REPORT_STANDARD_RECON(?,?,?,?)}");
callablestatement1.setString(1, Job_Date);
callablestatement1.setString(2, Deal_No);
callablestatement1.setString(3,"");
callablestatement1.registerOutParameter(4, oracle.jdbc.driver.OracleTypes.CURSOR);
callablestatement1.execute();
resultset1=(ResultSet)callablestatement1.getObject(4);
String tableAlias = reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();
reportClientDoc.refreshReportDocument();
reportClientDoc.getDatabaseController().setDataSource(resultset1, tableAlias , "Result Set");
reportClientDoc.refreshReportDocument();
ExportOptions oExportOptions = new ExportOptions();
oExportOptions.setExportFormatType(ReportExportFormat.RTF);
byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
logger.info("After exporting the report file to PDF file for the : "+Deal_No " Deal_No - "dateTime(DateTimeFormat));
//Use the Java I/O libraries to write the exported content to the file system.
byte byteArray[] = new byte[byteArrayInputStream.available()];
//Create a new file that will contain the exported result.
logger.info("Successfully exported report to " + Report_File_path" - "dateTime(DateTimeFormat));
logger.info("*********** PDF Convertion Ending for a Deal : "Deal_No" "+dateTime(DateTimeFormat));
logger.info("");
Deal_No = null;
Job_Date = null;
catch (SQLException ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
catch (IOException ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
catch (Exception ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
finally
if(byteArrayInputStream!=null)
byteArrayInputStream.close();
if(byteArrayOutputStream!=null)
byteArrayOutputStream.close();
if(fileOutputStream!=null)
fileOutputStream.close();
if(callablestatement1!=null)
callablestatement1.close();
if(resultset1!=null)
resultset1.close();
if(reportClientDoc!=null)
reportClientDoc.close();
if(count_tmp==0)
logger.info("");
logger.info(" $$$$$$$$ There is NO DATA for generating the Report $$$$$$$: " +dateTime(DateTimeFormat));
catch (SQLException ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
catch (Exception ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
finally
if(callablestatement!=null)
callablestatement.close();
if(resultset!=null)
resultset.close();
if(objConnection!=null)
objConnection.close();
if(callablestatement1!=null)
callablestatement1.close();
if(resultset1!=null)
resultset1.close();
catch (IOException ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
catch (Exception ex)
ex.printStackTrace();
System.out.println(ex);
logger.error(ex);
finally
properties.clear();
logger.info("");
logger.info("*******Standard Recon Report End Time*******: "+dateTime(DateTimeFormat));
// Getting the current date and time..
public String dateTime(String dateFormat)
cal = Calendar.getInstance();
sdf = new SimpleDateFormat(dateFormat);
return sdf.format(cal.getTime());
//Getting the Yesterday Date and time...
public String dateTime1(String dateFormat)
cal = Calendar.getInstance();
cal.add(Calendar.DATE, -1);
sdf = new SimpleDateFormat(dateFormat);
return sdf.format(cal.getTime());
public static void main(String[] args) {
StandardReconReport SR = new StandardReconReport();
SR.stanReportGeneration();
For the above code i given the report parameter from the property file.
reportservername=servername
datagenreportpath=rassdk\://C\:
MyEclipseWorkPlace
IDSREPORTGENERATION
REPORTFILES
STANDARD_RECON_REPORT.rpt
The code is working fin, while i try to connect the BO which is avilble in Windows server, but this is not working if the BO is avilble in solaris server.
Any bodies please help
Edited by: velmurugan.spn on Sep 12, 2009 6:38 AMHi,
Not able to find Report - Standard templates or Report - Custom templates view in Administration - BIP reports in Siebel 8.1.1.3?
We have applied 8.1.1.3 patch on 8.1.1.0
below are the steps followed
Reports are not generated after 8.1.1.3 patch installtion.
we have also followed to below steps mentioned for this issue in oracle support.
"In order to resolve this behavior it is necessary to ensure that the 8.1.1.3 FixPack has been applied to the Siebel Tools installation. This will provide an additional .zip file in the REPPATCH folder of the Siebel Tools installation. Once this has been done please then follow the configuration steps as documented :
change sysprefix to X_ before sif import and chage back to SBL_ after sif import.
1) Import the sif files from Siebel\8.1\Tools_1\REPPATCH\12-1VMBCSV.zip
2) Import the 4 SIF files in the following order:
S_XMLP_REP_TMPL_02112010.sif
SBL_XMLP_REPORT_SELECTION_FLG.sif
Report Template BC.sif
Report Template Registration Applet.sif
3)Apply the DDL for table S_XMLP_REP_TMPL and compile repository
Once the above steps have been completed the Selected Record flag will appear in the Report Template Registration views."
we still not able to generated able to generate reports even after following above steps.
Thanks
Sean -
Accessing COM from Java using JCOM
When I tried to access a simple COM component with the com2java generated files,
I got the following error. Can someone help me with this?
<Nov 8, 2001 3:37:24 PM CST> <Error> <HTTP> <[WebAppServletContext(366665,Defaul
tWebApp,/DefaultWebApp)] Servlet failed with IOException
AutomationException: 0x80070005 - General access denied error
at com.bea.jcom.bm.b(bm.java)
at com.bea.jcom.Rpc.a(Rpc.java)
at com.bea.jcom.bf.a(bf.java)
at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
at com.bea.jcom.Dispatch.<init>(Dispatch.java)
at com.ak.jcomtest._JComTestProxy.<init>(_JComTestProxy.java:33)
at com.ak.jcomtest.JComTest.<init>(JComTest.java:105)
at com.ak.jcomtest.JComTest.<init>(JComTest.java:77)
at jsp_servlet.__jcom._jspService(__jcom.java:91)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>I did everything earlier except the second point you mentioned. Everything started
working as soon as I added a line to call com.bea.jcom.AuthInfo.setDefault() method.
I didn't think this was necessary since I already gave permissions to that user
using DCOMCNFG. Thanks for you help.
"BEA jCOM Support" <[email protected]> wrote:
>
Your jcom.log indicates you are trying to access the COM object with
Authentication
"BXDOMAIN/akumar". Add this user to the default access/launch permissions
(using
DCOMCNFG) on the machine hosting the COM object.
Also, make sure you put this in your Java code:
com.bea.jcom.AuthInfo.setDefault("BXDOMAIN", "akumar", "<password>");
"Anil Kumar" <[email protected]> wrote:
Here's the log
jCOM checkconfig 6.1 Beta - Copyright (C) 2001 BEA Systems, Inc. Copyright
(C)
1999-2001 Linar Ltd. and Intrinsyc Software, Inc. http://www.bea.com/jcom/
--- Checking OS ---
Microsoft Windows NT 5.0 (Build: 2195) Service Pack 2
--- Checking Time ---
Time: 15:20:49
Date: 11/13/01
--- opening typelib: JComTestProject.exe ---
Class Name = JComTest
Class Id = 742db055-77df-404a-a579-e0cbfd3007a7
Class Name = JComTestProject.JComTest
AppID = {742DB055-77DF-404A-A579-E0CBFD3007A7}
{742DB055-77DF-404A-A579-E0CBFD3007A7} = JComTestProject.JComTest
Implemented Categories = no value(259)
{40FC6ED5-2438-11CF-A3DB-080036F12502} = no value(259)
LocalServer32 = D:\Program Files\Microsoft Visual Studio\VB98\Projects\JCom\JComTestProject.exe
("D:\Program Files\Microsoft Visual Studio\VB98\Projects\JCom\JComTestProject.exe"
file exists)
ProgID = JComTestProject.JComTest
Programmable = no value(259)
TypeLib = {E0BF28D6-6347-4017-8D2E-52B145CE47DA}
VERSION = 2.0
--- Checking Username ---
USER:WARANGAL\akumar
GROUP:WARANGAL\None
GROUP:\Everyone
ALIAS:WARANGAL\ORA_DBA
ALIAS:BUILTIN\Administrators
ALIAS:BUILTIN\Users
ALIAS:BUILTIN\Power Users
GROUP:\LOCAL
GROUP:NT AUTHORITY\INTERACTIVE
GROUP:NT AUTHORITY\Authenticated Users
--- Checking DCOM settings ---
DCOM version supports accessing Java from COM
EnableDCOM = Y
DefaultLaunchPermission:
Access enabled for NT AUTHORITY\SYSTEM
Access enabled for NT AUTHORITY\INTERACTIVE
Access enabled for BUILTIN\Administrators
--- Connecting to SCM ---
Connecting to SCM on localhost
Connect successful
--- IP configuration ---
Hostname = warangal.bxsys.com
Address 0 = 172.18.32.102
Connecting to SCM on 172.18.32.102
Connect successful
Address 1 = 169.254.25.129
Connecting to SCM on 169.254.25.129
Connect successful
--- Winsock Information ---
Version: 202
Description: WinSock 2.0
--- Environment Variables ---
ALLUSERSPROFILE=C:\WINNT\Profiles\All Users
APPDATA=C:\WINNT\Profiles\anil\Application Data
BOOKSHELF=D:\ifor\WIN\BIN\EN_US
CLASSPATH=.;d:\mystuff\javastuff\jarz;d:\weblogic\lib\weblogic510sp6boot.jar;d:/jdk122/javamail112/mail.jar;d:/jdk122/jaf-1.0.1/activation.jar;d:/jdk122/jsdk2.1/server.jar;d:/jdk122/jsdk2.1/servlet.jar;D:\WebLogicCommerceServer3.2\classes;D:\Oracle\Ora81\jdbc\lib\classes111.zip;D:\weblogic\lib\WebLogic_RDBMS.jar;D:\Oracle\Ora81\orb\classes\yoj.jar;D:\Oracle\Ora81\orb\classes\share.zip
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=WARANGAL
ComSpec=C:\WINNT\system32\cmd.exe
HELP=D:\IBMVJava3.0\eab\;D:\IBMVJava20\eab\;D:\ifor\WIN\BIN
HOMEDRIVE=C:
HOMEPATH=\
I4_INSTALL_DRIVE=D:
I4_LANG=EN_US
IPF_PATH32=D:\ifor\WIN\BIN\EN_US
J2EE_CLASSPATH=D:\j2ee121\lib\cloudscape\cloudspace.jar;
JAVA_HOME=d:\jdk13
LOGONSERVER=\\WARANGAL
NLSPATH=D:\ifor\LS\MSG\%L\%N
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=d:\jdk13\bin;D:\Oracle\Ora81\bin;D:\Oracle\Ora81\orb\bin;C:\WINNT;C:\WINNT\system32;C:\WINNT\system32\WBEM;d:\jdk13\bin;D:\CVS;D:\ifor\WIN\BIN;D:\ifor\WIN\BIN\EN_US;D:\JavaStuff\jakarta-ant-1.3\bin;D:\BEA\wlserver6.1\jcom\bin;D:\WebGain\VisualCafe\Java2\Bin;C:\Program
Files\Common Files\WebGain Shared;D:\WebGain\VisualCafe\Bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0803
ProgramFiles=C:\Program Files
PROMPT=$P$G
StarTeam=D:\StarTeam 4.0\StarTeam.ini
StarTeamApp=D:\StarTeam 4.0
STLicense=D:\StarTeam 4.0
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=D:\TEMP
TMP=D:\TEMP
USERDOMAIN=WARANGAL
USERNAME=akumar
USERPROFILE=C:\WINNT\Profiles\anil
windir=C:\WINNT
WorkstationID=D:\StarTeam 4.0\ConnectionManager.ini
"Damon Hon" <[email protected]> wrote:
hi anil,
can you run the checkconfig tool as well
checkconfig /typelib <path to tlb> config.log
and post the log
thanks
damon
"Anil Kumar" <[email protected]> wrote in message
news:[email protected]...
Hi Damon,
I am just calling the default constructor of the com2Java generatedclass(in this
case, it is JComTest.class) from a simple JSP. I am not calling anymethods on
this component. Here are the contents of the log file.
jCOM version 6.1 Beta logger started in immediate mode at Tue Nov
13
12:32:41
CST 2001 at level 3 (VERBOSE)
License:
Classloader is bootstrap
java.version is 1.3.1
java.vendor is Sun Microsystems Inc.
java.class.path is..;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;D:\BEA\wlserver6.1\jcom\lib\jcom.
jar;D:\Projects\JCom\src
java.library.path isD:\BEA\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;d:\jdk13\bin;D:\Oracle\
Ora81\bin;D:\Oracle\Ora81\orb\bin;C:\WINNT;C:\WINNT\system32;C:\WINNT\system
32\WBEM;d:\jdk13\bin;D:\CVS;D:\ifor\WIN\BIN;D:\ifor\WIN\BIN\EN_US;D:\JavaStu
ff\jakarta-ant-1.3\bin;D:\BEA\wlserver6.1\jcom\bin;D:\WebGain\VisualCafe\Jav
a2\Bin;C:\Program
Files\Common Files\WebGain Shared;D:\WebGain\VisualCafe\Bin;
os.name/os.arch/os.version is Windows 2000/x86/5.0
1005676361251 +: New RemOxidResolver initialised for Net={{ 0x7,127.0.0.1[135]}}
Sec={}
1005676361271 +: Looking for free connection handler to 127.0.0.1[135]for
BXDOMAIN/akumar
1005676361311 : OXID Resolver started. Listening on port 3895
1005676361321 : Object Exporter binding is Net={{ 0x7,172.18.32.102[3896]},
{ 0x7, 169.254.25.129[3896]}} Sec={{ 0xa, 0xffff, }, { 0x0, 0x0,
OXID
is 1005676361311
1005676361331 +: Opening a TCP/IP connection to 127.0.0.1[135] withauth
BXDOMAIN/akumar
1005676361361 : Sending RemoteActivation request to Net={{ 0x7,127.0.0.1[135]}}
Sec={} to activate cls/iid742db055-77df-404a-a579-e0cbfd3007a7/fbcd1246-3557-4b95-8046-cfec093310b5
1005676361832 : Sending IRemoteActivation::RemoteActivation request,with
RPC
call id 2 on ipid null
1005676361892 : Received the response toIRemoteActivation::RemoteActivation
request, with RPC call id 2
1005676361902 +: Remote server's version: 5.1
1005676361942 *: Error activating742db055-77df-404a-a579-e0cbfd3007a7/fbcd1246-3557-4b95-8046-cfec093310b5:
AutomationException: 0x80070005 - General access denied error
"Damon Hon" <[email protected]> wrote:
hi anil,
can you post the snippet of java code that is calling the methods
from your COM object and post the following logs
jcom.log
- In your java code, add the following line to the start of your
initialization code.
com.bea.jcom.Log.logImmediately(3, "c:\\temp\\jcom.log");
config.log
- Run the checkconfig utility to generate this log
checkconfig /typelib <path to tlb> config.log
thanks
damon
"Anil Kumar" <[email protected]> wrote in message
news:[email protected]...
Thanks for the info. I had already done this before. I checked
everything
a dozen
times. I am not sure why this is happening. Please let me know,
if
there
are any
other ideas.
"Damon Hon" <[email protected]> wrote:
hi anil,
The exception you are getting, indicates that your java client
does
not
have
sufficient permissions to access your com component.
if you are running your java code and com component on the same
machine,
- make sure that your jcom/bin directory is in your path environment
variable
- run the DCOMCNFG tool to configure accesss for the interactiveuser
or the
user you are logged in as.
if you are not running your java code under windows, add this
call
in
your
java code:
com.bea.jcom.AuthInfo.setDefault("nt domain", "user", "password");
- use the DCOMCNFG tool to configure has dcom access to the
com
component for this user
let me know if this helps
damon
"Anil Kumar" <[email protected]> wrote in message
news:[email protected]...
When I tried to access a simple COM component with the com2java
generated
files,
I got the following error. Can someone help me with this?
<Nov 8, 2001 3:37:24 PM CST> <Error> <HTTP><[WebAppServletContext(366665,Defaul
tWebApp,/DefaultWebApp)] Servlet failed with IOException
AutomationException: 0x80070005 - General access denied error
at com.bea.jcom.bm.b(bm.java)
at com.bea.jcom.Rpc.a(Rpc.java)
at com.bea.jcom.bf.a(bf.java)
at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
at com.bea.jcom.Dispatch.<init>(Dispatch.java)
at
com.ak.jcomtest._JComTestProxy.<init>(_JComTestProxy.java:33)
at com.ak.jcomtest.JComTest.<init>(JComTest.java:105)
at com.ak.jcomtest.JComTest.<init>(JComTest.java:77)
at jsp_servlet.__jcom._jspService(__jcom.java:91)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> -
Nwdi-managed access of pcd-objects from java web dynpro
Hi,
im am trying to access portal pcd-objects from a java web dynpro component (namely getting and setting personalized iview properties). for locally managed web dynpro components this works fine with the code below.
when i try the same with a nwdi managed web dynpro component i run into problems regarding references to used dcs. for instance, i need to reference used dc SAP_JTECHS/tc/epbc/pcm/adminapi/java because the build needs tcepbcpcmadminapijava.jar which is inside the mentioned dc. but access permissions of this dc don't allow the dependency. when i try to "add used dc ..." in nwds i get the error message: illegal dependency: access list does not allow use of ...
has someone any solution for this problem? are there other ways of accessing pcd-objects from java web dynpro (nwdi managed!)?
thanks
heiko
private static void savePersonalizationData(String value) {
try {
IAttributeSet attributeSet = (IAttributeSet) getIview(IVIEW);
attributeSet.putAttribute(ATTRIBUTE, value);
attributeSet.save();
} catch (Exception e) {
private static Object getIview(String pcdPath) throws Exception {
Hashtable env = new Hashtable();
env.put(
com.sap.portal.directory.Constants.REQUESTED_ASPECT,
com.sap.portal.pcm.admin.PcmConstants.ASPECT_SEMANTICS);
env.put(
Context.SECURITY_PRINCIPAL,
WDClientUser.getCurrentUser().getSAPUser());
env.put(
IPcdContext.PCD_PERSONALIZATION_PRINCIPAL,
WDClientUser.getCurrentUser().getSAPUser());
InitialContext iCtx = new InitialContext(env);
return iCtx.lookup(pcdPath);Hi Kust,
To access the PCD objects the code you used looks ok for me but your main issues is related to the dc access permissions. This thread discussed about the similar issue. Please review this below thread.
/message/979328#979328 [original link is broken]
Regards
Krishna Reddy -
Unable to add component palette in jdeveloper
Hi,
Im unable to add component palette in jdeveloper, it is giving exception and the stack trace is here below, pls let me know the solution.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
java.lang.NullPointerException
at oracle.ideimpl.palette.PaletteImpl.populate(PaletteImpl.java:240)
at oracle.ideimpl.palette.PaletteWindowImpl.checkIfPopulated(PaletteWindowImpl.java:323)
at oracle.ideimpl.palette.PaletteWindowImpl.show(PaletteWindowImpl.java:364)
at oracle.ideimpl.palette.PaletteManagerImpl.handleEvent(PaletteManagerImpl.java:174)
at oracle.ide.IdeAction$1.run(IdeAction.java:579)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)Try copying the palette.xml file from jdev\multi\system to your system directory( jdev\system(9....). Also, what system are you using?
-
Hi.
I have few ActiveX components which I want to control from Java.
I have googled for some solutions and found the following:
1. Write a C code which will behave as a bridge between ActiveX component and Java (using JNI). But this seems to be rather very complicated :p
2. I have found one very interesting paper at javaworld (http://www.javaworld.com/javaworld/jw-03-1997/jw-03-avb-tech.html?page=7). They compare ActiveX components and Java Beans there. There is also stated that (for example) it is possible to "develop an ActiveX control in Visual Basic that opens a window and adds a C++ AVI player (an ActiveX control), and then operate the player from a Java applet." However, I can't find any sources or samples which shows how to do such things in practise.
Can anybody help me with this?
Many thanks
MisoSee Tool at
http://www.simtel.net/product.php[id]93010[SiteID]simtel.net -
Sales Order uplaod from JAVA to SAP R/3
Hi all,
My cousin is working on uploading Sales Order Document
from java server to R/3.
for that he is having a code from JCO jar.
the below is the file from which one can upload his SO details from JAVA to R/3.
But in this program he is just able to upload one Item detail for one Sales document.
but requirement is to upload 'n' item details for one Sales document.
Here is the Java code.
@author pega
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
Created on Jun 24, 2004
To change the template for this generated file go to
Window>Preferences>Java>Code Generation>Code and Comments
package com.sap.satyam.salesorder;
import java.sql.Timestamp;
import java.util.Calendar;
import com.sap.mw.jco.IFunctionTemplate;
import com.sap.mw.jco.IRepository;
import com.sap.mw.jco.JCO;
public class SalesOrder {
static final String SID = "R3";
static final String errorID = "E";
IRepository repository;
//String orderNumber = orderCreation("M-01","3000","0002",3,"ST");
int counter;
public SalesOrder()
try {
// Add a connection pool to the specified system
JCO.addClientPool(SID, // Alias for this pool
10, // Max. number of connections
"800", // SAP client
"develop", // userid
"bslabap", // password
"EN", // language
"172.18.33.20", // host name
"00");
// Create a new repository
repository = JCO.createRepository("MYRepository", SID);
catch (JCO.Exception ex) {
System.out.println("Caught an exception: \n" + ex);
// Retrieves and sales order Create
public void createSalesOrder(String PO_NO, String MAT,String RQTY,String CUSTMAT, String SOLD_NAME, String SOLD_STREET,String SOLD_COUNTRY, String SOLD_POST_CODE,String SHIP_NAME, String SHIP_STREET,String SHIP_COUNTRY, String SHIP_POST_CODE)
try {
// Get a function template from the repository
IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_CREATEFROMDAT1");
JCO.MetaData so_metadata = new JCO.MetaData("BAPI_SALESORDER_CREATEFROMDAT1");
// Create a function from the template
JCO.Function function = new JCO.Function(ftemplate);
// Get a client from the pool
JCO.Client client = JCO.getClient(SID);
// Fill in input parameters
// Header
JCO.ParameterList input = function.getImportParameterList();
JCO.ParameterList tables = function.getTableParameterList();
JCO.Structure input_header = input.getStructure("ORDER_HEADER_IN");
// Item details
JCO.Table table_item = tables.getTable("ORDER_ITEMS_IN");
//JCO.Structure input_item = table_item.getStructure("ORDER_ITEMS_IN");
// Partner details
JCO.Table table_partner = tables.getTable("ORDER_PARTNERS");
// Populate the header details
input_header.setValue("ZAD5","DOC_TYPE"); // Document Type
input_header.setValue("3000","SALES_ORG"); // Sales Organization
input_header.setValue("10","DISTR_CHAN"); // Distribution Channel
input_header.setValue("00","DIVISION"); // Distribution Channel
input_header.setValue("20041212","REQ_DATE_H");// can be changed in yyyymmdd (Requested date)
input_header.setValue(PO_NO,"PURCH_NO_C");// can be changed ( Customer PO Number )
//Populate the item detalis
table_item.appendRow();
table_item.setRow(1);
table_item.setValue("000010","ITM_NUMBER");
table_item.setValue("AA01","PO_ITM_NO");// can be changed
table_item.setValue("IAD-SC3000","MATERIAL");
table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
table_item.appendRow();
table_item.setRow(2);
table_item.setValue("000020","ITM_NUMBER");
table_item.setValue("AA01","PO_ITM_NO");// can be changed
table_item.setValue("IAD-SC3000","MATERIAL");
table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
//Populate the Partner details
// Sold to Party
table_partner.appendRow();
table_partner.setRow(1);
table_partner.setValue("AG","PARTN_ROLE");
//table_partner.setValue("0000002007","PARTN_NUMB");
table_partner.setValue("0000100067","PARTN_NUMB");
table_partner.setValue(SOLD_NAME,"NAME"); // can be changed
table_partner.setValue(SOLD_STREET,"STREET"); // can be changed
table_partner.setValue(SOLD_COUNTRY,"COUNTRY");
table_partner.setValue(SOLD_POST_CODE,"POSTL_CODE"); // can be changed
// Ship to party
table_partner.appendRow();
table_partner.setRow(2);
table_partner.setValue("WE","PARTN_ROLE");
table_partner.setValue("0000100067","PARTN_NUMB");
table_partner.setValue(SHIP_NAME,"NAME");// can be changed
table_partner.setValue(SHIP_STREET,"STREET"); // can be changed
table_partner.setValue(SHIP_COUNTRY,"COUNTRY");
table_partner.setValue(SHIP_POST_CODE,"POSTL_CODE");// can be changed
// Call the remote system
client.execute(function);
// Print return message
JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
// Get table containing the orders
//JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
JCO.Field sales_order = function.getExportParameterList().getField("SALESDOCUMENT");
// Print results
String so = sales_order.getString();
String message = ret.getString("MESSAGE");
String message_type = ret.getString("TYPE");
if (message_type.equalsIgnoreCase("E")) {
System.out.println("Error in Sales Order Creation:" + message);
else{
System.out.println("Sales Order " + so + " Created Succesfully");
// Release the client into the pool
JCO.releaseClient(client);
catch (Exception ex) {
System.out.println("Caught an exception: \n" + ex);
// Retrieves and sales order Create
public void listSalesOrders()
try {
// Get a function template from the repository
IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_GETLIST");
// Create a function from the template
JCO.Function function = new JCO.Function(ftemplate);
// Get a client from the pool
JCO.Client client = JCO.getClient(SID);
// Fill in input parameters
JCO.ParameterList input = function.getImportParameterList();
//input.setValue("0000002007", "CUSTOMER_NUMBER" );
input.setValue( "3000", "SALES_ORGANIZATION");
//input.setValue( "0", "TRANSACTION_GROUP" );
//input.setValue("PO_NUMBER_JAVA01","PURCHASE_ORDER_NUMBER");
// Call the remote system
client.execute(function);
// Print return message
JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
// Get table containing the orders
JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
// Print results
if (sales_orders.getNumRows() > 0) {
// Loop over all rows
do {
counter++;
System.out.println("--" + counter + "--
// Loop over all columns in the current row
for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements(); ) {
JCO.Field field = e.nextField();
System.out.println(field.getName() + ":\t" + field.getString());
}//for
} while(sales_orders.nextRow());
else {
System.out.println("No results found");
}//if
// Release the client into the pool
JCO.releaseClient(client);
catch (Exception ex) {
System.out.println("Caught an exception: \n" + ex);
public static void main(String[] argv) {
SalesOrder so = new SalesOrder();
so.createSalesOrder("PO_NUMBER_JAVA02", "","0000000020000","121-223-2332-1231", "SOFTWARE SYSTEME GMBH-WE", "STREET-SH","US", "53125","SOFTWARE SYSTEME GMBH-WE", "STREET-SH","US", "53125");
//so.listSalesOrders();
>>>>Please if any of SDN users can help in resolving this issue. It will be very helpful to my cousin.Before:
//Populate the item detalis
table_item.appendRow();
table_item.setRow(1);
table_item.setValue("000010","ITM_NUMBER");
table_item.setValue("AA01","PO_ITM_NO");// can be changed
table_item.setValue("IAD-SC3000","MATERIAL");
table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
table_item.appendRow();
table_item.setRow(2);
table_item.setValue("000020","ITM_NUMBER");
table_item.setValue("AA01","PO_ITM_NO");// can be changed
table_item.setValue("IAD-SC3000","MATERIAL");
table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
Try to add:
//Populate the item detalis
table_item.appendRow();
table_item.setRow(2);
table_item.setValue("000020","ITM_NUMBER");
table_item.setValue("AA01","PO_ITM_NO");// can be changed
table_item.setValue("IAD-SC3000","MATERIAL");
table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
table_item.appendRow();
table_item.setRow(2);
table_item.setValue("000020","ITM_NUMBER");
table_item.setValue("AA01","PO_ITM_NO");// can be changed
table_item.setValue("IAD-SC3000","MATERIAL");
table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
Regards. -
Ask toolbar wont let me open new tabs, got it from Java even when I unchecked it.
You need to check out when an update from Java. It ask to to install Ask. I unchecked it and it still installed. Then wreaks havoc to Firefox.
To remove the Ask toolbar, try here:
Tools menu > Add-ons > Extensions category
If you have a Disable button but not Remove or Uninstall button, you might need to use the Windows Control Panel to uninstall it.
By the way, your post shows Firefox 3.6.6, which is an insecure version. You should update at least to 3.6.18. You can do that using Help > Check for updates.
If you don't have 3.6.6, please indicate which version you actually have. -
Error Invoking a BPEL process from JAVA
Dear colleagues,
I'm facing a error at execution time when I'm invoking a BPEL process from java. My BPEL process is in a different server than my application. BPEL is running in SOA SUITE 10.1.3.1 and my JAVA application so far is in the embebed OC4J of my Jdveloper 10.1.3.3. I've seen different post with a similiar problem, but there wasn't never a solution!. Here you have the code following by the error:
***************** SOURCE **************************************
Locator locator = new Locator("default", "bpel");
IDeliveryService deliveryService =
(IDeliveryService)locator.lookupService
(IDeliveryService.SERVICE_NAME );
System.out.println(deliveryService.SERVICE_NAME);
System.out.println(deliveryService.LOCAL_SERVICE_NAME);
NormalizedMessage nm = new NormalizedMessage();
nm.addPart("payload", xml );
NormalizedMessage res =
deliveryService.request("LOAD_DB_5", "process", nm);
********************* ERROR ************************************
08/07/23 17:07:21 java.lang.Exception: Fallo al crear el bean "ejb/collaxa/system/DeliveryBean"; la excepción mostrada es: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
at com.evermind.server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:257)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:197)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
at amaos.xml.loadData.LoadXml.loadData(LoadXml.java:31)
at amaos.view.beans.FileProcessor.fileUploaded(FileProcessor.java:159)
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.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)
at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:363)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at amaos.view.UploadQuestionary.doFilter(UploadQuestionary.java:24)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at amaos.view.UploadQuestionary.doFilter(UploadQuestionary.java:24)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:171)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
08/07/23 17:07:21 at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
08/07/23 17:07:21 at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
08/07/23 17:07:21 at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
08/07/23 17:07:21 at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
08/07/23 17:07:21 at amaos.xml.loadData.LoadXml.loadData(LoadXml.java:31)
08/07/23 17:07:21 at amaos.view.beans.FileProcessor.fileUploaded(FileProcessor.java:159)
08/07/23 17:07:21 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08/07/23 17:07:21 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
08/07/23 17:07:21 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
08/07/23 17:07:21 at java.lang.reflect.Method.invoke(Method.java:585)
08/07/23 17:07:21 at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
08/07/23 17:07:21 at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)
08/07/23 17:07:21 at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
08/07/23 17:07:21 at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)
08/07/23 17:07:21 at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:363)
08/07/23 17:07:21 at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)
08/07/23 17:07:21 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
08/07/23 17:07:21 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
08/07/23 17:07:21 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
08/07/23 17:07:21 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
08/07/23 17:07:21 at amaos.view.UploadQuestionary.doFilter(UploadQuestionary.java:24)
08/07/23 17:07:21 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
08/07/23 17:07:21 at amaos.view.UploadQuestionary.doFilter(UploadQuestionary.java:24)
08/07/23 17:07:21 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
08/07/23 17:07:21 at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
08/07/23 17:07:21 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
08/07/23 17:07:21 at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
08/07/23 17:07:21 at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
08/07/23 17:07:21 at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:171)
08/07/23 17:07:21 at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
08/07/23 17:07:21 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
08/07/23 17:07:21 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
08/07/23 17:07:21 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
08/07/23 17:07:21 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
08/07/23 17:07:21 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
08/07/23 17:07:21 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
08/07/23 17:07:21 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
08/07/23 17:07:21 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
08/07/23 17:07:21 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
08/07/23 17:07:21 at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
08/07/23 17:07:21 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
08/07/23 17:07:21 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
08/07/23 17:07:21 at java.lang.Thread.run(Thread.java:595)
Any help is welcome!
ThanksHi
You are trying to create a locator object with default values which does not work at all times.Use Locator("default",prop) where prop is a properties object and set the values according to your environment.
The following properties values must be set
Properties props=new Properties();
props.setProperty("orabpel.platform","ias_10g");
props.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
props.setProperty("java.naming.provider.url", "url value");
props.setProperty("java.naming.security.principal","domain user name");
props.setProperty("java.naming.security.credentials","password");
props.setProperty("dedicated.rmicontext", "true"); -
Invoking bpel process from java in oracle soa/bpm 11g
Hi,
We have some java code to invoke bpel process in oracle BPM 10g following the instructions in http://download-east.oracle.com/docs/cd/B14099_19/integrate.1012/b14448/invoke.htm.
Basically the steps are:
1) get a Locator (com.oracle.bpel.client.Locator)
2) get IDeliveryService (com.oracle.bpel.client.delivery.IDeliveryService) reference from locator
3) call IDeliveryService method request or post with input message and get the response back.
Recently we want to migrated from oracle bpm 10g to oracle soa/bpm 11g. But I can not find the similar API in 11g. It seems now some adapter/binding need to be added in exposed service lane in soa composite view, for example, ADF-BC, direct binding etc, in order to allow java to invoke a bpel process. Here are two very useful links from Edwin about the detail how this is implemented.
http://biemond.blogspot.com/2009/11/invoking-soa-suite-11g-service-from.html
http://biemond.blogspot.com/2009/11/calling-soa-suite-direct-binding.html?showComment=1285198033913#comment-c1055322845511794252
My question is:
1) what are the choices and the official/best way to invoke a bpel process in oracle soa/bpm 11g from java?
2) does user need to add an adapter/binding in exposed service lane in order to let the bpel service be called in java?
3) what is the real difference between a bpm application and soa application in 11g?
I will really appreciate any expert's opinion.
Thanks,
BinThanks for your reply and confirmation, really appreciate it.
Yes, I found the difference of the invoking process API and was able to invoke bpel process using direct and ADF-BC binding by following Edwin's blog. But I have not found any official reference to compare this API difference between 10g and 11g ( I will mark this question as answered if anyone can find an official source from oracle, need to prove it to the team). The API to work with human task workflow seems pretty much the same between 10g and 11g.
Maybe you are looking for
-
Can't update my ipod touch because of error code 42408
goes through the iTunes sync to point of sync start then error code -42408 appears and all stops. cannot sync please help!
-
Hi, I have just upgrade the creative cloud CC version and upgrade the acrobat pro to XI version. when I convert a pdf file to word format, it show the error "Save As failed to process this document. No file was created." Actually, I have delete the i
-
App download stuck on waiting on iPhone 6 plus when the app is purchased on another device
iPhone 6 Plus on AT&T running iOS 8.1.2. When I purchase or "get" an app on my macbook, the app shows up on the 6 plus, but hangs in "waiting." The app, however, will download perfectly on my iPad mini. I have tried restarting the device normally, an
-
FI Friends, Let me know how to archive fi ducuments. regards srinivas < PLEASE SEARCH FORUMS BEFORE POSTING -- Moderator >
-
Need to attach a photo of a doc to a web site in pdf. How do I convert the jpg to pdf? thanks