Error in creating GUID using com.sap.guid API's
Hi
i am trying to create GUID using com.sap.guid API's. I've included the guidgenerator.jar in the classpath. I ran the following code. i got the "Caused by: java.lang.NoClassDefFoundError: com/sap/guid/GUIDGeneratorFactory " error.
the code is
package com.portal;
import com.sapportals.portal.prt.component.;*
import com.sap.guid.GUIDGeneratorFactory;
import com.sap.guid.IGUID;
import com.sap.guid.IGUIDGenerator;
import com.sap.guid.IGUIDGeneratorFactory;
public class TestCompforGUID extends AbstractPortalComponent
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
* IGUIDGenerator generator = GUIDGeneratorFactory.getInstance().createGUIDGenerator();*
* String guid = generator.createGUID().toString();*
* String hexGuid = generator.createGUID().toHexString();*
* response.write(guid);*
* response.write(hexGuid);*
can anyone created the GUID's using com.sap.guid API's and help me here.
Do i need to specify any reference in Portalapp.xml ?
Thanks,
Saravanan
difficult to reproduce. But it might be a data conversion problem.
e.g. try
to_char(a.num_tabs)If that's not the error comment out certain lines or xmltags and test which one is the reason for the error.
Edited by: Sven W. on Sep 9, 2011 3:13 PM - typo correction
Similar Messages
-
Hi experts.
My scenario is File --> PI --> File.
During the message mapping there are a few RFC lockups.
I have configured an communication component for the RFC destination, and a Receiver communication channel to the RFC system.
When I am trying to check the message mapping and the operation mapping from the integration builder every thing works just fine.
In the interface determination i have configured the rfc parameter for the mapping.
When I am trying to run the hole process i receive an error saying:"Runtime exception from: java.lang.nullPointerException:
null at com.sap.guid.GUID.parsHEXguid(guid.java:1015)
reguars MaxDid you test your operation mapping??
Did you provide your RFC communication channel name and import parameters value in paramter tab of Operation mappi
Yes I did.
I have tested the operation mapping and it runs just fine.
Also all the parameters are specified.
And the communication channel is configured.
Just to make sure the communication channel is configured well.
Should it be configured as RFC adepter and connected to the system on which the RFCs are located?
If this is all of the configuration needed i have already done them.
Any suggestions?
Regards Max. -
Help! NoClassDefFoundError: com/sap/guid/GUIDGeneratorFactory
Hi,
I create an enterprise application that is a simple servlet application. In the servlet application, I use GUID to generate unique primary keys for database tables.
Compile/build my application works fine. But when I try to run the application, I got "Exception caught java.lang.NoClassDefFoundError: com/sap/guid/GUIDGeneratorFactory ..." error.
I have add a reference to com.sap.base.technology.facade in "application-j2ee-engine.xml" file.
Please help me on this issue. Thanks in advance!
Best regards
JamesHi James,
Why
<i>com.sap.base.technology.facade</i>
why not:
<i>
<reference
reference-type="hard">
<reference-target
provider-name="sap.com"
target-type="library">com.sap.guid</reference-target>
</reference>
</i>
best regards, Maksim Rashchynski. -
Com.sap.guid.GUID com.sap.mw.rfc.engine.GUID
Hi to All!
I am looking for javadoc for the classes com.sap.guid.GUID and com.sap.mw.rfc.engine.GUID.
Has anybody a link for me
Regards
HermannHi Nagarjuna,
You can paste the conection properties?.
try {
// Change the logon information to your own system/user
mConnection =
JCO.createClient("001", // SAP client
"<userid>", // userid
"****", // password
null, // language
"<hostname>", // application server host name
"00"); // system number
mConnection.connect();
mRepository = new JCO.Repository("ARAsoft", mConnection);
You need use server router string or simple server hostname??.
if you need use route string conection, concatenate router string with hostname:
try {
// Change the logon information to your own system/user
mConnection =
JCO.createClient("001", // SAP client
"<userid>", // userid
"****", // password
null, // language
"<router string><hostname>", // application server host name
"00"); // system number
mConnection.connect();
mRepository = new JCO.Repository("ARAsoft", mConnection);
get us more details pls, -
Error while creating IViews using collaboration API
Hi
I have created one Dynpage portal component, in that i would like to utilize collaboration API.
I am keep on getting errors like "<b>The compilation unit directly references the missing type ...."</b>"
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sap.ip.collaboration.room.api.IRooms;
import com.sapportals.portal.prt.runtime.PortalRuntime;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
public class Sample extends PageProcessorComponent {
public DynPage getPage() {
return new SampleDynPage();
public static class SampleDynPage extends DynPage
IRooms roomsAPI = (IRooms)PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
Initialization code executed once per user.
I have included the following jar files:
bc.rf.framework_api.jar
coll.shared.extension_api.jar
coll.shared.roomobject_api.jar
coll.shared.types_api.jar
com.sap.security.api.ep5.jar
and also i have included com.sap.netweaver.coll.shared in portal.xml as servicesreference
Experts can you please help in the above problem
I am sure u will get reward points.
Thanks in AdvanceHI,
You have to add the following jars apart from the jars you have mentioned
1. kmc.util.core_api.jar
2. umapi.jar
To find jar files
==================
Download and install the JAR Finder. how to is mentioned in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951">Weblog</a>. see what jar is required by copying the com.sap.ip.BaseException from the error "compilation unit references................." and put the "BaseException" in the jar finder and search. from the given options select the correct jar "com.sap.ip.BaseException" right click and add to the project. You can add all the jars required by this method.
Portalapp.xml
==============
<application-config>
<property name="SharingReference" value="com.sap.portal.htmlb"/>
<property name="ServicesReference" value="com.sap.netweaver.coll.shared"/>
</application-config>
HI,
use the BaseException etc the errors you get in NWDS to search for the jar. paste the BaseException and search in jarfinder.
Message was edited by: Kirupanand Venkatapathi
Message was edited by: Kirupanand Venkatapathi -
Getting error while creating subsite using custom template in sharepoint2013
Hi,
I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
Please suggest me on this.
Thanks in advance.You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Hello All,
Does anyone know what this message means? All our programs using RFC to send data to another system is encountering error below. Please help.
Error in processing caused by: com.sap.aii.af.rfc.afcommunication.RfcAFWException: alternativeServiceIdentifier: party/service from channel configuration are not equal to party/service from lookup of alternativeServiceIdentifier (CPA party/service/channel ''/'ZBS_R3BACKEND2'/'CC_MQ_Rfc_Outbound', lookup of alternativeServiceIdentifier for party '', schema 'TechnicalSystem' with 'QAS#100' returned party/service of ''/'ZBS_R3BACKEND')
Regards,
AlfredHi
have u configured the Bussiness System with correct client which u r trying to connect?
check if u have imported RFC from right client.
rgds
srini -
when i send a test message throw the RWB for Http receiver adapter it is giving the error "Error in processing caused by: com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SOCKET_TIMEOUT, Read timed out"
Hi, Michal
I have read your Weblog. It makes sense to me. Thanks a lot for your help! However, I still have some questions and listed them as following. Could you please help to answer them?
<b>Q1:</b> I am new to SAP-XI. So I have no idea about TCODE-SXMB_ADM. Could you introduce more details about it?
<b>Q2:</b> The XI system I am using is running on SAP-ICC's machine. The tools I can use are:
<b>1.</b>Builder for Integration Repository
<b>2.</b>Builder for Integration Configuration
<b>3.</b>System Landscape Directory
<b>4.</b>Runtime Workbench
<b>5.</b>Administration System (for Repository, Directory, Runtime)
Please note that I do not have a complete control on this SAP-XI. Do you think whether or not I can set the timeout parameter by following the instructions provided in your Weblog?
For more details about my SAP-XI, please access the following Web page:
http://iccxi.sap.com:58000/rep/support/admin/index.html
<b>Q3:</b> The following messages are extracted from the SAP-XI. Wish they are hepful to solving my problem.
2006-06-19 05:12:16 Success The message was successfully received by the messaging system. Profile: XI URL: http://iccxi.sap.com:58000/MessagingSystem/receive/AFW/XI
2006-06-19 05:12:16 Success Using connection AFW. Trying to put the message into the request queue.
2006-06-19 05:12:16 Success Message successfully put into the queue.
2006-06-19 05:12:16 Success The message was successfully retrieved from the request queue.
2006-06-19 05:12:16 Success The message status set to DLNG.
2006-06-19 05:12:16 Success Delivering to channel: ValidationRequestHandlerServiceChannel
2006-06-19 05:12:16 Success SOAP: request message entering the adapter
2006-06-19 05:12:37 Success SOAP: call failed
2006-06-19 05:12:37 Error SOAP: error occured: java.net.ConnectException: Connection timed out: connect
2006-06-19 05:12:37 Error Exception caught by adapter framework: Connection timed out: connect
Thanks
Menghua Li -
Hello.
Recently, I Add a New Server Node on Java Central Instance.
And Java Program Upload on Portal, then following error occured.
Error in the listener class com.sap.ip.portal.admin.portalanywhere.QueryHandler during the process of
handleTopic
Original server node can upload successfully.
But, An error happens in New Additional node.
Please tell me way to resolve the error.
Regards.
Edited by: Masashi Fujita on Dec 24, 2008 5:29 AM
Edited by: Masashi Fujita on Dec 25, 2008 7:20 AMHi Masashi Fujita,
Check this Link for Uploading and Downloading files using Web Dynpro Java.
[Uploading and Downloading Files in Web Dynpro Java|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71]
[Upload Files Using Web Service in Web Dynpro Java Application|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0d9336b-b4cf-2910-bdbf-b00d89bd2929]
[Uploading and Downloading Files in Web Dynpro Tables|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f]
Thanks & Regards,
Sharma Kvbk. -
Hi All,
Iam getting this error while trying to change "com.sap.portal.navigation.masthead.par" within portal. I have updated the HeaderiView.jsp and then saved the PAR file and uploaded the file. It was successful upload from Administration console. But after I logged into portal again, I got this error and even though I tried to revert back the changes, it still gives the same error. Has any one faced similar issue? We faced this during the IE8 (Internet explorer 8) upgrade to SP 27 in sap portal.
Thanks.
#1.#0003BA4D72F200540000000300003DEA00049C4FAA821F4E#1297765883836#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#O000001496#192##n/a##bbf9eef438ee11e08722000035d6a152#Thread[PRT-Async 2,5,PRT-Async]##0#0#Error##Java###10:31_15/02/11_903258450
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component :
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
at com.sapportals.portal.pb.PageBuilder.createIviewProfile(PageBuilder.java:418)
at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:372)
at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:234)
at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:576)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:725)
at com.sapportals.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:706)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.navigation.PortalLauncher.doOnNodeReady(PortalLauncher.java:218)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:547)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.sap.portal.navigation.Gateway.service(Gateway.java:101)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application
at com.sapportals.portal.prt.core.broker.PortalApplicationItem.getDeploymentDescriptor(PortalApplicationItem.java:1622)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.getConfiguration(PortalComponentItem.java:1022)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.refresh(PortalComponentItem.java:274)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:729)
at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
... 42 moreThanks Raghu.
I have tried that option as well. But, when I uploaded the PAR file from DEV to Sandbox environment, the header did not work, but I identified that the "portalapp.xml" file is only partially deployed (even though the PAR that is used for Upload (using Admin Console) contained all parameters. I could not understand why the portalapp.xml is only partially deployed.
After deployment the portalapp.xml has only 3 properties within it : ClassLoadingPolicy, value 5.0, DeploymentPolicy, value 5.0 and AuthenticationPolicy, value 5.0,
and all other attributes that are part of the uploaded par file are not present after deployment within "PAR directory within portalapps directory".
Edited by: jakk on Feb 16, 2011 5:17 PM
Edited by: jakk on Feb 16, 2011 5:19 PM -
Error while creating stock using tcode: MB1C
Error while creating stock using tcode: MB1C
The Error is: Check table T004F:entry G006 does not existHi ,
Please check the FSV (field status variant) for your company code in OBY6 .
then go to transaction code OB14 --> enter the FSV --> Check if field status group G006(Material account) is maintained there or not.
if not please maintain it.
Thanks & Regards
Anshu -
after PI-Upgrade to NW-PI-731-SP07, executing the PI-configuration wizard:
step 126 of 162
Assign SLD Data Supplier user to Group SAP_SLD_DATA_SUPPLIER (local SLD)
Error:
Group found, but unique name "SAP_SLD_DATA_SUPPLIER" is not unique!
Execute Java Service
Library: sap.com/tc~lm~ctc~util~core_ear
Class: com.sap.ctc.util.core.services.UserFacade
Method: void com.sap.ctc.util.core.services.UserFacade.addUserToGroup(java.lang.String, java.lang.String)
Arguments (2)
userName : SLD_DS_EXE
groupName : SAP_SLD_DATA_SUPPLIER
InvokeService- Result: ERROR
Refresh Env. Messages: false
Duration: 1.936 sec
Library Info
Default Trace
Exception Class: com.sap.security.api.DuplicateKeyException
Exception Message: Group found, but unique name "SAP_SLD_DATA_SUPPLIER" is not unique!
com.sap.security.api.DuplicateKeyException: Group found, but unique name "SAP_SLD_DATA_SUPPLIER" is not unique!
at com.sap.ctc.util.infra.rfc.BaseConfig.dispatchException(BaseConfig.java:230)
at com.sap.ctc.util.core.services.impl.ume.java.GroupJavaImpl.verify(GroupJavaImpl.java:121)
at com.sap.ctc.util.core.services.impl.ume.DualGroupImpl.verify(DualGroupImpl.java:118)
at com.sap.ctc.util.core.services.content.ume.UserService.addToGroup(UserService.java:725)
at com.sap.ctc.util.core.services.UserFacade.addUserToGroup(UserFacade.java:288)
what to do?
============
o.k.
https://service.sap.com/sap/support/notes/1016283
first run the UME consistency check => found some inconsistency => did repair UME
then run again UME consistency check => found no more inconsistency !!
the again - try to run the PI-Upgrade-Wizard => but again error on executing .....see this sap-notes:
http://service.sap.com/sap/support/notes/1617234
http://service.sap.com/sap/support/notes/1661135
http://service.sap.com/sap/support/notes/1678815
http://service.sap.com/sap/support/notes/1626747 -
Hi ,
Can i know , in Ep5.0 , what jar file has com.sap.security.api ? Please reply soon...
Thank you ,
avinashso , is there a procedure for me to use the Ep5.0 API and retrieve details from the data sources (for usermapping) ?
Please reply me soon....
thank you,
avinash -
hi Experts ,
While configuring the sld in my nwds 7.3 sp 10 im getting the below error please help me to solve the issue
com.sap.sld.api.wbem.exception.CIMCommunicationException: CIM_ERR_FAILED: Received response is not a CIM Operation Response! Check "http://**.***.***.***:50000/sld/" is the correct URL for the SLD CIM Object Manager (default is "http://**.***.***.***:50000/sld/cimom") and that user "" has access to the SLD via http and is not required to change his/her password.
at com.sap.sld.api.wbem.client.WBEMHttpRequestSender.processResponse(WBEMHttpRequestSender.java:550)
Regards
Govardanwhat you put in nwds?
http://**.***.***.***:50000/ is enough, no sld at the end. -
I have just started testing an end to end process that uses RFC Lookups on PI 7.1 ...
when testing the mapping from the ESR in both message mapping and operational mapping, it works fine..
when i run it end to end i get the following error:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">RUNTIME_EXCEPTION</SAP:Code>
<SAP:P1>Thrown: java.lang.NullPointerException: at com.s</SAP:P1>
<SAP:P2>ap.guid.GUID.parseHexGUID(GUID.java:1015) at com.</SAP:P2>
<SAP:P3>sap.guid.GUIDGenerator.parseHexGUID(GUIDGenerator.</SAP:P3>
<SAP:P4>java:111) at com.sap.aii.utilxi.misc.api.GUIDFac~</SAP:P4>
<SAP:AdditionalText />
<SAP:Stack>Runtime exception occurred during mapping</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
i can take the xml and run it perfectly in the ESR in both OM and MM mapping..... any suggestions? i believe all the config is there for the RFC Lookup...There was config missing in the interface determination in the ID. Parameter assigned and tested.
Maybe you are looking for
-
Hello I am a solo musician and I am in the process of completing home studio. Since I am starting from scratch and have a luxury of spending 10K at once I have compiled a list of gear I plan to put together: Audio Interface - Motu - traveler Midi Syn
-
HT1178 mapping network drive on my PC for the time capsule
hello
-
Autoviewer slideshow in iweb- transparency?
Hi guys, Does anyone know how i can make my autoviewer slideshow have a transparent background so the page behind shows through around the photos? Right now the frame colour and background colour in the webexport options are: background 181818 and fr
-
Cursor positions can't extract waveform subset
Hi there, I'm trying to get two cursor positions on a waveform graph to be the inputs for the code below, which will begin a process that will analyse a subset of the waveform. The two cursors define the start and end point for the waveform (Cursor 0
-
Hi All, We have to send the JMS messages to external server.External server using weblogic as the application server and u201CAccess JMS Provider with JNDIu201D is the JMS provider. To connect to external server queue do I need to create local queue