prabhu pandurangan

Ranch Hand
+ Follow
since May 23, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by prabhu pandurangan

best way to implement this??
2 years ago
Hi Team,

I have a json object as below, i have to iterate the object and get the unique list of 'label' {label1, label2} and when i select the label 'label1' i need to get the unique list of 'id' {121, 122} and when i select the id '121' i need to get the unique list of 'ip' from the 'items' and when i select the ip ''xx.xx.xx1' i need to get the unique list of 'descirption'

so when i select label1 -- id: {121, 122} -- and on selecting id - 121 -- i should display list of 'ip' for this combination { 'xx.xx.1', 'xx.xx.xx2', 'xx.xx.8'} and when i select the ip - 'xx.xx.1' i should display the list of 'desc' { 'xxxx', 'yyyy', 'aaaa'}

Let me know how i can implement this in java with high performance and scalability.

2 years ago
Hi Camphell,

What do you mean by specification here?

Here is my specification: "How to get the elements between 3 and 11? in the given array [12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] ".

Please Ranch Hand's with proper solution or direct them in a right way; instead of giving a reply like this 'Start by writing down on paper which numbers are between start = 7 and end = 5.'

Regards,
Prabhu
2 years ago
Hi Team,

In this array: {3,1,2,1,5,6,0,9,13,7,12,11,8,-1,10} how to retrieve the numbers between two given no: startValue = 7 & endValue = 5?

is there a way to iterate using recursive function or what would be the best way to achieve this?


Regards,
Prabhu
2 years ago
Hi Team,

Below is my sample data:




Question 1: What would be the least efficient way to load the above data to memory?
Question 2: Assume if i have 1000 rows of the above table structure, how do we estimate the approx. memory size of the data structure?


2 years ago
Hi Team,

Thanks everyone for your replies.

What would be the best/least expensive data structure to load the below example data to the DB?

Regards,
Prabhu
Hi Jeanne,

Thanks for your reply.

its for my self assessment. i just want to know how the database memory management works and for this particular scenario what would be the best possible least memory consumption way of DB design.

Regards,
PRabhu
Hi Team,

Below is some specifications for my problem: {3,1,2,1,5,6,0,9,13,7,12,11,8,-1,10}

Case 1: Start Value: 2 End value: 7
output: {2,1,5,6,9,13,7} [Note: '0' can be ignored]
Total count between no 2 & 7 (inclusive of start & end no): 7

Case 2: Start Value: -1 End Value: 2
output: {-1, 10,3,1,2}
Total Count between no -1 & 2 (inclusive of start & end no): 5

Case 1: I am clear with this

Case 2: ?? not clear on how to perform this logic
2 years ago
Hi pawel,

Topic is getting more interesting, I'm learning something new from you guys. Thank you

Case 1 will be no result found
Case 2 when there is multiple match we can have two result set one with the closest match and the second will be the last value match
Case 3 start and end value can be same

2 years ago
Hi Tushal/Campbell,

Thanks for sharing your thoughts.

Yes, it's start and end value.

Case 1: if the start & end value (3,7) are not in array {2, 1,8,5,4} output array should be empty {} and the count will be zero

Case 2: if start & end value (3,7) in the given array {2,1,8,7,4,6,11,10,3,5} then the output array should be {3,5,2,1,8,7} and count will be 6 inclusive of start and end value

Regards,
Prabhu
2 years ago
Hi Team,

Below is my table column values:


Assume that i have 1000 rows similar to the above table structure. Here the String Key column keys can be same (repeated).

What would be the approximate memory size for constructing this database.
Hi Team,

I have a array of integers = [1,3,2,5,4,6, 9,1, 11, 13, 7,12, 0]
My Input is startIndex = 3 & endIndex = 11

total numbers between (3 & 11) inclusive of start and end index = [3, 2, 5,4,6,9,1,11] = 8 (total numbers)

Which data structure can perform this operation in an efficient way & how?

Please share your thoughts.

Regards,
Prabhu
2 years ago
Hi Team,

I am generating the web service client using wsdl in RAD 8 and trying to access the service using my ServiceManager class but I am facing the below issue. Any workaround to get this resolved??




Thanks in advance for your response
3 years ago
Hi Team,

Because of the below exceptions we are getting thread pool error. Let me know why we get the below exception:

