This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

mishug Goyal

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

Recent posts by mishug Goyal

Hi,

Does anybody worked on EclipseLink (JPA implementation)?

I'm getting "Pool not open" issue intermittently, it generally happens if we do not close entityManager properly in code, but we are closing it in all places.

So, any idea like how to resolve this issue?

Any pointer regarding this problem would be highly appreciate.



Thanks.
Hi,

I'm using JPA (EclipseLink implementation). While persisting an entity, I am getting some issue related to Auto-Increment field.

org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: PROCEDURE pharmalocal.IDENTITY does not exist
Error Code: 1305
Call: CALL IDENTITY()
Query: ValueReadQuery(name="SEQ_GEN_IDENTITY" sql="CALL IDENTITY()")



My Entity is like this -


Any help here would be highly appreciated.

Thanks

2 months ago
Welcome Paul and Joseph on this forum. Thanks for this book, as this will help us in preparing for the certification.
I am able to resolve this issue myself, actually the problem was with hbase version, it was not compatible with hadoop-2.

I configured latest hbase version 0.98 and it resolved the issue.
4 years ago
Hi Ankit,

I want to test backend (service layer) of the application.

Easy Mock Link : - http://easymock.org/
sorry for writing it EasyMockito....
4 years ago
GWT
Hi,

I am new to Hbase, while starting hbase, I am getting below issue due to which not able to issue command on hbase shell.
Please suggest what should I do to correct this issue.

sessionid:0x1464683e43a0000 type:delete cxid:0x13 zxid:0xb txntype:-1 reqpath:n/a Error Path:/hbase/backup-masters/localhost,53929,1401342387709 Error:KeeperErrorCode = NoNode for /hbase/backup-masters/localhost,53929,1401342387709
2014-05-29 11:16:28,672 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Node /hbase/backup-masters/localhost,53929,1401342387709 already deleted, and this is not a retry
2014-05-29 11:16:28,672 INFO org.apache.hadoop.hbase.master.ActiveMasterManager: Master=localhost,53929,1401342387709
2014-05-29 11:16:28,702 INFO org.apache.hadoop.hbase.master.SplitLogManager: timeout = 300000
2014-05-29 11:16:28,702 INFO org.apache.hadoop.hbase.master.SplitLogManager: unassigned timeout = 180000
2014-05-29 11:16:28,702 INFO org.apache.hadoop.hbase.master.SplitLogManager: resubmit threshold = 3
2014-05-29 11:16:28,706 INFO org.apache.hadoop.hbase.master.SplitLogManager: found 0 orphan tasks and 0 rescan nodes
2014-05-29 11:16:28,971 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master
org.apache.hadoop.ipc.RemoteException: Server IPC version 9 cannot communicate with client version 4

at org.apache.hadoop.ipc.Client.call(Client.java:1070)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
at com.sun.proxy.$Proxy11.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:238)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:203)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:123)
at org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:191)
at org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:420)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:149)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2120)


hbase-env.sh




hbase-site.xml


4 years ago
I resolved this issue myself, actually on my machine it was not able to find some java native library files. I re-installed jdk and it reolved this issue.

I am now able to set hadoop 2.4 version on my local machine.

Thanks.
4 years ago
Hi,

I am new to hadoop and trying to set up single node cluster on my machine.
I am following one of the tutorial, downloaded hadoop and installed on it but while starting node I am getting a log exception stack trace.

hduser@7LH28R1:/usr/local/hadoop/sbin$ ./start-dfs.sh
14/05/22 19:45:29 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/hadoop/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
localhost]
sed: -e expression #1, char 6: unknown option to `s'
-c: Unknown cipher type 'cd'
localhost:
localhost: ------------------------------------------------------------------------------------
localhost: These computer resources, specifically Internet access and E-mail, are
localhost: provided for authorized users only. For legal, security and cost
localhost: reasons, utilization and access of resources are monitored and recorded
localhost: in log files. All information (whether business or personal) that is
localhost: created, received, downloaded, stored, sent or otherwise processed can
localhost: be accessed, reviewed, copied, recorded or deleted by Ericsson, in
localhost: accordance with approved internal procedures, at any time if deemed
localhost: necessary or appropriate, and without advance notice. Any evidence of
localhost: unauthorized access or misuse of Ericsson resources may result in
localhost: disciplinary actions, including termination of employment or assignment,
localhost: and could subject a user to criminal prosecution. Your use of Ericsson's
localhost: computer resources constitutes your consent to Ericsson's Policies and
localhost: Directives, including the provisions stated above.
localhost:
localhost: IF YOU ARE NOT AN AUTHORIZED USER, PLEASE EXIT IMMEDIATELY.
localhost: ------------------------------------------------------------------------------------
noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known
64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known
might: ssh: Could not resolve hostname might: Name or service not known
You: ssh: Could not resolve hostname You: Name or service not known
you: ssh: Could not resolve hostname you: Name or service not known
the: ssh: Could not resolve hostname the: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
stack: ssh: Could not resolve hostname stack: Name or service not known
warning:: ssh: Could not resolve hostname warning:: Name or service not known
Java: ssh: Could not resolve hostname Java: Name or service not known
the: ssh: Could not resolve hostname the: Name or service not known
have: ssh: Could not resolve hostname have: Name or service not known
now.: ssh: Could not resolve hostname now.: Name or service not known
have: ssh: Could not resolve hostname have: Name or service not known
The: ssh: Could not resolve hostname The: Name or service not known
It's: ssh: Could not resolve hostname It's: Name or service not known
guard: ssh: Could not resolve hostname guard: Name or service not known
that: ssh: Could not resolve hostname that: Name or service not known
guard.: ssh: Could not resolve hostname guard.: Name or service not known
try: ssh: Could not resolve hostname try: Name or service not known
will: ssh: Could not resolve hostname will: Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
with: ssh: Could not resolve hostname with: Name or service not known
recommended: ssh: Could not resolve hostname recommended: Name or service not known
<libfile>',: ssh: Could not resolve hostname <libfile>',: Name or service not known
disabled: ssh: Could not resolve hostname disabled: Name or service not known
or: ssh: Could not resolve hostname or: Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
highly: ssh: Could not resolve hostname highly: Name or service not known
which: ssh: Could not resolve hostname which: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
Server: ssh: Could not resolve hostname Server: Name or service not known
library: ssh: Could not resolve hostname library: Name or service not known
loaded: ssh: Could not resolve hostname loaded: Name or service not known
HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known
fix: ssh: Could not resolve hostname fix: Name or service not known
'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known
'-z: ssh: Could not resolve hostname '-z: Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
link: ssh: Could not resolve hostname link: Name or service not known
it: ssh: Could not resolve hostname it: Name or service not known


