Add-WindowsFeature using Proxy
I try to install several windows features using powershell with the following command:
Add-WindowsFeature NET-WCF-HTTP-Activation45,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Request-Monitor,Web-Filtering,Web-Stat-Compression,Web-Mgmt-Console,Web-Metabase,Web-Asp-Net,Web-Windows-Auth –Restart
I get the following error:
Add-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be downloaded.
Use the "source" option to specify the location of the files that are required to restore the feature. For more informa
tion on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f0906
At line:1 char:1
+ Add-WindowsFeature NET-WCF-HTTP-Activation45,Web-Static-Content,Web-Default-Doc, ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsF
eatureCommand
The concerning server has internet connection via a proxy server.
Any idea to get this done?
Thanx in advance.
Regards,
Chris
It seems I have this issue: http://sharepoint-sezai-moss-2007.blogspot.nl/2012/12/install-net-framework-35-bug-on-windows.html
Similar Messages
-
Dropped Frames consider using proxy mode
The message:
Many video frames were dropped during the last playback.
The disk does not appear to be fast enough.
Consider using proxy mode
I am resonably new to FCP X so I cant tell whether this is new (after update) or if its a known problem and how to solve it. I have seen a couple of other posts that suggest its new.
iMac
Core i5
2.7GHz
8GB RAM
Snow LeopardThis is my pet checklist for questions regarding FCP X performance.
FCP X 10.0.3 runs very well on my 2009 MacPro 2 x 2.26 GHz Quad-Core Intel Xeon with 16 GB RAM and ATI Radeon HD 5870 1024 MB.
First, check that you have at least 20% free space on the Hard Drive that your System and your Media, Projects and Events are on.
Check the spec of your Mac against the system requirements:
http://www.apple.com/finalcutpro/specs/
Check the spec of your graphics card. If it's listed here, it's not suitable:
http://support.apple.com/kb/HT4664
If you are getting crashes, there is some conflict on the OS. Create a new (admin) user account on your system and use FCP X from there - if it runs a lot better, there's a conflict and a clean install would be recommended.
Keep projects to 20 mins or less. If you have a long project, work on 20 min sections then paste these into a final project for export.
Create Optimised media - most camera native files are highly compressed and need a great deal of processor power to play back - particularly if you add titles, filters or effects. ProRes 422 takes up much more hard drive space but is very lightly compressed. It edits and plays back superbly.
If you are short of drive space, use ProRes 422 Proxy - but remember to select High Quality when you export your movie.
Hide Audio Waveforms at all times when you don't need them (both in Browser and Storyline / Timeline). They take up a lot of processor power. (Use the switch icon at the bottom-right of your timeline to select a format without waveforms if you don't need them at the moment, then switch back when you do).
Create folders in the Project and Events libraries and put any projects you are not working on currently, in those folders. This will help a lot.
Move your Projects and Events to an external HD (make sure it's formatted OS Extended - with journaled on or off) and run from there.
The biggest single improvement I saw in performance was when I upgraded the RAM from 8 GB to 16.
Andy -
[svn] 2169: Add a new proxy adapter for code coverage.
Revision: 2169
Author: [email protected]
Date: 2008-06-20 12:53:04 -0700 (Fri, 20 Jun 2008)
Log Message:
Add a new proxy adapter for code coverage.
Modified Paths:
blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/flex/proxy-config.mods.xmlHello,
I have not used a ThinkPad X1 Carbon (Type 3444-F9U) myself, but here is the configuration of the machine as it originally shipped:
i7-3667U(3.2GHz), 8GB RAM, 180GB Solid State Drive, 14in 1600x900 LCD, Intel HD Graphics, 1Gb Ethernet, UltraNav, Secure Chip, 4c Li-Ion, Win7 Pro 64
According to the Detailed Specifications page for this model, the unit shipped with an Intel Centrino® Advanced-N 6205S, 2×2 wireless card, and from looking the Drivers and Software page, it uses a USB 2.0 Ethernet adapter.
Here are the various drivers for Windows 7 (x86) that I was able to locate for this model:
Intel Chipset Support Software v9.2.0.1021
ThinkPad Bluetooth with EDR Software v6.5.1.4500
Lenovo USB 2.0 Ethernet Adapter Software v5.12.9
Intel Wireless LAN Driver Software v17.0.5
I would suggest starting with the Intel Chipset software first. The order of the ofther software packages should not make much difference.
Also, make sure the Wireless Radio Swich located on the Left Side of the ThinkPad X1 Carbon is enabled before installing the Bluetooth and WLAN drivers.
One thing you might want to keep in mind is that with a 32-bit version of Windows, the operating system will only provide access to between ~3.2 and 3.5GB of the installed 8GB of RAM. With the 64-bit version of Windows 7 that came with the unit, you will have access to the full 8GB.
Regards,
Aryeh Goretsky
I am a volunteer and neither a Lenovo nor a Microsoft employee. • Dexter is a good dog • Dexter je dobrý pes
S230u (3347-4HU) • X220 (4286-CTO) • W510 (4318-CTO) • W530 (2441-4R3) • X100e (3508-CTO) • X120e (0596-CTO) • T61p (6459-CTO) • T43p (2678-H7U) • T42 (2378-R4U) • T23 (2648-LU7)
Deutsche Community Comunidad en Español Русскоязычное Сообщество -
I'm just learning PS scripting and Chef Programming, so I'm sure I'm missing something simple. I'm trying to run a recipe that is using PS as the interpreter. I've ensured I'm running PS in 64 bit with admin privileges, and have Imported the ServerManager
module. I even added a line to my script to have it run that first, but am still receiving an error in my script. I'm running this on a VM of Server 2008R2
Script:
powershell_script 'Install IIS' do
code "Import-Module ServerManager -passthru"
code "Add-WindowsFeature Web-Server"
guard_interpreter :powershell_script
not_if "(Get-WindowsFeature -Name Web-Server).Installed"
end
Error:
PS C:\Users\Administrator\chef-repo> chef-apply webserver.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* powershell_script[Install IIS] action run
================================================================================
Error executing action `run` on resource 'powershell_script[Install IIS]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat
None -File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" ----
STDOUT:
STDERR: The term 'Add-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
---- End output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat No
ne -File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" ----
Ran "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -File "C:/Us
ers/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" returned 1
Resource Declaration:
# In webserver.rb
1: powershell_script 'Install IIS' do
2: code "Import-Module ServerManager -passthru"
3: code "Add-WindowsFeature Web-Server"
4: guard_interpreter :powershell_script
5: not_if "(Get-WindowsFeature -Name Web-Server).Installed"
6: end
Compiled Resource:
# Declared in webserver.rb:1:in `run_chef_recipe'
powershell_script("Install IIS") do
action "run"
retries 0
retry_delay 2
guard_interpreter :powershell_script
command "\"powershell.exe\" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -Fi
le \"C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1\""
backup 5
returns 0
code "Add-WindowsFeature Web-Server"
interpreter "powershell.exe"
cookbook_name "(chef-apply cookbook)"
recipe_name "(chef-apply recipe)"
not_if "(Get-WindowsFeature -Name Web-Server).Installed"
end
[2014-12-24T10:29:56-08:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out
[2014-12-24T10:29:56-08:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: powershell_script[Install IIS] ((chef-apply coo
kbook)::(chef-apply recipe) line 1) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0
], but received '1'
---- Begin output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None
-File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" ----
STDOUT:
STDERR: The term 'Add-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable prog
ram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
---- End output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -
File "C:/Users/ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" ----
Ran "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -File "C:/Users/
ADMINI~1/AppData/Local/Temp/chef-script20141224-432-mxaa9u.ps1" returned 1Hi There,
We have a application named Microsoft SCOM. That as well requires ISS to be installed. I tried this long back and it worked in powershell. Below is the powershell script i used to install IIS and some specific features from it. Hope it helps in altering
it and making one of your own script.
1. Launch the PowerShell command
prompt
Run this command
Import-Module ServerManager
3. Press Enter
4. Run this
command
Add-WindowsFeature NET-Framework-Core,Web-Metabase,Web-WMI,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Filtering,Web-Windows-Auth,
Web-Mgmt-Console –restart
Gautam.75801 -
Hi,
I had a small doubt, I want to implement a scenario where in if i post a xml file in the specific directory i need to get that xml data in a user defined table in R/3 sytem.
To do this can i use a proxy. By defining in SPROXY Transaction.
Thanks in advanceHi,
That's a good idea to use proxy.
Your scenario should look like that:
File->XI->Proxy
Inside generated proxy just put the code which will add data to the table and handle all errors.
Please check this blog:
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
Regards,
Wojciech
Reminder: please reward points for good answer -
Proxyagent using proxy tls:simple fails to bind to DS 6.3
If I configure the profile to use proxy simple, it works fine everything works including authentication (/etc/pam.conf and the server are using pam_ldap:tls:simple). If I try proxy tls:simple, it fails to bind to the server. Both the server and client are Solaris 10. I generated and deployed the certificates on both sides. I searched Sunsolve and the forums. Is proxy tls:simple an unworkable combination? Proxy anonymous does not seem to work either.
Any ideas?This is for my internal lab network. You will have to use ldapadd to add it to the DS configuration:
ldapclient genprofile -a profileName=tls-profile -a defaultSearchBase=dc=gallifrey,dc=net -a credentialLevel=proxy \
-a authenticationmethod=tls:simple -a serviceAuthenticationMethod=pam_ldap:tls:simple \
-a serviceAuthenticationMethod=passwd-cmd:tls:simple -a defaultSearchScope=one \
-a followReferrals=FALSE -a defaultServerlist=192.168.1.6 > tls-profile.ldif
bash-3.00# cat tls-profile.ldif
dn: cn=tls-profile,ou=profile,dc=gallifrey,dc=net
ObjectClass: top
ObjectClass: DUAConfigProfile
defaultServerList: 192.168.1.6
defaultSearchBase: dc=gallifrey,dc=net
authenticationMethod: tls:simple
followReferrals: FALSE
defaultSearchScope: one
cn: tls-profile
credentialLevel: proxy
serviceAuthenticationMethod: pam_ldap:tls:simple
serviceAuthenticationMethod: passwd-cmd:tls:simple -
SAP to non-SAP Communication Using Proxy Framwork
Hi all,
While searching for the connection option for the B2B collaboration between SAP and non-SAP business system, i found that there are two ways we can do it.
One using Adapters and another using Proxy Framework.
In our case We are on SAP Enterprise and non-SAP business partners are using I2, legacy system.
They are not using Rosettanet PIPS, so I can not use RNIF or any other adapter for the inbound or outbound operation.
My question is If we use proxy framework, what needs to be done at the non-SAP business system . Do we need to install proxy runtime and how does this proxy runtime will communicate with the application in non-SAP system.
Thanks in advanceHi Ruby,
You can use proxies for communicating with ABAP 6.20 systems and above and for J2EE applications.
For B2B communication you would normally use an adapter for example plain HTTP, SOAP or RNIF ...
An alternative is to install the XI PCK on the partner side. The PCK is essentially a standalone version of the XI Adapter Engine installed locally at the partner. This enables a scenario where XI communicates with the PCK over HTTP and then an adapter (file, JDBC ...) is used to communicate with the legacy system and vice versa.
rgds Johan -
How to use proxy settings for one website
Hello,
I have to access the only one website using Proxy settings and for others I don't need proxy to access. Is there a way to configure the internet settings to allow one website using Proxy... Please advise. Thanks!
Regards,
Aravin SI am also getting this "error". The printer (8500 A910) connected to the web well enough that it went out and supposedly downloaded a new update, but then it was supposed to print a page showing the email address, but did not.
So I go in and try to set up the eprint, and it tells me it cannot connect to the sever and I'll need to enter a proxy address and port number. But my ISP's cable modems do NOT have any static IP address nor do they provide any sort of proxy service. Everything works just fine with "automatic discovery" (DHCP) for every computer in the house. No problems there.
So, since that's the case, of course I cannot look up some proxy address and port number in my web browser because they're all set up for "automatically detect settings".
What's baffling is that the printer connected to something at HP to download the "update", and it went through a process that appeared to be what I'd expect it to do if it was updating its firmware. But it won't connect to whatever it's supposed to connect to to have an email address assigned.
Does HP supply a proxy server? If so, what's its IP address or URL, and what port should a person set the printer to try to use?
UPDATE:
It appears that the HP site must have just been "down" for about six or seven hours while I was trying to get the printer to connect because it now connected and I got an email address asigned without needing to have any "proxy" stuff set up at all. It's a shame that the printer does not simply report "HP Site down - try again later" instead of reporting that you need to use a proxy when that's impossible.
"Now, on to the next problem which is that my emails to the assigned address are all bouncing with a "550 5.7.1 Command rejected" error! -
How do I add a used ipod to my itunes, i already have an itunes account for my ipad?
how do I add a used ipod to my itunes, i already have an itunes account for my ipad?
Just set it up using the same Apple ID/iTunes account.
-
Possible to send the 50,000 records at a time using proxy?
Hi All,
I am using the proxy to send the data form SAP to PI and then send it to Receciver by using JMS. Here i have a small issue.... is it possible to send the 50,000 records at a time using proxy? If not please suggest me how can i send bulk of records through proxy?
Thanks
Karthik.is it possible to send the 50,000 records at a time using proxy? If not please suggest me how
can i send bulk of records through proxy?
you can try this in steps...do not go for a BigBang testing :)....check how much your XI system can handle at a time...then you may need to tune the system parameters to accomodate more message size.....how to do this??...check the below document..section 3.9.2 (Special Cases)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2016a0b1-1780-2b10-97bd-be3ac62214c7
Regards,
Abhishek. -
Error while creating the sales order using Proxy
Hi Folks,
I am trying to create a Sales Order using Proxy via BAPI "BAPI_SALESORDER_CREATEFROMDAT2" :
and i got this type of standard error message
<Message>FB call: insufficient parameters</Message>
few days back only i used the same bapi for creating the Sales Order and did it successfully...using the same parameters
I don't have any clue about this type error .
Kindly guide .
Regards,Hi Nikhil,
How refreshing the cache and restart the server will help ?
basically i am testing the scenario at R/3 end only by generating XML template in SPROXY.
My ECC 6.0 is on sp 12....I am not sure is it configuration related error or a bug ? as i have used the same code in ECC 6.0 with sp 09.
regards, -
Problem while connecting to site using proxy server in weblogic 8.1
Hi All,
I am able to connect to the site www.testtest.com when i am running the below
program out side a bea weblogic server. but i couldn't able to connect to the
www.testtest.com when i am accessing thru a progam that was running in weblogic
server. i am getting the below exception
Tried all: '1' addresses, but could not connect over HTTP to server: 'www.testtest.com',
port: '80'
I am using weblogic server 8.1. Pls help me out in solving this.
import java.io.*;
public class testurl
public static void main(String[] args)
try
String username = "username";
String password = "password";
String proxy_internet_address = "111.111.12.12";
String proxy_internet_port = "80";
String urlString ="http://www.testtest.com/";
java.net.Authenticator.setDefault(new SimpleAuthenticator(username,password));
java.net.URL url = new java.net.URL(urlString);
java.util.Properties systemProperties = System.getProperties();
systemProperties.setProperty("http.proxyHost",proxy_internet_address);
systemProperties.setProperty("http.proxyPort",proxy_internet_port);
java.net.HttpURLConnection aConnection = (java.net.HttpURLConnection)(url.openConnection());
aConnection.setDoInput(true);
aConnection.setDoOutput(true);
aConnection.setUseCaches(false);
aConnection.connect();
java.io.InputStreamReader insr = new java.io.InputStreamReader(aConnection.getInputStream());
java.io.BufferedReader br = new java.io.BufferedReader(insr);
String s="";
String textString =null;
while((textString = br.readLine())!=null)
s = s + textString;
}//end of while
br.close();
aConnection.disconnect();
PrintWriter pw = new PrintWriter(new FileOutputStream("test.html"));
pw.println(s);
pw.close();
}catch(Exception e){
System.out.println(e.toString());I have a similar problem. I want to connect to a URL, but not using proxy. From outside BEA or in BEA 6.1 it works OK, but not in BEA 8.1.
Did you get to solve your problem ? -
Error occures while Sap R/3 sytem triggers XI message (using proxy class)
<b>Error occures while Sap R/3 sytem triggers XI message (using proxy class)</b>
1- I prepared message in XI side
2- I used sproxy transaction in R/3 side and generate proxy class
3- I used necessary methods in Abap program in R/3 side
4- Somethimes, message does not work and generate error like below
What must I do to solve this problem. Thanks
<u><b>Error message (Reported in SXMB_MONI in Sap R/3 side)</b></u><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message
-->
- <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
<SAP:Context />
<SAP:Code p1="112" p2="HTTPIO_PLG_ICM_CONNECT_FAILED-Fehlermeldung beim Senden der Daten." p3="" p4="">HTTP.HTTP_CLIENT_SEND_FAILED</SAP:Code>
<SAP:Text language="TR">Error during http send: Error code: 112 Error text: HTTPIO_PLG_ICM_CONNECT_FAILED-Fehlermeldung beim Senden der Daten.</SAP:Text>
</SAP:ErrorHeader>Hi,
Check thiss
/people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
Error no 2
Regards
Aashish Sinha
PS : Reward points if helpful -
Add attachments using workflow api throwing error
Hi,
I am getting the following error when i am trying to add attachments using worklist API.
Missing class: invokeBPEL.MetaData
Dependent class: com.evermind.io.ClassLoaderObjectInputStream
Loader: oc4j:10.1.3
Code-Source: /D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar
This load was initiated at hw_services.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.lang.Class.forName0 (Native method) [unknown, by unknown]
at java.lang.Class.forName (Class.java:242) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at com.evermind.io.ClassLoaderObjectInputStream.resolveClass (ClassLoaderObjectInputStream.java:33) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.io.ObjectInputStream.readNonProxyDesc (ObjectInputStream.java:1538) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.io.ObjectInputStream.readClassDesc (ObjectInputStream.java:1460) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java:1693) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.io.ObjectInputStream.readObject0 (ObjectInputStream.java:1299) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.io.ObjectInputStream.readObject (ObjectInputStream.java:339) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at com.evermind.server.rmi.RMIProtocol$Version.unmarshallParameterDirectly (RMIProtocol.java:402) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.RMIProtocol$Version_1_0.unmarshallParameter (RMIProtocol.java:471) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.RMIProtocol.readObject (RMIProtocol.java:80) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.RMIProtocol.readValue (RMIProtocol.java:161) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.ServerRmiMessageHandler.handleMethodInvocation (ServerRmiMessageHandler.java:514) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.ServerRmiMessageHandler.handleOrmiRequest (ServerRmiMessageHandler.java:272) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.ServerRmiMessageHandler.dispatchRequest (ServerRmiMessageHandler.java:241) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.RMIServerConnection.processReceivedCommand (RMIServerConnection.java:176) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.RMIConnection.handleCommand (RMIConnection.java:152) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands (RMIConnection.java:127) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.RMIServerConnection.listenForOrmiCommands (RMIServerConnection.java:390) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.rmi.RMIConnection.run (RMIConnection.java:107) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:303) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]
Exception in thread "main"
This is the code i used
String userId = "oc4jadmin";
String password = "welcome1";
String sTaskId = "";
IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
System.out.println("Before getting TaskService");
ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
System.out.println("After getting TaskService");
IWorkflowContext wfCtx = querySvc.authenticate(userId,password,"jazn.com",null);
System.out.println("Last out");
Predicate pred = new Predicate(TableConstants.WFTASK_STATE_COLUMN,Predicate.OP_EQ,IWorkflowConstants.TASK_STATE_ASSIGNED);
List queryColumns = new ArrayList();
queryColumns.add("TITLE");
queryColumns.add("PRIORITY");
queryColumns.add("STATE");
queryColumns.add("TASKID");
queryColumns.add("TASKNUMBER");
List tasks = querySvc.queryTasks(wfCtx,
queryColumns,
null, //Do not query addtional info
ITaskQueryService.ASSIGNMENT_FILTER_MY_AND_GROUP,
null, //No keywords
pred, //No custom predicate
null, //No special ordering
0, //Do not page the query result
0);
System.out.println("Task Size !!" +tasks.size());
if (tasks != null)
String[] taskList = new String[tasks.size()];
for (int i=0; i< tasks.size(); i++)
Task t = (Task)tasks.get(i);
taskList[i] = t.getSystemAttributes().getTaskId();
System.out.println("Found task: "+taskList);
sTaskId = taskList[i];
else
System.out.println("Did not find any tasks");
Task task = querySvc.getTaskDetailsById(wfCtx, sTaskId);
//Add Attachments
FileInputStream fs = new FileInputStream("D:/Test.txt");
ITaskService itask = wfSvcClient.getTaskService();
MetaData mdata = new MetaData();
mdata.setMimeType("text/html");
mdata.setContent("D:/Test.txt");
mdata.setInputStream(fs);
mdata.setName("Test Document");
itask.addAttachment(wfCtx, sTaskId, mdata);
if (task != null)
System.out.println("Completing task: "+task.getTitle());
wfSvcClient.getTaskService().updateTaskOutcome(wfCtx, task, "APPROVE");
Kindly let me know how to solve this issue.
Thanks,
Gomathihi,
Actually i have used AttachmentType..MetaData is the class which i created for implementing AttachmentType as it is Interface Class. Here is the code of MetaData class.
public class MetaData implements AttachmentType,java.io.Serializable{
public String getBoundary() {
// TODO Auto-generated method stub
return null;
public String getContent() {
// TODO Auto-generated method stub
return null;
public InputStream getInputStream() {
// TODO Auto-generated method stub
return null;
public String getMimeType() {
// TODO Auto-generated method stub
return null;
public String getName() {
// TODO Auto-generated method stub
return null;
public String getSystemVersionFlag() {
// TODO Auto-generated method stub
return null;
public String getTaskId() {
// TODO Auto-generated method stub
return null;
public String getURI() {
// TODO Auto-generated method stub
return null;
public String getUpdatedBy() {
// TODO Auto-generated method stub
return null;
public int getVersion() {
// TODO Auto-generated method stub
return 0;
public void setBoundary(String arg0) {
// TODO Auto-generated method stub
public void setContent(String arg0) {
String cont = null;
cont = arg0;
public void setInputStream(InputStream arg0) {
InputStream sStream = null;
sStream = arg0;
public void setMimeType(String arg0) {
String mime = null;
mime = arg0;
public void setName(String arg0) {
String sname = null;
sname = arg0;
public void setSystemVersionFlag(String arg0) {
// TODO Auto-generated method stub
public void setTaskId(String arg0) {
// TODO Auto-generated method stub
public void setURI(String arg0) {
// TODO Auto-generated method stub
public void setUpdatedBy(String arg0) {
// TODO Auto-generated method stub
public void setVersion(int arg0) {
// TODO Auto-generated method stub
kindly tell me how can i solve this issue.
Thanks,
Gomathi
Edited by: user647559 on Sep 23, 2008 10:05 PM -
How to add multiple table when creating add on using b1de
Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
ThanksHi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
Try
Dim lRetCode As Long
Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUDT.TableName = TableName
oUDT.TableDescription = TableDescription
oUDT.TableType = TableType
lRetCode = oUDT.Add
'// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
oUDT = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Add User Field
Try
Dim lRetCode As Long
Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUDF.TableName = TableName
oUDF.Name = FieldName
oUDF.Description = FieldDescription
oUDF.Type = FieldType
lRetCode = oUDF.Add
'// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
oUDF = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Regards,
Vítor Vieira
Maybe you are looking for
-
How to convert SQL server stored procedures to Oracle 11g
Hi Experts, In SQL server 30 stored procedures are there how to convert all the stored procedure from SQL server to Oracle 11g. Please help me, Thanks.
-
Hi, This is my first post. I have a new HP Laserjet CP2025dn. The printer is connected to a home network via an ethernet cable (the printer has a built-in connector for this). It is not connected wireless. The powersave mode kicks in intermittentl
-
Can I use my iPhone to make new playlists, take songs off my iphone, add songs on my iphone, using just the iphone with the new IOS5? or it that part of photography still managed by a physical cord connection with syncing and checking which photos I
-
Hi, I'm trying to format the axis labels and it doesn't seem to work. Here is my code (not working part in bold): <dvt:lineGraph id="lineGraph1" value="#{bindings.OemTestLineViewRO1.graphModel}" subType="LINE_VERT_ABS"> <dvt:background> <dvt:specialE
-
When i try to open itunes 10.5 it wont open what do i do?
I downloaded itunes 10.5 and when i try to open itsays apple application was not found. error 2 (windows error 2). what do i do because uninstalling and reinstalling doesnt do anything