Shop admin compilation error
Hi Experts,
I am new to CRM web order management, I was recently given the task to configure the XCM of both B2B and Shopadmin.
When I checked the JCO connections everything was green and I believe I have properly maintained both XCMs.
When I try to login to the B2B site I receive an error "shoplist read from buffer is empty" which is expected since I have not yet maintained any webshops in Shopadmin.
But when I try and access the Shopadmin page I could not get into the login screen because of a "500 Internal server error" with this.
ISA Framework: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: [/usr/sap/GGA/JC00/j2ee/cluster/server0/apps/sap.com/crm~shopadmin/servlet_jsp/shopadmin/work/jsp_login1313152045913.java:29: cannot resolve symbol symbol : class BusinessObjectManager location: package businessobject import com.sap.isa.businessobject.BusinessObjectManager; ^ 1 error ].
I believe that the compiler cannot find the BusinessObjectManager class that is being defined at line 29, but our java experts say it is not a code error but a configuration error since no one has touched the code.
I double checked my XCM configurations and I don't know how correct this problem.
Any ideas?
Thanks
Hi JP___L,
Just some pointers:
I don't think it is a config issue. Can you please check in visaul admin if the shopadmin app is deployed properly? Also, please try to stop and start the shopadmin app once.
I assume you are accessing a Standar App, so you should have all the used dc relations established already..
btw,what is the URL are you getting this issue?
http://host:port/shopadmin/admin/xcm/init.do
OR
http://host:port/shopadmin/shopadmin/init.do
-Raj
Similar Messages
-
Getting a compilation error when deploying a web service to OC4J.
The following are the error that I got from Oracle AS server console:
[Feb 5, 2007 11:31:14 AM] Application Deployer for edsssaws STARTS.
[Feb 5, 2007 11:31:14 AM] Copy the archive to D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws.ear
[Feb 5, 2007 11:31:14 AM] Initialize D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws.ear begins...
[Feb 5, 2007 11:31:14 AM] Unpacking edsssaws.ear
[Feb 5, 2007 11:31:14 AM] Done unpacking edsssaws.ear
[Feb 5, 2007 11:31:14 AM] Unpacking edsssaws-web.war
[Feb 5, 2007 11:31:16 AM] Done unpacking edsssaws-web.war
[Feb 5, 2007 11:31:16 AM] Initialize D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws.ear ends...
[Feb 5, 2007 11:31:16 AM] Starting application : edsssaws
[Feb 5, 2007 11:31:16 AM] Initializing ClassLoader(s)
[Feb 5, 2007 11:31:16 AM] Initializing EJB container
[Feb 5, 2007 11:31:16 AM] Loading connector(s)
[Feb 5, 2007 11:31:16 AM] Starting up resource adapters
[Feb 5, 2007 11:31:16 AM] Initializing EJB sessions
[Feb 5, 2007 11:31:16 AM] Committing ClassLoader(s)
[Feb 5, 2007 11:31:16 AM] Initialize edsssaws-web begins...
[Feb 5, 2007 11:31:16 AM] Initialize edsssaws-web ends...
[Feb 5, 2007 11:31:16 AM] Started application : edsssaws
[Feb 5, 2007 11:31:16 AM] Binding web application(s) to site default-web-site begins...
[Feb 5, 2007 11:31:16 AM] Binding edsssaws-web web-module for application edsssaws to site default-web-site under context root edsssaws
[Feb 5, 2007 11:31:35 AM] Operation failed with error: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred
I don't have any problem to build the webservice using oracle:assemble command in ant script, nor compilation error in the build time.
The error log shows as the following:
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2007-02-05T11:31:35.392-06:00</TSTZ_ORIGINATING>
<COMPONENT_ID>oc4j</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>16</MSG_LEVEL>
<HOST_ID>w2gzfdx801</HOST_ID>
<HOST_NWADDR>148.94.36.32</HOST_NWADDR>
<MODULE_ID>admin.jmx.client.EventManager</MODULE_ID>
<THREAD_ID>26</THREAD_ID>
<USER_ID>SYSTEM</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>148.94.36.32:33615:1170696695392:16</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>1 events to be dispatched for: oracle.oc4j.admin.management.mejb.MEjb@a8c31b and domain: oc4j-w2gzfdx801.amer.corp.eds.com-12401-default</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2007-02-05T11:31:35.392-06:00</TSTZ_ORIGINATING>
<COMPONENT_ID>oc4j</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>w2gzfdx801</HOST_ID>
<HOST_NWADDR>148.94.36.32</HOST_NWADDR>
<MODULE_ID>admin.jmx.client.CoreRemoteMBeanServer</MODULE_ID>
<THREAD_ID>26</THREAD_ID>
<USER_ID>SYSTEM</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>148.94.36.32:33615:1170696695392:16</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Dispatching event type: deploy.edsssaws and message: Application Deployer for edsssaws FAILED. to listener with id: 0 on MBeanServer proxy: oracle.oc4j.admin.management.mejb.MEjb@a8c31b</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2007-02-05T11:31:35.392-06:00</TSTZ_ORIGINATING>
<COMPONENT_ID>oc4j</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>w2gzfdx801</HOST_ID>
<HOST_NWADDR>148.94.36.32</HOST_NWADDR>
<MODULE_ID>admin.deploy.spi.status.ProgressObjectImpl</MODULE_ID>
<THREAD_ID>26</THREAD_ID>
<USER_ID>SYSTEM</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>148.94.36.32:33615:1170696695392:16</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[oracle.oc4j.admin.jmx.shared.exceptions.InternalException: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred
at oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(NotificationUserData.java:107)
at oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:123)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:214)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
... 4 more
Caused by: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred
at com.evermind.server.http.WrapperClassGenerator.generateWebServiceArts(WrapperClassGenerator.java:98)
at com.evermind.server.http.HttpApplication.generateWebServiceArtifacts(HttpApplication.java:8403)
at com.evermind.server.http.HttpApplication.populateLoaderWithWebServicesDeploymentCache(HttpApplication.java:5465)
at com.evermind.server.http.HttpApplication.populateLoader(HttpApplication.java:5394)
at com.evermind.server.http.HttpApplication.initClassLoader(HttpApplication.java:5333)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:645)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
at com.evermind.server.Application.getHttpApplication(Application.java:512)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
... 8 more
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE>
Any idea why it happened?
Thanks,
JasonHello,
I do not see why you have this error, is it the only log entry that you have? Anything in the application.log?
Can you send me the ear? tugdual [dot] grall [at] oracle [dot] com
Regards
Tugdual Grall -
Hello,
I currently having a series of errors (18 issues) that are occurring under the below Correlation ID ad1a22f5-1ddb-4fa5-8487-143cb6fd0f9d
I have listed (3) that are in the Web Parts category, this error/issue is causing several timed job to no longer work properly I have been trying to find the root cause for about a week now. If anyone has encountered a issue
such as this one I'm open for suggestions.
(1)
Error while executing web part: System.Xml.Xsl.XslLoadException: XSLT compile error. An error occurred at (1,475). ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest
asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult
lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception
stack trace --- at System.Net.HttpWebRequest.GetResponse() at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri
absoluteUri, String role, Type ofObjectToReturn) at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri
uri, XmlResolver xmlResolver) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
--- End of inner exception stack trace --- at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include) at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver
xmlResolver) at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil) at System.Xml.Xsl.XslCompiledTransform.CompileXsltToQil(Object stylesheet, XsltSettings
settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader
stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
(2)
InnerException 1: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according
to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean
receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback,
Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri
absoluteUri, String role, Type ofObjectToReturn) at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri uri, XmlResolver xmlResolver) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include)
at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
(3)
InnerException 2: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest
asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult
lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async)Hello,
It seems that issue is related to certificate. Could you please upload certificate to central admin and make it trust.
Just try this and see the result:
http://social.technet.microsoft.com/Forums/en-US/cbc58585-1673-4c91-b8c1-1b95c339bbb7/could-not-establish-trust-relationship-for-the-ssltls-secure-channel?forum=fastsharepoint
http://social.msdn.microsoft.com/Forums/en-US/7a7e56ba-6e95-4a84-9384-791818cce89d/the-underlying-connection-was-closed-could-not-establish-trust-relationship-for-the-ssltls-secure?forum=sharepointdevelopmentprevious
http://www.infotext.com/help/sharepoint-could-not-estabilish-trust-relationship-for-the-ssltls-secure-channel-when-crawling-ssl-enabled-websites/
If still face the issue then tell us more about your webparts and also confirm if you are facing same problem to other page and site.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Smart View compile error on startup
Hi
Just installed the following components:
- Windows 2008R2
- Office 2010 x64 with SP2
- Smart View 11.1.2.5.210 (x64)
When I start and close Excel I get the following:
Microsoft Visual Basic for Applications
Compile error in hidden module: HsTBarPublic. This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.
The same software version works fine on 32bit versions of Office 2010 + Smart View. Any ideas for troubleshooting 64bit Applications of Office and Smart View?
Thanks
AnthonyHad the same problem with conflict between CS6 (Photoshop, Premier, After Effects, etc.] and Net Nanny. Solution was as follows:
1. Log onto Net Nanny Admin Tools
2. Click on Application Exceptions
3. Click Add
4. Browse to folder containing "dynamiclinkmanager.exe". On my computer (Windows 7 Pro) it was located in
C:\Program Files (x86)\Common Files\Adobe\dynamiclink\CS6
[I do have dynamiclinkmanager.exe elsewhere, but Net Nanny only allows you to identify a given file name once]
5. Select dynamiclinkmanger.exe, Open, OK
6. Repeat steps 3 to 5 but this time for "dynamiclinkmediaserver.exe" which I found in
C:\Program Files (x86)\Common Files\Adobe\dynamiclinkmediaserver\1.0
7. Click OK to accept application exceptions
8. Exit Net Nanny Admin Tools
7. On my computer Photoshop would now load without incident, but if necessary reboot.
NOTE: Once I solved the dynamiclinkmanager stopped problem I then encountered an Adobe Media Core stopped problem when I started After Effects and Premier. To resolve this second problem with Net Nanny I repeated the above steps adding the following application exception:
"Adobe QT32 Server.exe"
which I found in
C:\Program Files (x86)\Common Files\Adobe\dynamiclinkmediaserver\1.0
[Again there are multiple copies of "Adobe QT32 Server.exe" but Net Nanny accepts only one, and I selected the one in "Program Files (x86)" and not the ones in "Program Files" because of this is where I also found dynamiclinkmanager.exe. All works fine now.]
Hope this works for you. -
Compilation error when deploying EAR file on standalone OC4J...
Hi All,
I am getting the following error when trying to deploy an EAR File describing a web service from the Jdeveloper IDE to the stanalone OC4J server instance.
==========================================================
Uploading file JavaWebServiceEmp-GetDates-WS.ear ...
Application Deployer for JavaWebServiceEmp-GetDates-WS STARTS.
Copy the archive to C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear
Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear begins...
Unpacking JavaWebServiceEmp-GetDates-WS.ear
Done unpacking JavaWebServiceEmp-GetDates-WS.ear
Unpacking WebServices.war
Done unpacking WebServices.war
Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear ends...
Starting application : JavaWebServiceEmp-GetDates-WS
Initializing ClassLoader(s)
Initializing EJB container
Loading connector(s)
Starting up resource adapters
Initializing EJB sessions
Committing ClassLoader(s)
Initialize WebServices begins...
Initialize WebServices ends...
Started application : JavaWebServiceEmp-GetDates-WS
Binding web application(s) to site default-web-site begins...
Binding WebServices web-module for application JavaWebServiceEmp-GetDates-WS to site default-web-site under context root JavaWebServiceEmp-GetDates-context-root
Operation failed with error:
Error compiling :C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS\WebServices: compilation error occurred
Deployment failed
Elapsed time for deployment: 1 minute, 50 seconds
==========================================================
Please could somebody help me out with this? Basically I am not able to understand how to deploy the EAR file created under the MyWork folder under jdeveloper\jdev to the applications folder of j2ee\home. I am new to both EAR deployment as well as web services and would like to get a good understanding of the working of a web service which includes SOAP components and the like.
Any help with regards to building and deploying a web service on standalone OC4J would be appreciated. Thanks a lot.Initially I followed the following steps to start up OC4J:-
Settings :-
1) Jdeveloper is setup under C:\Lester\Testing as Jdev10.1.3 folder
2) I downloaded the extended oc4j zip folder and unzipped it under a new folder oc4j at the location C:\Lester\Testing\Jdev10.1.3
Steps followed to run oc4j and deploy application
1) Setup a standalone oc4j from the jdeveloper ide giving C:\Lester\Testing\Jdev10.1.3\oc4j as the root folder for oc4j.
2) While doing step 1 added password and deployed it. Changed server.xml under C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/config
to include the following:-
<shared-library name="global.libraries" version="1.0" library-compatible="true">
<code-source path="C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/applib"/>
</shared-library>
AND
<java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" bindir="C:\Jdeveloper\jdk" extdirs="C:\Jdeveloper/jdk" />
3) Opened a command prompt and went to the location C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home and ran the following command:-
--> java -jar oc4j.jar
4) Deployment: Then I deployed my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
using:-
--> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -deploy -file PrimeNumberService.ear -deploymentName DocStyleWebService
5) Web Binding: Then I bound my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
using:-
--> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -bindWebApp DocStyleWebService PrimeNumberService_web http-web-site /docws
6) Steps 4 and 5 went through without error.
7) However when trying to access the web service using the following link I get the standard HTTP 404 (Page not found) error:-
http://localhost:8888/docws/prime
This was before I tried deploying the web service through jdeveloper IDE.
I had tried the document web service given at the following link:-
http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/docservice/index.html
from the web services how to links
http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/index.html
Please could somebody help me out? Also periodically I recieve the ojc.exe not found error when trying to deploy an application using jdeveloper ide. There are two conflicting jdeveloper versions one comes with this exe and one without.
Message was edited by:
Lester N -
Hi Team,
I need some inputs and help.
We are using CRM ISA 6.0 SP06. We are using the webshop functionality.
We currently analyze the errors in the webshop via the session logs which we have configured.
Now, when we have done the same setup for shop admin, we are unable to see any session logs.
Session logs for shop admin are not working. Session logs for webshop works and we are able to view the same.
We have already done the below settings in http://host:port/shopadmin/admin
XCM -
appinfo:True
logfiledownload:True and restart of the J2EE engine.
We get the below error when we check for the logs:
Application error occurred during request processing.
java.lang.Exception: java.io.FileNotFoundException: /session-2010-2-25_13-10_(J2EE967404400)ID1521894650DB00028780023514142548End.log (No such file or directory (errno:2))
Exception id: [0017A477401000660000016A00005E840004806C842020FC]
Please let me know if we are missing something.
Thanks
Warm Regards,
RajeetFor VPN session, it's best to log the following syslog messages:
For WebVPN:
Syslog#: 716001 - user connects:
http://www.cisco.com/en/US/docs/security/asa/asa82/system/message/logmsgs.html#wp4776913
Syslog#: 716002 - user disconnects:
http://www.cisco.com/en/US/docs/security/asa/asa82/system/message/logmsgs.html#wp4776918
For IPSec VPN Client:
Syslog#: 611101 - user connects:
http://www.cisco.com/en/US/docs/security/asa/asa82/system/message/logmsgs.html#wp4774570
Syslog#: 611102 - user authentication fails:
http://www.cisco.com/en/US/docs/security/asa/asa82/system/message/logmsgs.html#wp4774576
Syslog#: 611103 - user logoff:
http://www.cisco.com/en/US/docs/security/asa/asa82/system/message/logmsgs.html#wp4774581 -
Deployment Error -- JSP Compilation Error: java.lang.OutOfMemoryError -- nu
When I deploy WAR files with the precompile jsp option, I receive the following error:
Deployment Error -- JSP Compilation Error: java.lang.OutOfMemoryError -- null
Is there a way for me to precompile my jsp's without using this process? Once this blows up, the admin server gets hosed. This is very frustrating. Any suggestions would be appreciated.
Regards,
JoshuaYou need little more memory :-), use java param -mx512M.
You can adjust it in OC Server properties
AS > OC4J_home(demo) > Server Properties
section Multiple VM Configuration, Command Line Options
Java Options: -mx512M
Zajo -
BI Desktop - compile error in hidden module
Hi,
I realise this is a common and old problem, but I'm having trouble setting up BI publisher desktop on my laptop with:
64 bit
Windows 7
Office 2007
I started with this
https://blogs.oracle.com/xmlpublisher/entry/template_builder_woes
and I've tried these suggestions
compile error in hidden module: module starter (Urgent)
even to the point of removing .NET 4 and re-applying v2
I have re-installed BI desktop quite number of times now, and I've given up trying. Any tips?
ScottHi,
I too was facing the same problem while clicking on the log in button on the Microsoft Word.
I just executed the below command and now I am able to login to Bi Publisher through my Microsoft Word.
Run command prompt as Admin
For 64-bit operating systems, type the following:
Regsvr32 "C:\Windows\SysWOW64\MSCOMCTL.OCX"
For 32-bit operating systems, type the following:
Regsvr32 "C:\Windows\System32\MSCOMCTL.OCX"
Thanks,
Ila -
ORA-24344: success with compilation error While creating workspace
Hi,
We had an instance with db 9.2.0.5 and HTML DB 1.56.
First we upgraded database to to 10.1.0.4.Then we upgraded HTML DB to 1.6.1(Upgraded html db 1.5 to 1.6, Then applied patch 1.6.1 patch - 4173133)
Logged to the HTML DB as an administrator for creating application developer's workspace. I have got the error "ORA-24344: success with compilation error" while creating the workspace.
We are able to create the workspace successfully on HTML DB 1.5.
Any help is highly appreciated.
Thanks, VenkannaVenkanna - Do you think the workspace creation was at least partly successful? I mean, can you login to it, can you see anything about it in the admin app, etc.? It would be useful to get a list of invalid objects in the new workspace's schema. If there are none, then get a list of invalid objects in FLOWS_010600.
Scott -
Compilation Error on Launch.aspx after Update from SP2 to SP4
Hi experts,
I have installed BPC 5.1 SP 2, SP 3 and also SP 4 on a Testmachine and
do not have problems with it. On the productive machine at the customer
HTTPS was not working with SP3 after upgrading, with SP2 HF1 it worked
fine. (We reinstalled the software until SP2 HF1)
Now we needed SP4 for a serious Reporting problem and I installed SP4 on
the system. Now an compilation Error displays after launching the start-page.
Server Error in /OSoft Application
Compiler Error Message: BC30456 CodePage is not a member of ASP.launch_aspx
Source File D:\BPC\WebSrvr\Web\launch.aspx
Thanks for any help.
Regards,
Ralf IssmerHello,
Unfortunately we had no changes on the web at all. Only one change was neccessary in the Web.config, we need to add culture="en-US" so that the admin components could work correctly. There are also no other applications on this server. I also had a look at the log-File OSoftSP1Install.log. SP1 in the file name was confusing me actually, but the date and time within the file was from monday afternoon, when I installed the SP4.
Thank you,
Ralf Issmer -
Compilation Error for prvtbkrs.plb execution
I tried to solve the issue for RMAN connection and i run this script
prvtbkrs.plb
Warning: Package Body created with compilation errors.
SQL> show err
Errors for PACKAGE BODY DBMS_BACKUP_RESTORE:
LINE/COL ERROR
3975/7 PL/SQL: SQL Statement ignored
3976/31 PL/SQL: ORA-00942: table or view does not exist
4054/6 PL/SQL: SQL Statement ignored
4054/35 PL/SQL: ORA-00942: table or view does not exist
4072/6 PL/SQL: Statement ignored
4072/6 PLS-00201: identifier 'SYS.DBMS_SYS_ERROR' must be declared
5457/11 PL/SQL: SQL Statement ignored
5459/18 PL/SQL: ORA-00942: table or view does not exist
I cant connect using RMAN...Please help me with this issue.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-04063: package body "SPS.DBMS_BACKUP_RESTORE" has errors
ORA-06508: PL/SQL: could not find program unit being called: "SPS.DBMS_BACKUP_RESTORE"
RMAN-04015: error setting target database character set to WE8MSWIN1252I run the script and
SQL> @C:\app\Administrator\product\11.1.0\SPS\RDBMS\ADMIN\utlrp.sql
SELECT dbms_registry_sys.time_stamp('utlrp_bgn') as timestamp from dual
ERROR at line 1:
ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": invalid identifier
DOC> The following PL/SQL block invokes UTL_RECOMP to recompile invalid
DOC> objects in the database. Recompilation time is proportional to the
DOC> number of invalid objects in the database, so this command may take
DOC> a long time to execute on a database with a large number of invalid
DOC> objects.
DOC>
DOC> Use the following queries to track recompilation progress:
DOC>
DOC> 1. Query returning the number of invalid objects remaining. This
DOC> number should decrease with time.
DOC> SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
DOC>
DOC> 2. Query returning the number of objects compiled so far. This number
DOC> should increase with time.
DOC> SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
DOC>
DOC> This script automatically chooses serial or parallel recompilation
DOC> based on the number of CPUs available (parameter cpu_count) multiplied
DOC> by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC> On RAC, this number is added across all RAC nodes.
DOC>
DOC> UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
DOC> recompilation. Jobs are created without instance affinity so that they
DOC> can migrate across RAC nodes. Use the following queries to verify
DOC> whether UTL_RECOMP jobs are being created and run correctly:
DOC>
DOC> 1. Query showing jobs created by UTL_RECOMP
DOC> SELECT job_name FROM dba_scheduler_jobs
DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>
DOC> 2. Query showing UTL_RECOMP jobs that are running
DOC> SELECT job_name FROM dba_scheduler_running_jobs
DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>#
utl_recomp.recomp_parallel(threads);
ERROR at line 4:
ORA-06550: line 4, column 4:
PLS-00201: identifier 'UTL_RECOMP.RECOMP_PARALLEL' must be declared
ORA-06550: line 4, column 4:
PL/SQL: Statement ignored
SELECT dbms_registry_sys.time_stamp('utlrp_end') as timestamp from dual
ERROR at line 1:
ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": invalid identifier
PL/SQL procedure successfully completed.
DOC> The following query reports the number of objects that have compiled
DOC> with errors (objects that compile with errors have status set to 3 in
DOC> obj$). If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#
select COUNT(*) "OBJECTS WITH ERRORS" from obj$ where status = 3
ERROR at line 1:
ORA-00942: table or view does not exist
DOC> The following query reports the number of errors caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC>#
select COUNT(*) "ERRORS DURING RECOMPILATION" from utl_recomp_errors
ERROR at line 1:
ORA-00942: table or view does not exist
PL/SQL procedure successfully completed.
ERROR:
ORA-04067: not executed, package body "SPS.DBMS_OUTPUT" does not exist
ORA-06508: PL/SQL: could not find program unit being called: "SPS.DBMS_OUTPUT"
ORA-06512: at line 1
BEGIN dbms_registry_sys.validate_components; END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_REGISTRY_SYS.VALIDATE_COMPONENTS' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ERROR:
ORA-04067: not executed, package body "SPS.DBMS_OUTPUT" does not exist
ORA-06508: PL/SQL: could not find program unit being called: "SPS.DBMS_OUTPUT"
ORA-06512: at line 1
SQL> -
V('APP_USER) compile error
Oracle version 9i
HTMLDB v2
HTMLDB works - now I am trying to port two db triggers/procedures for auditing. The following works (compiles and works) in v10 but when compiled in v9 there is a compile error pointing at the v (in v('APP_USER')) - any ideas?
Thanks,
Steve Howard
Create or replace trigger audit_user_create
after insert
ON flows_020000.wwv_flow_fnd_user
FOR EACH ROW
Declare
Vuser varchar2(20);
no_pw_change EXCEPTION;
Change_date date;
Newname varchar2(20);
BEGIN
Select rtrim(substr(decode(user,HTMLDB_PUBLIC_USER,nvl(v('APP_USER'),user), user),1,20)),sysdate,:new.user_name
Into vuser,change_date,newname
From dual;
IF vuser != ADMIN THEN
audit_user_create(vuser,change_date,newname);
RAISE no_pw_change;
Else
INSERT INTO ddlchanges.create_user_log
VALUES (:new.user_name, change_date, vuser);
END IF;
EXCEPTION
WHEN no_pw_change THEN
Raise_application_error(-20101, ***************Only ADMIN can create users***************);
END;
Create or replace procedure audit_user_create (vuser varchar2, change_date date, newname varchar2)
as
Pragma autonomous_transaction;
Begin
If vuser = ADMIN then
INSERT INTO ddlchanges.create_user_log
VALUES (newname, change_date, vuser);
Commit;
Else
Insert into ddlchanges.create_user_try
Values (newname, change_date, vuser);
Commit;
End if;
End;
/Which user are you creating the trigger as? In the 9i database can that user "see" the V function, for example can you login to SQLPlus as that user and do -
SQL> desc v;
FUNCTION v RETURNS VARCHAR2
Argument Name Type In/Out Default?
P_ITEM VARCHAR2 IN
P_FLOW NUMBER IN DEFAULT
P_SCOPE VARCHAR2 IN DEFAULT
P_ESCAPE VARCHAR2 IN DEFAULT -
Microsoft VBScript compilation error '800a0408'
Help, I'm trying to run a stored procedure, but i'm getting
the following error -
"Microsoft VBScript compilation error '800a0408'
Invalid character
/admin/afterreviewupdatepricing.asp, line 39
if(Request.QueryString(“day7“) <> "") then
updatepricingCommand__7dayrate =
Request.QueryString(“day7“)"
Where row 39 is -
if(Request.QueryString(“day7“) <> "") then
updatepricingCommand__7dayrate =
Request.QueryString(“day7“)
I've attached the code --
Any ideas as to what I'm doing wrong????
ThanksSpot on Darrel, thanks, i guess that is the problem with
cutting and pasting from MS Word!!!. The bad news is that having
overcome that problem, I now get a precision invalid error, (below)
I can see that this is because I'm updating data in a DECIMAL
column, but not sure how or what to do to fix it??
Any ideas??
"Microsoft OLE DB Provider for SQL Server error '80004005'
The precision is invalid.
/admin/afterreviewupdatepricing.asp, line 80 "
CODE ATTACHED - - -
Need help determining compiling error
Good morning,
I need help finding the cause of a compiling error I receive. I have reviewed my code numerous times without any luck. I hope you guys might see something I am not! The entire file exceeds the limit I can post, so I am attaching it in 2 posts. Sorry for the inconvenience. The error and my code are posted below. Thank you for your help!
C:\StockTrackerDB.java:382: cannot find symbol
symbol : method add(java.lang.Boolean)
location: class java.util.ArrayList<java.lang.String>
aList.add(new Boolean(rs.getBoolean("admin")));
^
1 error
Tool completed with exit code 1
import java.io.*;
import java.sql.*;
import java.util.*;
public class StockTrackerDB
private Connection con = null;
//Constructor; makes database connection
public StockTrackerDB() throws ClassNotFoundException,SQLException
if(con == null)
String url = "jdbc:odbc:StockTracker";
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch(ClassNotFoundException ex)
throw new ClassNotFoundException(ex.getMessage() +
"\nCannot locate sun.jdbc.odbc.JdbcOdbcDriver");
try
con = DriverManager.getConnection(url);
catch(SQLException ex)
throw new SQLException(ex.getMessage()+
"\nCannot open database connection for "+url);
// Close makes database connection; null reference to connection
public void close() throws SQLException,IOException,ClassNotFoundException
con.close();
con = null;
// Method to serialize object to byte array
private byte[] serializeObj(Object obj) throws IOException
ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
objOStream.writeObject(obj); // object must be Serializable
objOStream.flush();
objOStream.close();
return baOStream.toByteArray(); // returns stream as byte array
// Method to deserialize bytes from a byte array into an object
private Object deserializeObj(byte[] buf) throws IOException, ClassNotFoundException
Object obj = null;
if(buf != null)
ObjectInputStream objIStream = new ObjectInputStream(new ByteArrayInputStream(buf));
obj = objIStream.readObject(); //IOException, ClassNotFoundException
return obj;
// Methods for adding a record to a table
// add to the Stocks Table
public void addStock(String stockSymbol, String stockDesc) throws SQLException, IOException, ClassNotFoundException
Statement stmt = con.createStatement();
stmt.executeUpdate("INSERT INTO Stocks VALUES ('"
+stockSymbol+"'"
+",'"+stockDesc+"')");
stmt.close();
// add to the Users table
public boolean addUser(User user) throws SQLException,IOException,ClassNotFoundException
boolean result = false;
String dbUserID;
String dbLastName;
String dbFirstName;
Password dbPswd;
boolean isAdmin;
dbUserID = user.getUserID();
if(getUser(dbUserID) == null)
dbLastName = user.getLastName();
dbFirstName = user.getFirstName();
Password pswd = user.getPassword();
isAdmin = user.isAdmin();
PreparedStatement pStmt = con.prepareStatement("INSERT INTO Users VALUES (?,?,?,?,?)");
pStmt.setString(1, dbUserID);
pStmt.setString(2, dbLastName);
pStmt.setString(3, dbFirstName);
pStmt.setBytes(4, serializeObj(pswd));
pStmt.setBoolean(5, isAdmin);
pStmt.executeUpdate();
pStmt.close();
result = true;
else
throw new IOException("User exists - cannot add.");
return result;
// add to the UserStocks table
public void addUserStocks(String userID, String stockSymbol)
throws SQLException,IOException,ClassNotFoundException
Statement stmt = con.createStatement();
stmt.executeUpdate("INSERT INTO UserStocks VALUES ('"
+userID+"'"
+",'"+stockSymbol+"')");
stmt.close();
// Methods for updating a record in a table
// updating the Users table
public boolean updUser(User user) throws SQLException, IOException, ClassNotFoundException
boolean result = false;
String dbUserID;
String dbLastName;
String dbFirstName;
Password dbPswd;
boolean isAdmin;
dbUserID = user.getUserID();
if(getUser(dbUserID) != null)
dbLastName = user.getLastName();
dbFirstName = user.getFirstName();
Password pswd = user.getPassword();
isAdmin = user.isAdmin();
PreparedStatement pStmt = con.prepareStatement("UPDATE Users SET lastName = ?," + " firstName = ?, pswd = ?, admin = ? WHERE userID = ?");
pStmt.setString(1, dbLastName);
pStmt.setString(2, dbFirstName);
pStmt.setBytes(3, serializeObj(pswd));
pStmt.setBoolean(4, isAdmin);
pStmt.setString(5, dbUserID);
pStmt.executeUpdate();
pStmt.close();
result = true;
else
throw new IOException("User does not exist - cannot update.");
return result;
}// Methods for deleting a record from a table
// delete a record from the Stocks table
private void delStock(String stockSymbol) throws SQLException,IOException,ClassNotFoundException
Statement stmt = con.createStatement();
stmt.executeUpdate("DELETE FROM Stocks WHERE "
+"symbol = '"+stockSymbol+"'");
stmt.close();
// delete a record from the Users table
public void delUser(User user) throws SQLException,IOException,ClassNotFoundException
String dbUserID;
String stockSymbol;
Statement stmt = con.createStatement();
try
con.setAutoCommit(false);
dbUserID = user.getUserID();
if(getUser(dbUserID) != null) // verify user exists in database
ResultSet rs1 = stmt.executeQuery("SELECT userID, symbol "
+"FROM UserStocks WHERE userID = '"+dbUserID+"'");
while(rs1.next())
try
stockSymbol = rs1.getString("symbol");
delUserStocks(dbUserID, stockSymbol);
catch(SQLException ex)
throw new SQLException("Deletion of user stock holding failed: " +ex.getMessage());
} // end of loop thru UserStocks
try
{ // holdings deleted, now delete user
stmt.executeUpdate("DELETE FROM Users WHERE "
+"userID = '"+dbUserID+"'");
catch(SQLException ex)
throw new SQLException("User deletion failed: "+ex.getMessage());
else
throw new IOException("User not found in database - cannot delete.");
try
con.commit();
catch(SQLException ex)
throw new SQLException("Transaction commit failed: "+ex.getMessage());
catch (SQLException ex)
try
con.rollback();
catch (SQLException sqx)
throw new SQLException("Transaction failed then rollback failed: " +sqx.getMessage());
// Transaction failed, was rolled back
throw new SQLException("Transaction failed; was rolled back: " +ex.getMessage());
stmt.close();
// delete a record from the UserStocks table
public void delUserStocks(String userID, String stockSymbol) throws SQLException,IOException,ClassNotFoundException
Statement stmt = con.createStatement();
ResultSet rs;
stmt.executeUpdate("DELETE FROM UserStocks WHERE "
+"userID = '"+userID+"'"
+"AND symbol = '"+stockSymbol+"'");
rs = stmt.executeQuery("SELECT symbol FROM UserStocks "
+"WHERE symbol = '"+stockSymbol+"'");
if(!rs.next()) // no users have this stock
delStock(stockSymbol);
stmt.close();
// Methods for listing record data from a table
// Ordered by:
// methods that obtain individual field(s),
// methods that obtain a complete record, and
// methods that obtain multiple records
// Methods to access one or more individual fields
// get a stock description from the Stocks table
public String getStockDesc(String stockSymbol) throws SQLException, IOException, ClassNotFoundException
Statement stmt = con.createStatement();
String stockDesc = null;
ResultSet rs = stmt.executeQuery("SELECT symbol, name FROM Stocks "
+"WHERE symbol = '"+stockSymbol+"'");
if(rs.next())
stockDesc = rs.getString("name");
rs.close();
stmt.close();
return stockDesc;
// Methods to access a complete record
// get User data from the Users table
public User getUser(String userID) throws SQLException,IOException,ClassNotFoundException
Statement stmt = con.createStatement();
String dbUserID;
String dbLastName;
String dbFirstName;
Password dbPswd;
boolean isAdmin;
byte[] buf = null;
User user = null;
ResultSet rs = stmt.executeQuery("SELECT * FROM Users WHERE userID = '" +userID+"'");
if(rs.next())
dbUserID = rs.getString("userID");
dbLastName = rs.getString("lastName");
dbFirstName = rs.getString("firstName");
// Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
// SQL NULL data value is not handled correctly.
buf = rs.getBytes("pswd");
dbPswd=(Password)deserializeObj(buf);
isAdmin = rs.getBoolean("admin");
user = new User(dbUserID,dbFirstName,dbLastName,dbPswd,isAdmin);
rs.close();
stmt.close();
return user; // User object created for userID
// Methods to access a list of records
// get a list of selected fields for all records from the Users Table
public ArrayList listUsers() throws SQLException,IOException,ClassNotFoundException
ArrayList<String> aList = new ArrayList<String>();
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT userID, firstName, lastName, admin "
+"FROM Users ORDER BY userID");
while(rs.next())
aList.add(rs.getString("userID"));
aList.add(rs.getString("firstName"));
aList.add(rs.getString("lastName"));
aList.add(new Boolean(rs.getBoolean("admin")));
rs.close();
stmt.close();
return aList;
// get all fields in all records for a given user from the UserStocks table
public ArrayList listUserStocks(String userID) throws SQLException, IOException, ClassNotFoundException
ArrayList<String> aList = new ArrayList<String>();
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM UserStocks "
+"WHERE userID = '"+userID+"' ORDER BY symbol");
while(rs.next())
aList.add(rs.getString("symbol"));
rs.close();
stmt.close();
return aList;
} -
VSM-BC4J IN JDEV9042:compile error at JClient and run error at JSP
compile error at JClient:
C:\VSM-BC4J\src\oracle\otnsamples\vsm\client\admin\profilePanal.java
--! Wraning(424,18):method setNextFocusableComponent(java.awt.Component) in class javax.swing.JComponent has been deprecated
--! Wraning(425,20):method setNextFocusableComponent(java.awt.Component) in class javax.swing.JComponent has been deprecated
--! Wraning(428,21):method setNextFocusableComponent(java.awt.Component) in class javax.swing.JComponent has been deprecated
--! Wraning(430,13):method setNextFocusableComponent(java.awt.Component) in class javax.swing.JComponent has been deprecated
run error at JSP:
503 Service Unavailable
Servlet error:Parsing error processing resource pathSolution: don't use a runtime expression for the id attribute.
The id attribute is used to declare
- an attribute in scope
- a scriptlet variable on the page
These are only available for the duration of the <logic:iterate> tag
The "id" is only used in your programming. You don't need to make it dynamic.
Maybe you are looking for
-
I still can't figure out why my .wav format Acidized loops won't work in Logic. If I drag the loop directly from its folder onto the arrange pane it should stretch or compress to whatever master tempo Logic is at, correct? The loops are 16/44.1. Will
-
Headphone tip stuck in headphone jack no sound comes out or goes in, what should i do?
i just got my macbook pro unibody, and first time i insert headphone in the jack the little piece of the head phone gets stuck in the jack. what should i do ? Does the warranty cover that kind of stuff( cause i think they should) or is there a soluti
-
Why is my iOS 6 update not working?
I have tried updating my iPhone 4s to iOS 6 since wednesday and its not working, I have uninstalled and reinstalled iTunes on 2 laptops and both say the download has been corrupted and when I try to update the phone over wifi it says there has been a
-
Mail.app randomly chooses incorrect mail alias when i reply to mails
Hi Hope this makes sense. I have a few additional .mac mail aliases set up one in particular i use a lot for subscriptions to job sites and any other subscriptions. Problem i have is if i create a new mail and choose the alias from the pull down list
-
I recently formated my computer, and reinstalled Firefox. I used the Sync feature, and selected the option "Replace all data on this computer with my sync data". However, nothing happened, and my quota ( i only checked later) seem to be an unusual si