Please help me to resolve out this issue.

Thanks
4 years ago
Hi,

I have build a web based application on top of RestyGWT and RESTful service, now I want to write test cases for my application.
I explored and found two testing framework - first is GWTMockito and second one is EasyMockito.

Please advice me which testing framework I should use for writing test cases wr.t. GWT and RESTful services.

Thanks.
4 years ago
GWT
Hi Bill,

No, only 1 application is running but somehow it is creating two instances of spring container and doing one single operation twice.

Thanks.
4 years ago
Hi,

I am scheduling a task using spring quartz scheduler that send an email to user only once based on the condition.
But due to multi instance creation of spring container it is sending email twice.

Please suggest me how to ensure single instance creation of spring container.

Here is code snapshot of quartz scheduler :
4 years ago
Hi,

Does anyone tell me that 1Z0-807 exam is in beta version, I have google about it but still in confusion.

Thanks
Hi,

Can anyone tell me, which version of EJB is there in java EE 6 architect exam (1Z0-807).

Thanks,
Hi JaiKiran/Valrey,

Below is my project's build.xml for your reference:-

<?xml version="1.0"?>

<!-- ======================================================================= -->
<!-- JBoss build file -->
<!-- ======================================================================= -->

<project name="JBoss" default="ejbjar" basedir=".">

<property environment="env"/>
<property name="src.dir" value="${basedir}/src/main"/>
<property name="src.resources" value="${basedir}/src/resources"/>
<property name="jboss.home" value="${env.JBOSS_HOME}"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>

<!-- Build classpath -->
<path id="classpath">
<fileset dir="${jboss.home}/server/default/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${jboss.home}/server/default/deploy/ejb3.deployer">
<include name="*.jar"/>
</fileset>
<fileset dir="${jboss.home}/server/default/deploy/jboss-aop-jdk50.deployer">
<include name="*.jar"/>
</fileset>
<fileset dir="${jboss.home}/lib">
<include name="*.jar"/>
</fileset>
<pathelement location="${build.classes.dir}"/>
<!-- So that we can get jndi.properties for InitialContext and log4j.xml file -->
<pathelement location="${basedir}/client-config"/>
</path>

<property name="build.classpath" refid="classpath"/>

<!-- =================================================================== -->
<!-- Prepares the build directory -->
<!-- =================================================================== -->
<target name="prepare" >
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes.dir}"/>
</target>

<!-- =================================================================== -->
<!-- Compiles the source code -->
<!-- =================================================================== -->
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
debug="on"
deprecation="on"
optimize="off"
includes="**">
<classpath refid="classpath"/>
</javac>
</target>

<target name="ejbjar" depends="compile">
<jar jarfile="build/titan.jar">
<fileset dir="${build.classes.dir}">
<include name="com/titan/domain/*.class"/>
<include name="com/titan/travelagent/*.class"/>
</fileset>
<fileset dir="${src.resources}/">
<include name="META-INF/persistence.xml"/>
</fileset>
</jar>
<copy file="build/titan.jar" todir="${jboss.home}/server/default/deploy"/>
</target>

<target name="run.client" depends="ejbjar">
<java classname="com.titan.clients.Client" fork="yes" dir=".">
<classpath refid="classpath"/>
</java>
</target>

<!-- =================================================================== -->
<!-- Cleans up generated stuff -->
<!-- =================================================================== -->
<target name="clean.db">
<delete dir="${jboss.home}/server/default/data/hypersonic"/>
</target>

<target name="clean">
<delete dir="${build.dir}"/>
<delete file="${jboss.home}/server/default/deploy/titan.jar"/>
</target>


</project>

Error Description:

Buildfile: C:\Projects\workspace-2\MyEJBProject\ejbModule\build.xml

BUILD FAILED
C:\Projects\workspace-2\MyEJBProject\ejbModule\build.xml:35: C:\Software\jboss-6.0.0.Final\server\default\deploy\ejb3.deployer not found.

This error I am getting while building the project.
6 years ago
Hi,

I am working on an EJB application and using EJB 3.0 and JBoss 6.0.
While building it through Ant , I am getting build failed error - ejb3.deployer not found.


kindly help to resolve this problem.

Thanks.
6 years ago