This error please help:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 14 in the jsp file: /select.jsp
localhost cannot be resolved
14: connection = DriverManager.getConnection(localhost, "root", "apurva");
;
you need to pass database connection url, instead of just localhost, like jdbc:mysql://localhost:3306/
here's a good example
Related
String url = "http://********";
rt = restTemplate.getForObject(url, pojoObj.getClass());
It works fine in 1.8, but when I change the compiler to Java 11 it throws an error:
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http//******": localhost; nested exception is java.net.UnknownHostException: localhost
I'm trying to connect to solrCloud using solrj CloudSolrClient, but am getting errors.
Used to directly call a single solr node, now switching to solrcloud. I have tried various different url formats as specified from documentation online.
SolrClient solrClient = new CloudSolrClient.Builder(zkUrl).build();
SolrQuery solrQuery = new SolrQuery();
solrQuery.setRequestHandler(FIELD_LIST_HANDLER);
QueryRequest req = new QueryRequest(solrQuery);
req.setBasicAuthCredentials(zkUser, zkPassword);
QueryResponse response = req.process(solrClient, core);
When using the following zkHost strings I get the various errors.
host:2181
2019-08-21 15:53:17 - ERROR o.a.c.c.C.[.[.[.[.a.d.n.s.JerseyConfiguration] [http-nio-8080-exec-1] Servlet.service() for servlet [com.att.dplr.nextgen.search.JerseyConfiguration] in context with path [] threw exception [java.lang.RuntimeException: Couldn't init
ialize a HttpClusterStateProvider (is/are the Solr server(s), [host:2181], down?)] with root cause
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: host:2181/admin/collections?action=CLUSTERSTATUS&wt=javabin&version=2
http://host:2181
2019-08-21 15:55:53 - ERROR o.a.c.c.C.[.[.[.[.a.d.n.s.JerseyConfiguration] [http-nio-8080-exec-1] Servlet.service() for servlet [com.att.dplr.nextgen.search.JerseyConfiguration] in context with path [] threw exception [java.lang.RuntimeException: Couldn't init
ialize a HttpClusterStateProvider (is/are the Solr server(s), [http://host:2181], down?)] with root cause
org.apache.http.NoHttpResponseException: host:2181 failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141)
host:2181/solr
2019-08-21 16:00:11 - ERROR o.a.c.c.C.[.[.[.[.a.d.n.s.JerseyConfiguration] [http-nio-8080-exec-1] Servlet.service() for servlet [com.att.dplr.nextgen.search.JerseyConfiguration] in context with path [] threw exception [java.lang.RuntimeException: Couldn't init
ialize a HttpClusterStateProvider (is/are the Solr server(s), [host:2181/solr], down?)] with root cause
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: host:2181/solr/admin/collections?action=CLUSTERSTATUS&wt=javabin&version=2
at org.apache.http.impl.client.CloseableHttpClient.determineTarget(CloseableHttpClient.java:95)
http://host:2181/solr
2019-08-21 15:57:23 - ERROR o.a.c.c.C.[.[.[.[.a.d.n.s.JerseyConfiguration] [http-nio-8080-exec-1] Servlet.service() for servlet [com.att.dplr.nextgen.search.JerseyConfiguration] in context with path [] threw exception [java.lang.RuntimeException: Couldn't init
ialize a HttpClusterStateProvider (is/are the Solr server(s), [http://host:2181/solr], down?)] with root cause
org.apache.http.NoHttpResponseException: host:2181 failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141)
What do I need to change to successfully query solr through zookeeper using solrj CloudSolrClient?
I have successfully communicated with the zookeeper instance from terminal.
$ echo stat | nc host 2181
Zookeeper version: 3.4.14-4c25d480e66aadd371de8bd2fd8da255ac140bcf, built on 03/06/2019 16:18 GMT
Clients:
/130.10.31.81:60381[0](queued=0,recved=1,sent=0)
/135.40.74.31:48984[1](queued=0,recved=817933,sent=817933)
Latency min/avg/max: 0/0/80
Received: 1893410
Sent: 1893706
Connections: 2
Outstanding: 0
Zxid: 0xa00000636
Mode: follower
Node count: 214
It turns out that both solrurls and zkurls can be provided to the CloudSolrClient.Builder. I was able to get past the previous issue by using the SolrClient solrClient = new CloudSolrClient.Builder(hosts, Optional.empty()).build();which accepts zkUrls whereas CloudSolrClient.Builder(hosts).build() accepts solr Urls
I also got this ClientProtocolException when the configuration itme clusterprops.json was not available in zookeeper /
Contents:
{"urlScheme":"https"}
I have been setup an identity server using wso2 and already got a token, but when I used the token to get userinfo I get an internal server error.
request body to get token.
grant_type=password&username=erwin&password=admin&scope=openid
token result
{
"access_token": "9689f5f4-8ba0-398c-91d0-46dfac85b64a",
"refresh_token": "497e57a4-21ff-3dca-a97f-687446c25321",
"scope": "openid",
"id_token": "eyJ4NXQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJraWQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoiU0U4OVRxTkt2U3JWSWRnVXk2eE5XQSIsImFjciI6InVybjptYWNlOmluY29tbW9uOmlhcDpzaWx2ZXIiLCJzdWIiOiJlcndpbiIsImF1ZCI6WyJuU08xSTQyZ043a1JYZE9CdXdZbXNBMTdDY29hIl0sImF6cCI6Im5TTzFJNDJnTjdrUlhkT0J1d1ltc0ExN0Njb2EiLCJpc3MiOiJsb2NhbGhvc3QiLCJleHAiOjE1MTUwMzM3NDQsImlhdCI6MTUxNTAzMDE0NH0.Vz5K38k3UivwayYQWQVO86njwI48I5KpZiEqwrXethIZQ990JYZ1U6MiFEuKzA5Z3AZkDH2_HmHQeTSrjb7GUlIwejOtl7ky6Wc6uAD3a6YidWHAb1BLygX91KNwYdmgZ5ReyrJyZQ5Vri1qOhFfPFHKzkTgyKFZtJDDNvQ_SL8MxyaPer4rneEziXyYxZKJ0RrTnhOJVQ-TE0TxszlvNW4wAzmk_eVu9JDEycJdwAo1GS4U8tjqJPrMRdZNp371rS_-HHa5oSl-wVCEswtsKEoV5UeqKIeJoj0yGIFRqJxhpY9yxMSn-6jeviRBh40QstDNxFeluDpC8B6o7YIzmA",
"token_type": "Bearer",
"expires_in": 3594
}
And I use that access token to get user info,
https://localhost:9443/oauth2/userinfo?schema=openid
Authorization : Bearer 9689f5f4-8ba0-398c-91d0-46dfac85b64a
Method : GET
The Result is error
Exception report
message org.apache.cxf.interceptor.Fault
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.RuntimeException: org.apache.cxf.interceptor.Fault
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:336)
...
root cause
org.apache.cxf.interceptor.Fault
org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:170)
...
root cause
java.lang.NullPointerException
org.wso2.carbon.identity.openidconnect.AbstractUserInfoResponseBuilder.getRequestObject(AbstractUserInfoResponseBuilder.java:298)
...
This issue is already reported for IS 5.4.0.
https://github.com/wso2/product-is/issues/1953
This issue is fixed in the master branch of https://github.com/wso2-extensions/identity-inbound-auth-oauth.
I am trying to run IBM MDM Server BatchProcessor ; on executing rubBatch.sh script I am getting following error:
ERROR - [Exception_CustomerReflectionDelegate_JNDINameLookup:] CDKBC2030E:Unable to locate a reference using the following parameters. JNDI = com/dwl/base/requestHandler/beans/DWLServiceController; URL = null; additional error message = Error getting WsnNameService properties
javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1482)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:989)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:909)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:581)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:124)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:799)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:165)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:180)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at com.dwl.tcrm.delegate.CustomerReflectionDelegate.init(CustomerReflectionDelegate.java:382)
at com.dwl.tcrm.delegate.CustomerReflectionDelegate.<init>(CustomerReflectionDelegate.java:190)
at com.dwl.batchframework.delegate.Customer.init(Customer.java:122)
at com.dwl.batchframework.delegate.CustomerSingleton.init(CustomerSingleton.java:82)
at com.dwl.batchframework.BatchController.initServerConfiguration(BatchController.java:395)
at com.dwl.batchframework.BatchController.initialize(BatchController.java:360)
at com.dwl.batchframework.BatchController.runBatch(BatchController.java:273)
at com.dwl.batchframework.BatchController.main(BatchController.java:202)
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1153)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1375)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1042)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1341)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1685)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1297)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1479)
... 16 more
Caused by: org.omg.CORBA.COMM_FAILURE: CAUGHT_EXCEPTION_WHILE_CONFIGURING_SSL_CLIENT_SOCKET Exception=com.ibm.websphere.ssl.SSLException: CWPKI0315E: SSL configuration properties are null. Could be a problem parsing the SSL client configuration. vmcid: 0x49421000 minor code: 70 completed: No
at com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl.createSSLSocket(WSSSLClientSocketFactoryImpl.java:256)
at com.ibm.ws.orbimpl.transport.WSSSLTransportConnection.createSocket(WSSSLTransportConnection.java:236)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:351)
at com.ibm.ws.orbimpl.transport.WSTransport$1.run(WSTransport.java:502)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:499)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:181)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:95)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:131)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:221)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1769)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1794)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1064)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1149)
... 24 more
An error occurred. See the log file for details. Additional error message = Error getting WsnNameService properties
Exception in thread "P=271190:O=0:CT" java.lang.NullPointerException
at com.dwl.batchframework.BatchController.closeIOqueues(BatchController.java:335)
at com.dwl.batchframework.BatchController.runBatch(BatchController.java:295)
at com.dwl.batchframework.BatchController.main(BatchController.java:202)
Patrick,
AS per the Exception "SSL configuration properties are null. Could be a problem parsing the SSL client configuration." .
Please check the path of the CLIENTSSL variable (ssl.client.props) in the runbatch.sh file. Looks like the script is unable to find ssl.client.props file.
When I click certain records in the log viewer of a Glassfish 2 server running on 64-bit Ubuntu the error report opens a new popup but instead of the actual error I get a server exception:
HTTP Status 500 - type Exception reportmessagedescriptionThe server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Expression '$property{list}' did not resolve to a List! Found: 'java.lang.String'root cause java.lang.IllegalArgumentException: Expression '$property{list}' did not resolve to a List! Found: 'java.lang.String'note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1_01 logs.Sun Java System Application Server 9.1_01
The stack trace in the server log is:
[#|2011-07-15T11:58:52.561+0000|INFO|sun-appserver9.1|com.sun.jsftemplating|_ThreadID=35;_ThreadName=httpWorkerThread-4848-1;|JSFT0003: VariableResolver was unable to find key (logEntryDetail) in ResourceBundle (help).|#]
[#|2011-07-15T11:58:52.586+0000|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=35;_ThreadName=httpWorkerThread-4848-1;_RequestID=aa6c0f08-ce0f-4a10-bdc5-b835658db2bc;|executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl#955e041) threw exception java.lang.IllegalArgumentException: Expression '$property{list}' did not resolve to a List! Found: 'java.lang.String'
at com.sun.jsftemplating.layout.descriptors.LayoutForEach.getList(LayoutForEach.java:119)
at com.sun.jsftemplating.layout.descriptors.LayoutForEach.encode(LayoutForEach.java:168)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:271)
at com.sun.jsftemplating.layout.descriptors.LayoutDefinition.encode(LayoutDefinition.java:232)
at com.sun.jsftemplating.renderer.TemplateRenderer.encodeEnd(TemplateRenderer.java:139)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at com.sun.webui.jsf.util.RenderingUtilities.renderComponent(RenderingUtilities.java:99)
at com.sun.webui.jsf.renderkit.html.PropertyRenderer.renderPropertyComponents(PropertyRenderer.java:200)
at com.sun.webui.jsf.renderkit.html.PropertyRenderer.encodeEnd(PropertyRenderer.java:161)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at com.sun.webui.jsf.util.RenderingUtilities.renderComponent(RenderingUtilities.java:99)
at com.sun.webui.jsf.renderkit.html.PropertySheetSectionRenderer.renderProperties(PropertySheetSectionRenderer.java:192)
at com.sun.webui.jsf.renderkit.html.PropertySheetSectionRenderer.renderPropertySheetSection(PropertySheetSectionRenderer.java:152)
at com.sun.webui.jsf.renderkit.html.PropertySheetSectionRenderer.encodeEnd(PropertySheetSectionRenderer.java:95)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at com.sun.webui.jsf.util.RenderingUtilities.renderComponent(RenderingUtilities.java:99)
at com.sun.webui.jsf.renderkit.html.PropertySheetRenderer.renderPropertySheetSections(PropertySheetRenderer.java:172)
at com.sun.webui.jsf.renderkit.html.PropertySheetRenderer.encodeEnd(PropertySheetRenderer.java:122)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:480)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:477)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:477)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:477)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:477)
at com.sun.jsftemplating.layout.descriptors.LayoutComponent.encode(LayoutComponent.java:226)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:271)
at com.sun.jsftemplating.layout.descriptors.LayoutDefinition.encode(LayoutDefinition.java:225)
at com.sun.jsftemplating.layout.LayoutViewHandler.renderView(LayoutViewHandler.java:484)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:92)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)|#]
Google came up with these two questions but with no real solution:
1. http://www.java.net/node/703568
2. http://www.java.net/node/682666
Does anybody have the same error or know the solution?