Exception 1:
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.ibm.websphere.product.xml.BaseFactory.load(BaseFactory.java(Compiled Code))
at com.ibm.websphere.product.xml.BaseFactory.load(BaseFactory.java(Inlined Compiled Code))
at com.ibm.websphere.product.history.WASHistory.loadHistory(WASHistory.java(Compiled Code))
at com.ibm.websphere.product.history.WASHistory.initialize(WASHistory.java(Compiled Code))
at com.ibm.websphere.product.history.WASHistory.<init>(WASHistory.java(Compiled Code))
at com.ibm.websphere.product.VersionInfo.setProduct(VersionInfo.java(Inlined Compiled Code))
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java(Compiled Code))
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java(Inlined Compiled Code))
at com.ibm.ws.runtime.component.ServerCollaborator.getServerVersion(ServerCollaborator.java(Inlined Compiled Code))
at sun.reflect.GeneratedMethodAccessor1317.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.getAttribute(RequiredModelMBean.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.getAttributes(RequiredModelMBean.java(Compiled Code))
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.getAttributes(InvokerMBeanServerInterceptor.java(Compiled Code))
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java(Inlined Compiled Code))
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.getAttributes(SecurityMBeanServerInterceptor.java(Compiled Code))
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java(Compiled Code))
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java(Inlined Compiled Code))
at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.getAttributes(ContextClassLoaderMBeanServerInterceptor.java(Compiled Code))
at mx4j.server.MX4JMBeanServer.getAttributes(MX4JMBeanServer.java(Compiled Code))
at com.ibm.ws.management.AdminServiceImpl.getAttributes(AdminServiceImpl.java(Compiled Code))
at com.ibm.ws.management.connector.AdminServiceDelegator.getAttributes(AdminServiceDelegator.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor1303.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))


Exception 2:

java.lang.IllegalStateException:


non-serializable app specific session data : null
serializable app specific session data : []

at com.ibm.ws.webcontainer.httpsession.SessionData.getValueGuts(SessionData.java(Compiled Code))
at com.ibm.ws.webcontainer.httpsession.SessionData.getValue(SessionData.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.httpsession.SessionData.getAttribute(SessionData.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.httpsession.HttpSessionFacade.getAttribute(HttpSessionFacade.java(Compiled Code))
at com.ibm._jsp._policySearchResult._jspService(_policySearchResult.java:264)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ami.phoenix.filters.StatusNavigationFilter.doFilter(StatusNavigationFilter.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ami.phoenix.filters.AuthorizationFilter.doFilter(AuthorizationFilter.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ami.access.TokenValidationFilter.doFilter(TokenValidationFilter.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))


[b]Exception 3:[/b]

O org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.ibm.websphere.product.xml.BaseFactory.load(BaseFactory.java(Compiled Code))
at com.ibm.websphere.product.xml.BaseFactory.load(BaseFactory.java(Inlined Compiled Code))
at com.ibm.websphere.product.history.WASHistory.loadHistory(WASHistory.java(Compiled Code))
at com.ibm.websphere.product.history.WASHistory.initialize(WASHistory.java(Compiled Code))
at com.ibm.websphere.product.history.WASHistory.<init>(WASHistory.java(Compiled Code))
at com.ibm.websphere.product.VersionInfo.setProduct(VersionInfo.java(Inlined Compiled Code))
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java(Compiled Code))
at com.ibm.websphere.product.VersionInfo.runReport(VersionInfo.java(Inlined Compiled Code))
at com.ibm.ws.runtime.component.ServerCollaborator.getServerVersion(ServerCollaborator.java(Inlined Compiled Code))
at sun.reflect.GeneratedMethodAccessor1317.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.getAttribute(RequiredModelMBean.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.getAttributes(RequiredModelMBean.java(Compiled Code))
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.getAttributes(InvokerMBeanServerInterceptor.java(Compiled Code))
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java(Inlined Compiled Code))
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.getAttributes(SecurityMBeanServerInterceptor.java(Compiled Code))
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java(Compiled Code))
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java(Inlined Compiled Code))
at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.getAttributes(ContextClassLoaderMBeanServerInterceptor.java(Compiled Code))
at mx4j.server.MX4JMBeanServer.getAttributes(MX4JMBeanServer.java(Compiled Code))
at com.ibm.ws.management.AdminServiceImpl.getAttributes(AdminServiceImpl.java(Compiled Code))
at com.ibm.ws.management.connector.AdminServiceDelegator.getAttributes(AdminServiceDelegator.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor1303.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

3 years ago