Et_FORM_DATA_ADD, problem in getting Line object
Hi,
This is my first time using the et_FORM_DATA_ADD event. Objective: upon Add the Quotation, check each UnitPrice in the Document line. Problem: unable to get the children (lines) object from the parent (Documents) object. The For - Next loop is always skipped. Anybody can point out the problem? Appreciate your help. Below is the code.
Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
Try
If BusinessObjectInfo.BeforeAction Then
If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD Then
Select Case BusinessObjectInfo.Type
'Case SAPbobsCOM.BoObjectTypes.oOrders.ToString
Case SAPbobsCOM.BoObjectTypes.oQuotations
Dim Doc, Doc1 As SAPbobsCOM.Documents
Dim Lines As SAPbobsCOM.Document_Lines
Dim DocEntry, DocNum, LineNum, ItemCode, sErrMsg As String
Dim UnitPrice, MinPrice As String
Dim i, j As Integer
Dim bRetVal As Boolean
Dim lErrCode As Long
Doc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oQuotations)
Doc.Browser.GetByKeys(BusinessObjectInfo.ObjectKey)
DocEntry = Doc.DocEntry
DocNum = Doc.DocNum
Lines = Doc.Lines
For i = 0 To Lines.Count - 1
Lines.SetCurrentLine(i)
ItemCode = Lines.ItemCode
UnitPrice = Lines.UnitPrice
Dim Item As SAPbobsCOM.Items
Dim ItemPrice As SAPbobsCOM.Items_Prices
Item = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
'Item.Browser.GetByKeys(ItemCode)
bRetVal = Item.GetByKey(ItemCode)
If Not bRetVal Then
oCompany.GetLastError(lErrCode, sErrMsg)
SBO_Application.MessageBox("Failed to Retrieve the record " & lErrCode & " " & sErrMsg)
Exit Sub
End If
ItemPrice = Item.PriceList
ItemPrice.SetCurrentLine(1)
MinPrice = ItemPrice.Price
If UnitPrice < MinPrice Then
Lines.UserFields.Fields.Item("U_Approve").Value = "TRUE"
End If
Dim oRecSetLines As SAPbobsCOM.Recordset
Dim sSQLtext As String
oRecSetLines = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
sSQLtext = "SELECT Price FROM ITM1 WHERE ItemCode = '" & ItemCode & "' AND PriceList = '2'"
oRecSetLines.DoQuery(sSQLtext)
If oRecSetLines.RecordCount = 1 Then
'Get the MinPrice here
oRecSetLines.MoveFirst()
MinPrice = oRecSetLines.Fields.Item(0).Value
If CDbl(oRecSetLines.Fields.Item(0).Value) < CDbl(UnitPrice) Then
'Price below MinPrice, write QUT1.U_Approve --> change to write file
Doc.UserFields.Fields.Item("U_Approve").Value = "TRUE"
Lines.UserFields.Fields.Item("U_Approve").Value = "TRUE"
End If
Else
SBO_Application.MessageBox("Error.")
End If
Next
Doc.Update()
End Select
End If
Else
End If
Catch ex As Exception
End Try
End Sub
Are you shure the business object does already exist in db on et_FORM_DATA_ADD beforeAction (Does getByKey return true)? Do DocNum and DocEntry make sense?
Maybe you change
If BusinessObjectInfo.BeforeAction Then
to
If Not BusinessObjectInfo.BeforeAction Then
or does that affect your idea of approving?
Similar Messages
-
Problem in getting Home object of EJB in WebLogic 6.1
Hello,
I have deployed my stateless session bean with remote interfaces on my weblogic server but when i tried to access it from my client which is also present in the same application (ear) then it gives the following exception.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:42)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:277)
at java.lang.Class.newInstance0(Class.java:301)
at java.lang.Class.newInstance(Class.java:254)
at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:342)
at javax.rmi.CORBA.Util.<clinit>(Util.java:54)
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:61)
at jsp_servlet.__login._jspService(__login.java:123)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Caused by: java.lang.RuntimeException: could not find or instantiate any UtilDelegate class
at weblogic.iiop.UtilDelegateImpl.<clinit>(UtilDelegateImpl.java:73)
... 18 more
My code is like :
UserRegistrationHome loginuser;
Context initial = new InitialContext();
Object objref = initial.lookup("ejb/SimpleUserRegistration");
loginuser =(UserRegistrationHome) PortableRemoteObject.narrow(objref,UserRegistrationHome.class);
UserRegistration userlogin = loginuser.create();
It comes at line with PortableRemoteObject.......
Will some one help me in this regard, as why this exception generally comes and in what settings....
Thanks in advance.
SACCan you tell me how resolve the problem?
Thanks,
Michael
[email protected] -
Problem in getting an object in JSP page.
Hi experts,
I am forming a javabean object in the controller(servlet) and passing the object to a JSP page by setting that object as an attribute. But in that jsp page, when i compile, its not able to locate the class. At the beginning itself while typecasting the attribute as that bean object, i get an error. All the servlet, bean files are in the default package only.
This is how i used..
<%
String m = (String) request.getAttribute("mode");
//My bean object below.
adjuster_bean res=(adjuster_bean)request.getAttribute("data");
%>
And i am using like, calling the bean object's get method to set values of the text boxes in the JSP page. I need help please....Vigsen wrote:
Hi experts,
I am forming a javabean object in the controller(servlet) and passing the object to a JSP page by setting that object as an attribute. But in that jsp page, when i compile, its not able to locate the class. At the beginning itself while typecasting the attribute as that bean object, i get an error. All the servlet, bean files are in the default package only.
This is how i used..
<%
String m = (String) request.getAttribute("mode");
//My bean object below.
adjuster_bean res=(adjuster_bean)request.getAttribute("data");
%>
And i am using like, calling the bean object's get method to set values of the text boxes in the JSP page. I need help please....Are you importing the bean class in your jsp? Something like this...
<%@ page import="java.util.*, yourpackage.YourBeanClass" %> Secondly, I see standards not followed in your code...
a) Firstly, as someone else pointed out in this same post. Avoid as much as possible using java scriplets in JSPs. Instead try use JSTL and EL expressions.
b) A java class name should always start with capital letter for every word in the class name and with no underscores. Your bean class name (adjuster_bean) should be changed to something like AdjusterBean
If you want to become a good Java programmer then standards are essential. But, again, it is totally up to you to follow. -
Getting an Object Identifier String given a line of source code? HELP!
(forgot to close the code tag on that last one!)
Hi there,
I am in desparate need of getting the object identifier given a particular line of source code. I need this for the debugger I'm writing, and since the jdb forum never gets reponses; just more unanswered questions.
Right so, here's my problem in more detail. I can find out when a method is called in the Java virtual machine, and what its name is, and arguments and values and such like - using the Java Debugging Interface. BUT: unfortunately I cannot get the object identifier used in the source code that generated this call. I can however get a unique long id that identifies this object .. if that helps?(thinking hashtables here maybe?!)
So, I may know that the constructor of EddClass has been called, and this the following line generated this call:
EddClass edd = new EddClass();.. so what I need is a fail safe way of finding out "edd" from this - given all types of method calls.
This is quite tricky because there are loads of ways methods can be called e.g.
tty.getClassExclusions(); // Here I would know getClassExclusions had been called, and I would need to find out the object identifier "tty" called it
Temp a, b, c;
a = b = c = new Temp(); // Here I would know the constructor for Temp had been called, but now I would just want to know "c"
AnotherEg ae = (new Egg()).getAnotherEg(); // and in this last case if I had found out that the Egg constructor had been called, I don't want to find out any object identifier from this line of code - since the object is anonymous; however if I had found out that getAnotherEg() had been called I would want "ae"Ok, well - please help: I'm making a Java Animator that will be freely available - that serves to graphically animate the execution of another java program. It'd be cool if one of you guys could help make it really cool. Plus there are Dukes available!!
- Edd.this is quite a complicated question I think!
I'm not sure but you maybe need to know just about the whole java lang. spec to do this.
I'm sure there are plenty of free java parsers around, so unless you have a lot of time available its probably best to download one, figure some way to feed it a single line from within a code block, and extract its symbol table.
Once you have the symbol table, there will probably be some other data available from the parser to say which are identifiers.
Its then up to your debugger to figure out which one is the interesting one!
sorry this is so vague but I think you've asked for something that is quite involved!
asjf -
Problem in getting the function template object from the repository.
Hi all,
I have created a par file. I have a JCO connection in that. I am facing problems in getting the function template object from the repository. This thing is running successfully when i try to deploy it in Tomcat. But i am facing problems when i try to deploy it in SAP EP 6.0.
Below is statement which is giving error after being deployed to SAP EP6.
This is executing fine when executed in Tomcat Server.
// getting the object of function template
IFunctionTemplate functionTemplate =
aRepository.getFunctionTemplate("YADDNEWUSER");
Note : YADDNEWUSER is the name of the RFC which I am calling from my JAVA Code.
Thanks in advance,
DivijaThis sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.
-
My iphone5 got a problem of getting switched off and on automatically. I can see my screen getting faded and then i can see the pink vertical lines before it switches off. After about 10 seconds it switches on again.
Hi sumit1310,
Thanks for visiting Apple Support Communities.
I'd start with these troubleshooting steps:
iPhone: Hardware troubleshooting
http://support.apple.com/kb/TS2802
Will not turn on, will not turn on unless connected to power, or unexpected power off
Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIs and corrosion.
Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
After at least 15 minutes, if:
The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
If the display turns on, go to step 4.
If the display remains black, go to next step.
Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
Regards,
Jeremy -
Line Chart: It is possible to get the object reference from a flash chart
Hi Folks,
hope you feel well ...
I wan't to get the Object Reference from a Chart Flash Object using javascript in the HTML Header of a Apex Page.
It's long time ago with Oracle/Java and so my skills are really shity :-)
The Functionbody works, but the following error occurs: chart.refresh is not a function
It is necessary to CAST it ? with the Class AnyChart.js ?
After 5 hours i give up ^^ is this kind of object handling possible ? THX4HELP@ll
Apex Page HTML Header
<script type="text/javascript">
function hideSID2()
var chart = document.getElementById("*c7067437546726610*");
chart.refresh();
</script>
HTML File at runtime:
<div class="rc-body"><div class="rc-body-r"><div class="rc-content-main"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="1400"
height="600"
id="c7067437546726610"
align="top"> ...If you are using adobe Flex Builder to develop SWF, please be sure using ExternalInterface class to expose the refresh() method.
then you can should be able to call this method in Javascript. -
Problem in getting sandbox path in Content Database
Hello all,
we have created a custom application using Oracle Content database API, which upload files to content database programmatically. For this we are using following code to retrieve sandbox
try
FdkCredential credential = new SimpleFdkCredential(username,password);
ManagersFactory session = ManagersFactory.login(credential,url);
FileManager fileM = session.getFileManager();
Item sandbox = fileM.resolvePath(sandbox_path, null);
Item workspace = (sandbox == null) ? null :
fileM.resolveRelativePath(sandbox.getId(),workspace_name, null);
catch(FDKException e)
e.printStackTrace();
Here, sandbox_path and workspcae_name are the names of sandbox and workspace in contentDB. credential, session and fileM are creating fine, but unable to get the sandbox Item.
when we are running the same application in local, it executed successfully and all the files uploaded successfully. There we didn't get any problem. But the same files when we ported to server and tried to upload files to content database we are unable in getting Item object that is sandbox. Instead of retrieving sandbox we are getting null value. Both custom files and Content Database are on same server.
Can anyone please help use why this is happening.Hi Nitin,
I think you can use CODE similar to below.
Check the function module SXMI_XMB_SYSLOG_READ for more details. It contains similar logic.
SUBMIT RSLG0000 LINE-SIZE 255
WITH TR_TERM EQ '*'
WITH TR_DATE EQ FROM_DATE
WITH TR_TIME EQ FROM_TIME
WITH TR_EDATE EQ TO_DATE
WITH TR_ETIME EQ TO_TIME
WITH TR_CPU EQ SERVER_NAME
WITH TR_PAGES EQ '003' " Begrenzung Anzahl Seiten
WITH TR_USER EQ LOOKING_FOR_USER
WITH NOCODEVC EQ 'X'
WITH NOCOTASK EQ 'X'
WITH NOCOMAND EQ 'X'
WITH NOCOTRAN EQ 'X'
WITH NOCOTERM EQ 'X'
EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LIST_IN_MEMORY
EXCEPTIONS
OTHERS = 99.
Thanks,
Ramakrishna
Message was edited by: Ramakrishna Prasad Ramisetti -
Problem when extracting Smart Objects
I am having a problem when extracting Smart Objects.
I work for a small pre-press company. We are working on several computers using one Job Server. Some of these computers have different versions of OS.
For one of our clients the company uses Smart Objects as a precaution for moire issues. The child file stays a certain size, while the parent file is sized down for print. Our client has started to request the larger Child size image for their use. For the volume of images requested, I have made an action out of Photoshop to open the smart object and save out a flat tif of the larger child file image. Here is the problem...
At times the smart objects child file does not retain the name of the smart object layer as its being extracted. What could be causing the lost connection between the parent file name to the child file name, and is there a way to prevent it in the future?
Thanks for your help:)
DVanHello,
I have noticed that. The true problem is that the child files name starts out as the parent layer name, but then somewhere down the line it turns wonkie, starting to be named things like 12.psd etc. Please see attached. Your can't re-save the name of the child file either because all that does is save out a named temp file that does not get linked back to the parent file....so what is making the name change? -
Problem inputting a SecretKey object into a KeyStore
i am having some problem storing my secretkey object in a key store, i keep getting the error shown below
cannot resolve symbol - class SecretKeyEntry.
the whole class is shown below. i have tried to import the SecretKeyEntry class but i still get an error. can anybody help.
import java.io.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import java.security.*;
import java.security.KeyStore.*;
//import java.security.KeyStore.SecretKeyEntry;
import java.security.spec.*;
import java.util.*;
public class Encrypt {
public static void main(String args[]) {
File desFile = new File("Saving a text document as an image file.doc");
// Create data to encrypt
Map map = new TreeMap(System.getProperties());
int number = map.size();
try {
// Create Key
KeyGenerator kg = KeyGenerator.getInstance("DES");
SecretKey secretKey = kg.generateKey();
// key store code start
KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
char[] password = {'f','r','a','n','k'};
System.out.println("my password" + password.toString());
ks.load(null, password);
// save my secret key
KeyStore.SecretKeyEntry skEntry = new KeyStore.SecretKeyEntry(mySecretKey);
ks.setEntry("secretKeyAlias", skEntry, password);
//keystore code end
// Create Cipher
Cipher desCipher =
Cipher.getInstance("DES/ECB/PKCS5Padding");
desCipher.init(Cipher.ENCRYPT_MODE, secretKey);
// Create stream
FileOutputStream fos = new FileOutputStream(desFile);
BufferedOutputStream bos = new BufferedOutputStream(fos);
CipherOutputStream cos = new CipherOutputStream(bos,
desCipher);
ObjectOutputStream oos = new ObjectOutputStream(cos);
// Write objects
oos.writeObject(map);
oos.writeInt(number);
oos.flush();
oos.close();
} catch (NoSuchPaddingException e) {
System.err.println("Padding problem: " + e);
} catch (NoSuchAlgorithmException e) {
System.err.println("Invalid algorithm: " + e);
} catch (InvalidKeyException e) {
System.err.println("Invalid key: " + e);
} catch (KeyStoreException e) {
System.err.println("Problem getting Keystore instance" + e);
} catch (IOException e) {
System.err.println("I/O Problem: " + e);
} catch (Exception e) {
System.err.println("All other exceptions" + e);
} finally {
if (desFile.exists()) {
//desFile.delete();
}You need to change your setEntry() line to this:ks.setEntry("secretKeyAlias", skEntry, new KeyStore.PasswordProtection(password));You also need to insure that you're running under 1.5 - this API didn't exist before that. If you're picking up a 1.4 JVM/libs, it would explain your compilation error.
Grant -
Getting an Object out of ArrayList
Hello, I have a question about getting an Object out of an ArrayList. I have an object that's made up of four fields: name, average, total and position. Now, I need to read in values from a formatted text file, and stick those values into an array (the values correspond to the Object values), but since there's a variable number of items in the text file, I figured I could just use an ArrayList to store the objects, and when it's finished looping through the file, just copy the ArrayList items into my object. I have it working fine, except I can't seem to get the data in the ArrayList copied over to the array.
I guess my question is simple: how can I copy over the ArrayList of objects into my object?
Thanks very much for any help! :)Thanks a lot, I got it! After spending two hours on this problem, two lines of code fixed it for me. :P
@Petes1234: Well basically because the data that's being read can have a variable length, I wanted to use an ArrayList to hold it temporarily. After it's done reading I have the size, so I guess that I wanted to extract the object data into a regular array so that it can be formatted and displayed to the user.
Message was edited by:
mistah-java -
Client Install Fails - Unable to get Win32_OperatingSystem object
I have a PC that won't install the SCCM client via Client Push. In the CCM.Log file on the site server, it connects to the IPC$ and admin$ shares using my client installation account, but then it comes back with this error:
---> Unable to get Win32_OperatingSystem object from WMI on remote machine "PCNAME", error = 0x80080005.
I know that error means that access was denied to WMI, and I verified that when I run wbemtest manually (using the same client installation account), I can connect to the root\cimv2 object on that PC but when I try to enumerate the instances of the Win32_OperatingSystem object, I get the same error.
I also tried using Computer Management applet (remotely - I have no local access to this PC) to look at the WMI Control properties. Again, I get the same access denied error so I can't check/change the security permissions that way.
I have verified that my client installation account is in the local Administrators group of the PC. I've already tried rebuilding the WMI repository - that worked but it didn't fix the access issue. I know I can install the client manually but I'm guessing I'd still have a problem with inventories, etc. that are dependent on access to that WMI object. Any suggestions about how to go about fixing the WMI access issue?
Thanks so much, --JoFinally getting back to this issue after vacaton... sigh.
I got a little further. I took client push out of the mix and ran ccmsetup.exe locally on the PC. This time the client installation ran. However, I'm still getting a similar error from the client itself and the client is not talking to the site. After the client was installed, only about 10 of the log files showed up in system32\ccm\logs.
ccmexec.log shows this error:
Endpoint'PolicyAgent_PolicyEvaluator' return 0x80070057 from event notification
PolicyAgentProvider.log has these lines repeating:
Failed to create actual config class for 'CCM_RootCACertificates'
Failed to update namespace 'Machine' (80041002)
Successfully updated namespace 'DefaultMachine'
Successfully updated namespace 'DefaultUser'
Failed to create actual config class for 'CCM_MulticastConfig'
Failed to update namespace 'Machine' (80041002)
PolicyEvaluator.log has this error:
Received notification that Local policy has changed.
Failed to trigger Machine settings update (80070057)
SrcUpdateManager has these errors:
Instance of CCM_SourceUpdateClientConfig doesn't exist in WMI
Failed to get instance of CCM_SourceUpdateHistory, error 80041002
ClientIDManagerStartup.log has these errors:
GetSystemEnclosureInfo failed (0x80080005)
ComputeHardwareID failed (0x80080005).
RegTask: Failed to create registration request body. Error: 0x80080005
The rest of the logs that exist (LocationServices, StatusAgent, ClientLocation, RemCtrl, and setuppolicyevaluator) appear to be OK.
These seem to all be WMI-related errors/issues, but I can't find any specific information on any SCCM/SMS websites/forums that address these particular errors in these particular log files. I've tried rebuilding the repository (several times), I've done the regsvr stuff as discussed above, etc.
I ran WMIDIAG next. It ran for a little less than two hours - not sure if that's normal or not, but the log file continued to update the entire time. Now I have this log file and I'm not sure what to do with the issues I found. I'm looking at the WMI REPORT: BEGIN section... I see instructions that make sense for most of the errors. However, the section of log file below shows the area that is most likely causing issues for SCCM because it is the same error I get on the client install. I have no idea how to fix this stuff - any help would be appreciated:
31997 14:20:05 (1) !! ERROR: WMI ENUMERATION operation errors reported: .......................................... 33 ERROR(S)!
31998 14:20:05 (0) ** - ROOT/CIMV2, InstancesOfAsync, CIM_USBDevice, 0x80080005 - .
31999 14:20:05 (0) ** - ROOT/CIMV2, InstancesOfAsync, CIM_USBHub, 0x80080005 - .
32000 14:20:05 (0) ** - ROOT/CIMV2/SMS, InstancesOfAsync, SMS_Class_Template, 0x80041011 - (WBEM_E_PROVIDER_NOT_FOUND) Provider referenced in the schema does not have a corresponding registration.
32001 14:20:05 (0) ** - Root/Default, InstancesOf, SystemRestore, 0x80080005 - Server execution failed.
32002 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Process, 0x80080005 - Server execution failed.
32003 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_OperatingSystem, 0x80080005 - Server execution failed.
32004 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_ComputerSystem, 0x80080005 - Server execution failed.
32005 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Service, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32006 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Bios, 0x80080005 - Server execution failed.
32007 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_IP, 0x80080005 - Server execution failed.
32008 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_TCP, 0x80080005 - Server execution failed.
32009 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_UDP, 0x80080005 - Server execution failed.
32010 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_ICMP, 0x80080005 - Server execution failed.
32011 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Cache, 0x80080005 - Server execution failed.
32012 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Memory, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32013 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Objects, 0x80080005 - Server execution failed.
32014 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_PagingFile, 0x80080005 - Server execution failed.
32015 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Processor, 0x80080005 - Server execution failed.
32016 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_System, 0x80080005 - Server execution failed.
32017 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfProc_Process, 0x80080005 - Server execution failed.
32018 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfProc_Thread, 0x80080005 - Server execution failed.
32019 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_IP, 0x80080005 - Server execution failed.
32020 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_TCP, 0x80080005 - Server execution failed.
32021 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_UDP, 0x80080005 - Server execution failed.
32022 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_ICMP, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32023 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Cache, 0x80080005 - Server execution failed.
32024 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Memory, 0x80080005 - Server execution failed.
32025 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Objects, 0x80080005 - Server execution failed.
32026 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_PagingFile, 0x80080005 - Server execution failed.
32027 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Processor, 0x80080005 - Server execution failed.
32028 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_System, 0x80080005 - Server execution failed.
32029 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfProc_Process, 0x80080005 - Server execution failed.
32030 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfProc_Thread, 0x80080005 - Server execution failed.
32031 14:20:05 (0) **
32032 14:20:05 (1) !! ERROR: WMI EXECQUERY operation errors reported: ............................................ 17 ERROR(S)!
32033 14:20:05 (0) ** - Root/Default, SELECT * FROM SystemRestore, 0x80080005 - Server execution failed.
32034 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_LogicalDisk WHERE FreeSpace > 10000000 AND DriveType = 3, 0x80080005 - Server execution failed.
32035 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_PageFileUsage, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32036 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_BIOS WHERE Version IS NOT NULL, 0x80080005 - Server execution failed.
32037 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_NetworkAdapter WHERE AdapterType IS NOT NULL AND AdapterType != "Wide Area Network (WAN)" AND Description != "Packet Scheduler Miniport", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32038 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_Processor WHERE Name IS NOT NULL, 0x80080005 - Server execution failed.
32039 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DiskDrive, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32040 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_ComputerSystem, 0x80080005 - Server execution failed.
32041 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DiskPartition, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32042 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_LogicalDisk WHERE Description != "Network Connection", 0x80080005 - Server execution failed.
32043 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_SoundDevice, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32044 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_VideoController, 0x80080005 - Server execution failed.
32045 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_USBController, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32046 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DesktopMonitor, 0x80080005 - Server execution failed.
32047 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_PointingDevice WHERE Status = "OK", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32048 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_Keyboard, 0x80080005 - Server execution failed.
32049 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_SystemDriver WHERE StartMode != "Disabled", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
32050 14:20:05 (0) **
32051 14:20:05 (0) ** WMI PUT operations: ........................................................................ OK.
32052 14:20:05 (0) ** WMI DELETE operations: ..................................................................... OK.
32053 14:20:05 (0) ** WMI GET VALUE operations: .................................................................. OK.
32054 14:20:05 (0) ** WMI static instances retrieved: ............................................................ 1541.
32055 14:20:05 (0) ** WMI dynamic instances retrieved: ........................................................... 0.
32056 14:20:05 (0) ** WMI instances request cancellations (to limit performance impact): ......................... 0.
32057 14:20:05 (0) **
32058 14:20:05 (0) ** 38 error(s) 0x80080005 - (WBEM_UNKNOWN) This error code is external to WMI.
32059 14:20:05 (0) **
32060 14:20:05 (0) ** 1 error(s) 0x80041011 - (WBEM_E_PROVIDER_NOT_FOUND) Provider referenced in the schema does not have a corresponding registration
32061 14:20:05 (0) ** => This error is typically due to the following major reasons:
32062 14:20:05 (0) ** - The application queried by the WMI provider is not installed, not available or not running
32063 14:20:05 (0) ** at the time of the request was made. This error can also be generated because
32064 14:20:05 (0) ** the application supporting the providers has been uninstalled.
32065 14:20:05 (0) ** - The WMI provider binary files are not accessible (e.g. access denied ACL).
32066 14:20:05 (0) ** - A WMI provider registration problem at the CIM level (MOFCOMP.EXE) or at the COM level (REGSVR32.EXE).
32067 14:20:05 (0) ** You must re-register the WMI provider by recompiling its associated MOF file with MOFCOMP.EXE
32068 14:20:05 (0) ** Note: - If the WMI provider DLL CIM and COM registrations are correct, this error can
32069 14:20:05 (0) ** be returned because the provider has a dependency on another DLL that cannot be
32070 14:20:05 (0) ** loaded (missing or bad DLL)
32071 14:20:05 (0) ** - Dependencies can be found with the DEPENDS.EXE tool coming with the
32072 14:20:05 (0) ** Windows XP and Windows 2003 Support Tools. The command line is as follows:
32073 14:20:05 (0) ** e.g. DEPENDS.EXE <PATH><Provider.DLL>
32074 14:20:05 (0) ** => If the software has been de-installed intentionally, then this information must be
32075 14:20:05 (0) ** removed from the WMI repository. You can use the 'WMIC.EXE' command to remove the provider
32076 14:20:05 (0) ** registration data and its set of associated classes.
32077 14:20:05 (0) ** => To correct this situation, you can:
32078 14:20:05 (0) ** - Install or start the application supporting these providers.
32079 14:20:05 (0) ** - Register the providers in CIM (MOFCOMP) or DCOM (REGSVR32).
32080 14:20:05 (0) ** Note: In this case the provider should also be listed in the 'missing WMI
32081 14:20:05 (0) ** provider DCOM registrations' or in the 'missing WMI provider files' section.
32082 14:20:05 (2) !! WARNING: Re-registering with REGSVR32.EXE all DLL from 'C:\WINDOWS\SYSTEM32\WBEM\'
32083 14:20:05 (0) ** may not solve the problem as the DLL supporting the WMI class(es)
32084 14:20:05 (0) ** can be located in a different folder.
32085 14:20:05 (0) ** You must refer to the class name to determine the software delivering the related DLL.
32086 14:20:05 (0) **
Thanks, --Jo -
Problem in getting the database connection from a connection pool
Hai All,
I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
I am using the Oracle database 8.1.7.
I have configured my connection pool, datasource and JNDI in weblogic.
In my java program i have the following code to retrieve the connection.
import java.sql.*;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
class jdbcshp1 {
public static void main(String[] args) {
Connection connection = null;
try {
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); // Wanna get rid of this.
ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
// Get a context for the JNDI look up
Context ctx = new InitialContext(ht);
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
//Create a connection object
connection = ds.getConnection();
The above code is working fine but, the two ht.put statements are creating problem.
The problem is, after converting the application into WAR file it can be deployed
on any machine or different port on same machine. My application fails if its deployed on
weglogicserver which is at different port.
Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
any help is appreciated.
Thanks in advance
Pooja.Hai All,
Firstly, thanks for ur reply.
Even i have seen some code which uses context constructor with out any parameter and works fine.
i dont understand why its not working for my code.
When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
Context ctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
connection = ds.getConnection();The error is as follows:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
I appreciate all ur valuable help.
Thanks once again.
Pooja. -
Could not get schema Object:java.sql.SQLSyntaxErrorException ora-904
All of a sudden I get
Could not get schema Object:java.sql.SQLSyntaxErrorException: ORA-00904: "SYS"."O"."NAME": ongeldige ID
when doing anything in the tables tree in the connections pane
The only thing I set recently is pga_aggregate_target
Environment
Oracle 11.2.0.1
OS Windows Vista Ultimate sp2
Sql developer 2.1.1.64.39 with its own JDK
As the download links on OTN are broken I can not upgrade, and I'd rather not work in command line sqlplus.
Help!!!
Sybrand Bakker
Senior Oracle DBAMy copy of sqldeveloper isn't located in that directory. Would that matter?
In the mean time I have disabled filtering the tables node. Opening the tables node doesn't result in exceptions anymore.
Now, when I click on any table in that node I get 4 identical ora-904 error messages for sys.o.name for any table.
Apparently it is querying either the all_objects view and it thinks it is querying sys.obj$.
I didn't yet enable sql_trace for the session, I'm more or less giving up on sqldeveloper. I can not use the space bar in any datagrid, sqldeveloper has always been extreemly unresponsive when navigating the schema browser (as opposed to Toad), etc, etc. Too bad I bought Sue Harpers book, but I think I will be de-installing sqldeveloper soon.
Sybrand Bakker
Senior Oracle DBA -
Error "Problem occured locking WS object" while activating Proxy
Hi All,
I have move an Inbout proxy to a different Client(QA system) and in QA system that proxy shows incative.
When i tried to activate that proxy/service in Sproxy, getting error "Problem occured locking WS object".
Proxy was active in development system and was working fine without any error.
Please provide some help, what need to be done to fix this issue
Thanks
HarshitHi Harshit,
Try with the following steps in sequence:
1. Re-genarate the proxy in Development - Create a New Transport Reuest.
2. Transport the Proxy from PI Dev to PI OA
3. Confirm the Proxy in PI QA and then, transport the re-generated Request from ECC Dev to ECC QA.
Regards,
Pranav.
Maybe you are looking for
-
No Data in Reports Details in Custom date range
Hello, iTunes U Public Site Manager Admins. As the iTunes U Public Site Manager admin, I've been trying to access our institution's iTunes U Reports Details for a couple of days. (I send a monthly report of usage to our course/collection contributors
-
How to change line width runtime?
Hi, I want to change line width dynamically or runtime depending on certain conditions. I had written format trigger on line and used SRW.SET_BORDER_WIDTH but it does not work. so what is other possible solution for this? Thanks in advance.
-
I hope this question does not sound confusing. When I click the Collapsible tab, I want the content to appear from the top - not the bottom. (See example link: http://www.longhollow.com - click "Time & Location" on the top right and you will see the
-
Hi All, I have heard the we should not transport master data.Can somebody pls tell me what are repurcassions if i do so?Can you give me the list of some SAP notes where SAP doesnt recommend to transport master data? Archit
-
When in Facebook, I keep getting a window that I'm not logged in if I am on the site for about 10 minutes. I checked the error console and it told me that there is a possibility of being vulnerable. I cleared cookies and caches and also changed my pa